/* =====================
   TOKENS
   ===================== */
:root {
  --bg:        #0e1117;
  --bg-card:   #161b26;
  --bg-section:#13181f;
  --accent:    #00c9a7;
  --accent-dim:#00c9a722;
  --text:      #e8eaf0;
  --text-muted:#7a8399;
  --border:    #232a38;
  --radius:    10px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }

/* =====================
   NAV
   ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,17,23,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav nav {
  display: flex;
  gap: 2rem;
}

.nav nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--text); }

/* =====================
   BUTTON
   ===================== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0e1117;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-large { font-size: 1.05rem; padding: 1rem 2.25rem; }

/* =====================
   HERO
   ===================== */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1.2rem; }


/* Flow diagram visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
}

.flow-diagram > div:first-child,
.flow-diagram > div:nth-child(3),
.flow-diagram > div:nth-child(5) {
  /* row alignment handled by flex col */
}

/* Make first row horizontal */
.flow-diagram {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 0.5rem 0.5rem;
}

.flow-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.flow-node.highlight {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.flow-node.secondary {
  grid-column: 2;
  color: var(--text-muted);
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.flow-row { grid-column: 2; }
.flow-branch { color: var(--accent); font-size: 1.2rem; font-weight: 700; }

/* =====================
   SERVICES
   ===================== */
.services {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon { font-size: 1.6rem; margin-bottom: 1rem; }

.card p { color: var(--text-muted); font-size: 0.92rem; }

.aside {
  margin-top: 2.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
  font-style: italic;
  width: 100%;
  box-sizing: border-box;
}

.aside::before {
  content: '💡 ';
  font-style: normal;
}

/* =====================
   HOW IT WORKS
   ===================== */
.how {
  background: var(--bg-section);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 640px;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body p { color: var(--text-muted); font-size: 0.94rem; }

/* =====================
   CONTACT
   ===================== */
.contact { padding: 5rem 0; }

.contact-inner { max-width: 640px; }

.contact h2 { margin-bottom: 0.5rem; }
.contact-inner > p { color: var(--text-muted); margin-bottom: 2rem; }

/* =====================
   FOOTER
   ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p { color: var(--text-muted); font-size: 0.85rem; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .nav nav { gap: 1.2rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
