/* DDX design system — v1
   Brand: #7E5FF2 purple (logo) · #D4FF47 acid-lime CTA accent · dark theme
*/

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #08060F;
  --bg-2: #0D0B18;
  --surface: #14121F;
  --surface-2: #1C1A2B;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #F5F3FF;
  --text-muted: #A9A4C2;
  --text-dim: #6F6A88;

  --primary: #7E5FF2;
  --primary-soft: rgba(126,95,242,0.14);
  --primary-glow: rgba(126,95,242,0.45);
  --primary-ink: #fff;

  --accent: #D4FF47;
  --accent-ink: #0A0812;

  --success: #4ADE80;
  --warn: #F59E0B;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-lg: 0 40px 80px -20px rgba(126,95,242,0.35), 0 8px 24px rgba(0,0,0,0.35);

  --container: 1200px;

  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(126,95,242,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(126,95,242,0.09), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--text);
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5vw + 0.5rem, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 2.2vw + 1rem, 2.8rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1vw + 0.9rem, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1rem; color: var(--text-muted); }
.lede { font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem); color: var(--text-muted); line-height: 1.55; max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); padding: 6px 12px;
  background: var(--primary-soft); border: 1px solid rgba(126,95,242,0.25);
  border-radius: 999px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 4px rgba(126,95,242,0.22); }

.text-gradient {
  background: linear-gradient(110deg, #fff 0%, #C6BBFF 40%, #7E5FF2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

.section-header { max-width: 760px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(8,6,15,0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.brand-logo { width: 22px; height: auto; display: block; color: var(--primary); flex: 0 0 auto; filter: drop-shadow(0 6px 20px rgba(110,39,238,0.35)); }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border-strong); width: 40px; height: 40px; border-radius: 10px; color: var(--text); }

@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 16px 24px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-cta-desktop { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 0.97rem; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -8px rgba(212,255,71,0.5); }
.btn-primary:hover { background: #E3FF70; box-shadow: 0 14px 40px -8px rgba(212,255,71,0.65); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.28); }
.btn-purple { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 30px -8px var(--primary-glow); }
.btn-purple:hover { background: #9077ff; }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 10px 16px; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { padding: 17px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 72px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 72px 0 48px; } }
.hero h1 { margin-top: 18px; margin-bottom: 20px; }
.hero .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; color: var(--text-dim); font-size: 0.85rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(74,222,128,0.15); }

.hero-visual {
  position: relative; aspect-ratio: 1/1; max-width: 480px; margin-left: auto;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(126,95,242,0.18), rgba(126,95,242,0.02));
  border: 1px solid var(--border); padding: 28px; overflow: hidden;
}
.hero-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 10%, rgba(212,255,71,0.14), transparent 55%); pointer-events: none; }

/* Stat cards inside hero */
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 100%; position: relative; z-index: 1; }
.hero-stat { background: rgba(20,18,31,0.7); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; backdrop-filter: blur(8px); }
.hero-stat .n { font-family: var(--font-display); font-size: clamp(1.6rem, 2vw + 0.8rem, 2.3rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.hero-stat .l { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }
.hero-stat.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.hero-stat.accent .n, .hero-stat.accent .l { color: var(--accent-ink); }

/* ---------- Logo cloud / trust bar ---------- */
.trust-bar { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-row { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 24px; text-align: center; }
.trust-row .item { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.trust-row .n { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.trust-row .l { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Card ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, border-color .2s ease, background .2s ease; position: relative; overflow: hidden; }
.card:hover { border-color: rgba(126,95,242,0.4); transform: translateY(-3px); }
.card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 14px; }
.card ul { list-style: none; padding: 0; margin: 0 0 16px; color: var(--text-muted); font-size: 0.92rem; }
.card ul li { padding: 5px 0; position: relative; padding-left: 18px; }
.card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.card .more { font-size: 0.88rem; color: var(--primary); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.card .more:hover { color: #A48DFF; }

/* Numbered step cards (DDNA) */
.step-card { position: relative; padding: 32px 28px 28px; }
.step-card .step-n { position: absolute; top: -18px; left: 24px; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; display: grid; place-items: center; box-shadow: 0 8px 24px -4px rgba(212,255,71,0.4); }

/* ---------- Case study teaser ---------- */
.case-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
@media (max-width: 860px) { .case-teaser { grid-template-columns: 1fr; padding: 28px; } }
.case-teaser .tag { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; }
.case-teaser h3 { font-size: 1.8rem; margin-bottom: 16px; }
.case-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-metrics .m { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.case-metrics .m .v { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.case-metrics .m .k { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--text); }
.testimonial blockquote::before { content: '“'; display: block; font-family: var(--font-display); font-size: 3rem; color: var(--primary); line-height: 0.5; margin-bottom: 12px; }
.testimonial .cite { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.testimonial .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.testimonial .who { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.testimonial .role { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.6rem; color: var(--primary); transition: transform .2s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 22px; color: var(--text-muted); }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #5B3DD5 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(212,255,71,0.25), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 28px; position: relative; }
.cta-band .btn { position: relative; }
@media (max-width: 720px) { .cta-band { padding: 40px 24px; } }

/* ---------- Footer ---------- */
footer { background: #050410; border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 5px 0; }
footer ul a { color: var(--text-muted); font-size: 0.93rem; }
footer ul a:hover { color: var(--text); }
footer p { font-size: 0.9rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 24px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ---------- Service page hero variant ---------- */
.page-hero { padding: 80px 0 40px; }
.page-hero h1 { margin-bottom: 20px; max-width: 20ch; }
.page-hero .lede { margin-bottom: 24px; }

/* ---------- Service feature list ---------- */
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .feat-list { grid-template-columns: 1fr; } }
.feat { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.feat h4 { margin: 0 0 8px; font-family: var(--font-display); color: var(--text); }
.feat p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Form ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow-lg); }
@media (max-width: 640px) { .form-card { padding: 24px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 0.97rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(126,95,242,0.22); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 0.78rem; color: var(--text-dim); }

.step-indicator { display: flex; gap: 8px; margin-bottom: 24px; }
.step-indicator .dot { flex: 1; height: 4px; border-radius: 2px; background: var(--border-strong); transition: background .2s ease; }
.step-indicator .dot.active { background: var(--accent); }

/* ---------- Misc ---------- */
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; background: rgba(212,255,71,0.14); color: var(--accent); font-size: 0.75rem; font-family: var(--font-mono); border-radius: 6px; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid rgba(212,255,71,0.3); }
.divider { height: 1px; background: var(--border); margin: 64px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Selection */
::selection { background: var(--primary); color: #fff; }

/* Focus visible baseline */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
