/* ═══════════════════════════════════════════════════
   NEURAL FORGE — Shared Stylesheet
   Fonts · Variables · Reset · Layout · Components
═══════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face { font-family:'BrunoAce'; src:url('../fonts/BrunoAce-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'Ubuntu'; src:url('../fonts/Ubuntu-Light.ttf') format('truetype'); font-weight:300; font-display:swap; }
@font-face { font-family:'Ubuntu'; src:url('../fonts/Ubuntu-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'Ubuntu'; src:url('../fonts/Ubuntu-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'Ubuntu'; src:url('../fonts/Ubuntu-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }

/* ── Tokens ── */
:root {
  --orange:        #F04C23;
  --orange-dark:   #C93D1A;
  --orange-dim:    rgba(240,76,35,.12);
  --orange-glow:   rgba(240,76,35,.07);
  --orange-border: rgba(240,76,35,.28);
  --bg:            #0C0C0C;
  --bg-card:       #131313;
  --bg-raised:     #1A1A1A;
  --border:        rgba(255,255,255,.07);
  --text:          #FFFFFF;
  --text-2:        #999999;
  --text-3:        #505050;
  --r:             14px;
  --r-sm:          8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Ubuntu', Arial, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; display: block; }
a     { color: inherit; }

/* ── Layout ── */
.wrap  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Typography ── */
.sec-label  { font-family: 'BrunoAce', 'Ubuntu', sans-serif; font-size: 11px; font-weight: 400; color: var(--orange); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 12px; }
.sec-title  { font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin-bottom: 16px; }
.sec-sub    { font-size: 17px; color: var(--text-2); font-weight: 300; max-width: 540px; line-height: 1.78; }
.sec-head   { margin-bottom: 56px; }
.grad       { background: linear-gradient(135deg, #F04C23, #FF7043); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-sm);
  font-family: 'Ubuntu', Arial, sans-serif; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: all .25s; border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(240,76,35,.4); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.14); }
.btn-outline:hover { background: var(--bg-raised); border-color: rgba(255,255,255,.28); }
.btn-ghost  { background: transparent; color: var(--text-2); padding: 13px 8px; }
.btn-ghost:hover { color: var(--text); }
.btn-white  { background: #fff; color: var(--orange); font-weight: 700; }
.btn-white:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn-sm     { padding: 9px 18px; font-size: 13px; }
.btn svg    { flex-shrink: 0; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-dim); border: 1px solid var(--orange-border);
  padding: 6px 14px; border-radius: 100px;
  font-family: 'BrunoAce', 'Ubuntu', sans-serif;
  font-size: 10px; font-weight: 400; color: var(--orange);
  letter-spacing: .08em; text-transform: uppercase;
}
.badge-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; flex-shrink: 0; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

/* ── Fade-in ── */
.fi { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.fi.in { opacity: 1; transform: none; }
.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s}
.d4{transition-delay:.32s} .d5{transition-delay:.40s} .d6{transition-delay:.48s}

/* ── Navbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0; transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(12,12,12,.93); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .active { color: var(--text); }
.nav-cta { background: var(--orange) !important; color: #fff !important; padding: 8px 20px; border-radius: 6px; transition: background .2s !important; font-size: 14px; }
.nav-cta:hover { background: var(--orange-dark) !important; }
.hamburger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }

/* ── Page hero (subpages) ── */
.page-hero { padding: 140px 0 72px; border-bottom: 1px solid var(--border); background: var(--bg); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(240,76,35,.09) 0%, transparent 65%); pointer-events: none; }
.page-hero .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; text-decoration: none; margin-bottom: 24px; transition: color .2s; }
.page-hero .back-link:hover { color: var(--text-2); }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--text-2); font-weight: 300; max-width: 560px; line-height: 1.75; }

/* ── CTA Band ── */
.cta-band { background: var(--orange); padding: 72px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 55%); pointer-events: none; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; }
.cta-band h2 { font-size: clamp(22px, 3vw, 36px); color: #fff; line-height: 1.3; max-width: 480px; }
.cta-band h2 em { font-style: normal; opacity: .8; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ── */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { font-size: 13px; color: var(--text-3); margin-top: 14px; line-height: 1.65; max-width: 240px; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--text-3); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--text-3); }

/* ── Responsive ── */
@media(max-width:1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:768px) {
  .hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(12,12,12,.98); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-inner .btns { justify-content: center; }
}
@media(max-width:520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
