/* ============== DEVFOREST SHARED STYLES ============== */
:root {
  --df-blue: #5B9BFF;
  --df-blue-600: #3B82F6;
  --df-blue-700: #2563EB;
  --df-purple: #7C5CFF;
  --df-purple-600: #6A45FF;
  --df-grad: linear-gradient(135deg, #7C5CFF 0%, #5B9BFF 100%);
  --df-grad-r: linear-gradient(90deg, #7C5CFF 0%, #5B9BFF 100%);
  --df-ink: #0B0F23;          /* deep navy */
  --df-ink-2: #131734;
  --df-ink-3: #1B2046;
  --df-line-dark: #2A2F58;
  --df-text: #0B1220;
  --df-muted: #4B5563;
  --df-muted-dark: #A8AEC9;
  --df-line: #E5E7EB;
  --df-line-2: #EEF2F7;
  --df-bg: #FFFFFF;
  --df-bg-soft: #F7F9FC;
  --df-tint: #EAF2FF;
  --df-green: #10B981;
  --max: 1280px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 4px 14px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-xl: 0 30px 60px -20px rgba(15,23,42,.18), 0 10px 30px -10px rgba(15,23,42,.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  color: var(--df-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ============== HEADER ============== */
.header-wrap {
  position: sticky; top: 0; z-index: 100;
}
.header {
  background: rgba(11,15,35,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header.is-light {
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--df-line);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; }
.brand-name {
  font-weight: 700; letter-spacing: -.01em; font-size: 20px;
  color: #fff;
}
.header.is-light .brand-name { color: var(--df-ink); }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-item {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .15s, background .15s;
  cursor: pointer;
}
.header.is-light .nav-item { color: var(--df-ink-2); }
.nav-item:hover, .nav-item.is-open {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.header.is-light .nav-item:hover, .header.is-light .nav-item.is-open {
  color: var(--df-ink); background: var(--df-line-2);
}
.nav-item .chev { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
.nav-item.is-open .chev { transform: rotate(180deg); color: var(--df-purple); opacity: 1; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--df-grad);
  color: #fff;
  font-weight: 600; font-size: 14px;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 8px 24px -8px rgba(124,92,255,.6);
}
.header-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }
.header-cta .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.header-cta .arrow svg { width: 12px; height: 12px; }

/* ============== MEGA-MENU ============== */
.mega-wrap {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none;
  padding-top: 0;
}
.mega-wrap.is-open { display: block; }
.mega {
  background: #fff;
  border: 1px solid var(--df-line);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(11,15,35,.45);
  margin: 8px auto 0;
  max-width: 980px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
}
.mega-side {
  background: #FAFBFE;
  border-right: 1px solid var(--df-line-2);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.mega-side a {
  padding: 11px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--df-ink-2);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .15s, color .15s;
}
.mega-side a:hover, .mega-side a.is-active {
  background: #fff; color: var(--df-purple-600);
}
.mega-side a.is-active::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--df-purple);
}
.mega-body { padding: 22px 26px; }
.mega-body h4 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--df-ink);
  margin: 0 0 18px;
}
.mega-body h4 a { color: var(--df-ink); }
.mega-body h4 .arr {
  width: 22px; height: 22px; border-radius: 50%; background: var(--df-tint);
  display: grid; place-items: center; color: var(--df-blue-700);
}
.mega-body h4 .arr svg { width: 12px; height: 12px; }
.mega-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 22px;
}
.mega-grid a {
  font-size: 13.5px; padding: 6px 0;
  color: var(--df-ink-2);
  transition: color .15s;
}
.mega-grid a:hover { color: var(--df-purple-600); }

/* solutions menu = single column with description */
.mega.solutions { grid-template-columns: 1fr; max-width: 720px; }
.mega.solutions .mega-body { padding: 22px; }
.mega.solutions .sol-list { display: flex; flex-direction: column; gap: 4px; }
.mega.solutions .sol-list a {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 14px; border-radius: 10px;
  transition: background .15s;
}
.mega.solutions .sol-list a:hover { background: var(--df-bg-soft); }
.mega.solutions .ico {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--df-tint); color: var(--df-purple-600);
  display: grid; place-items: center; flex: none;
}
.mega.solutions .ico svg { width: 18px; height: 18px; }
.mega.solutions .ttl { font-size: 14.5px; font-weight: 700; color: var(--df-ink); }
.mega.solutions .sub { font-size: 12.5px; color: var(--df-muted); margin-top: 2px; }

/* build-ai menu = grid of cards */
.mega.build { grid-template-columns: 1fr; max-width: 760px; }
.mega.build .mega-body { padding: 22px; }
.mega.build .build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega.build .build-grid a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  transition: background .15s;
}
.mega.build .build-grid a:hover { background: var(--df-bg-soft); }
.mega.build .ico {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center; flex: none; color: #fff;
}
.mega.build .ttl { font-size: 14.5px; font-weight: 700; color: var(--df-ink); }
.mega.build .sub { font-size: 12px; color: var(--df-muted); margin-top: 1px; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .15s, filter .15s, background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--df-grad); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(124,92,255,.55);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 30px -10px rgba(124,92,255,.7); }
.btn-primary .arr {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center;
}
.btn-primary .arr svg { width: 12px; height: 12px; }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { border-color: #fff; }
.btn-ghost.dark {
  color: var(--df-ink); border-color: var(--df-line);
  background: #fff;
}
.btn-ghost.dark:hover { border-color: var(--df-ink); }

/* ============== SECTIONS ============== */
section { scroll-margin-top: 90px; }
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--df-purple-600);
  background: rgba(124,92,255,.10);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.kicker.on-dark { background: rgba(124,92,255,.18); color: #C9B8FF; }

h1.display {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04; letter-spacing: -.025em;
  margin: 0 0 22px; font-weight: 700;
}
h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 14px; font-weight: 700;
}
h2 em, h1.display em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  background: var(--df-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 18px; color: var(--df-muted); max-width: 600px; margin: 0 0 28px; }
.sub { font-size: 17px; color: var(--df-muted); }

/* ============== DARK HERO ============== */
.hero-dark {
  position: relative; overflow: hidden;
  color: #fff;
  padding: 80px 0 120px;
  background:
    radial-gradient(1100px 480px at 80% 0%, rgba(124,92,255,.30), transparent 65%),
    radial-gradient(900px 480px at 0% 80%, rgba(91,155,255,.18), transparent 60%),
    var(--df-ink);
}
.hero-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px);
  pointer-events: none;
}
.hero-dark .lede { color: rgba(255,255,255,.78); }
.hero-dark .container { position: relative; }

/* ============== TRUST STRIP ============== */
.trust {
  padding: 44px 0;
  background: #0B0F23;
  border-top: 1px solid rgba(255,255,255,.06);
}
.trust-label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: rgba(255,255,255,.55); text-transform: uppercase;
  text-align: center; margin-bottom: 24px;
}
.trust-track {
  display: flex; justify-content: space-around; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.trust-logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-weight: 700; font-size: 17px;
  letter-spacing: -.01em;
  transition: color .2s;
}
.trust-logo:hover { color: #fff; }
.trust-logo svg { width: 22px; height: 22px; }

/* ============== FOOTER ============== */
footer.site-foot {
  background: #06081A; color: #B7C3D9;
  padding: 80px 0 40px;
  border-top: 1px solid #1F2C44;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 64px;
}
.foot-brand .name { color: #fff; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.foot-brand p { font-size: 14.5px; color: #98A6BB; max-width: 320px; line-height: 1.6; margin: 0 0 22px; }
.foot-brand .badges { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-brand .badge {
  font-size: 11px; font-weight: 600;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(255,255,255,.06); color: #B7C3D9;
  border: 1px solid #1F2C44;
}
.foot-col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
  margin: 0 0 18px;
}
.foot-col a {
  display: block; padding: 6px 0;
  font-size: 14px; color: #98A6BB; transition: color .15s;
}
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid #1F2C44;
  font-size: 13px; color: #6F7E94;
}
.socials { display: flex; gap: 10px; }
.social {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid #1F2C44;
  display: grid; place-items: center; color: #B7C3D9;
  transition: background .15s, color .15s, border-color .15s;
}
.social:hover { background: var(--df-grad); color: #fff; border-color: transparent; }
.social svg { width: 16px; height: 16px; }

/* ============== UTILITIES ============== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--df-green);
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 16px; }
  h1.display { font-size: 40px; }
}
