/* ==========================================================================
   Netatum Limited — Design System
   AI Integration & Consulting
   ========================================================================== */

:root {
  /* Accents (shared across themes) */
  --accent:        #6366f1; /* indigo */
  --accent-2:      #0891b2; /* cyan (darkened for light-mode contrast) */
  --accent-3:      #a855f7; /* purple */
  --grad:          linear-gradient(120deg, #6366f1 0%, #22d3ee 100%);
  --grad-3:        linear-gradient(120deg, #a855f7 0%, #6366f1 45%, #0891b2 100%);
  --success:       #059669;
  --warning:       #d97706;

  /* Light theme (default) */
  --bg:            #f5f8fd;
  --bg-2:          #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef3fb;
  --card-b:        #eef3fb;
  --border:        rgba(15, 21, 36, 0.10);
  --border-strong: rgba(15, 21, 36, 0.18);
  --surface-fill:  rgba(15, 21, 36, 0.045);
  --code-bg:       rgba(15, 21, 36, 0.05);
  --header-bg:     rgba(255, 255, 255, 0.78);

  --text:          #101828;
  --text-muted:    #46536b;
  --text-dim:      #71809a;
  --accent-soft:   rgba(99, 102, 241, 0.10);

  --glow-1:        rgba(99, 102, 241, 0.10);
  --glow-2:        rgba(34, 211, 238, 0.08);
  --glow-3:        rgba(168, 85, 247, 0.07);

  --shadow:        0 22px 50px -26px rgba(15, 21, 36, 0.28);
  --shadow-glow:   0 0 40px -12px rgba(99, 102, 241, 0.35);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
}

/* Dark theme values (explicit user choice) */
:root[data-theme="dark"],
:root.theme-dark {
  --bg:            #0a0e1a;
  --bg-2:          #0d1220;
  --surface:       #121a2e;
  --surface-2:     #16203a;
  --card-b:        #0d1220;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --surface-fill:  rgba(255, 255, 255, 0.06);
  --code-bg:       rgba(255, 255, 255, 0.07);
  --header-bg:     rgba(10, 14, 26, 0.72);

  --text:          #eef1f8;
  --text-muted:    #9aa6c0;
  --text-dim:      #6b7793;
  --accent-2:      #22d3ee;
  --accent-soft:   rgba(99, 102, 241, 0.14);
  --success:       #34d399;

  --glow-1:        rgba(99, 102, 241, 0.16);
  --glow-2:        rgba(34, 211, 238, 0.10);
  --glow-3:        rgba(168, 85, 247, 0.10);

  --shadow:        0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow:   0 0 60px -10px rgba(99, 102, 241, 0.35);
}

/* System default: follow OS when no explicit choice is set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0a0e1a;
    --bg-2:          #0d1220;
    --surface:       #121a2e;
    --surface-2:     #16203a;
    --card-b:        #0d1220;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --surface-fill:  rgba(255, 255, 255, 0.06);
    --code-bg:       rgba(255, 255, 255, 0.07);
    --header-bg:     rgba(10, 14, 26, 0.72);

    --text:          #eef1f8;
    --text-muted:    #9aa6c0;
    --text-dim:      #6b7793;
    --accent-2:      #22d3ee;
    --accent-soft:   rgba(99, 102, 241, 0.14);
    --success:       #34d399;

    --glow-1:        rgba(99, 102, 241, 0.16);
    --glow-2:        rgba(34, 211, 238, 0.10);
    --glow-3:        rgba(168, 85, 247, 0.10);

    --shadow:        0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --shadow-glow:   0 0 60px -10px rgba(99, 102, 241, 0.35);
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 78% -8%, var(--glow-1), transparent 60%),
    radial-gradient(50vw 50vw at 8% 12%, var(--glow-2), transparent 55%),
    radial-gradient(45vw 45vw at 55% 110%, var(--glow-3), transparent 55%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; color: var(--text-muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* Utility ---------------------------------------------------------------- */
.grad-text {
  background: var(--grad-3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-dim); }
.mt-0 { margin-top: 0; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #0a0e1a;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34, 211, 238, 0.6); }
.btn-ghost {
  background: var(--surface-fill);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.btn-arrow::after { content: "→"; transition: transform 0.18s; }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad); display: grid; place-items: center;
  color: #0a0e1a; font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-glow);
}
.brand small { display:block; font-size:0.6rem; letter-spacing:0.18em; color:var(--text-dim); font-weight:600; text-transform:uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 9px 14px; border-radius: 8px; font-size: 0.96rem; font-weight: 500;
  color: var(--text-muted); transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-fill); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* Theme toggle (injected by JS) */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; margin-left: 4px;
  border-radius: 999px; cursor: pointer;
  background: var(--surface-fill); border: 1px solid var(--border-strong);
  color: var(--text-muted); font: inherit; font-size: 0.82rem; font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent-2); }
.theme-toggle .tt-icon { font-size: 1rem; line-height: 1; }
.theme-toggle .tt-label { letter-spacing: 0.02em; }
@media (max-width: 720px) {
  .theme-toggle { justify-content: center; margin: 6px 0 0; }
}

/* Hero ------------------------------------------------------------------- */
.hero { padding: 120px 0 90px; position: relative; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.28rem; margin-bottom: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--border-strong);
  font-size: 0.85rem; color: var(--text); margin-bottom: 26px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

/* Cards ------------------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--card-b));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.98rem; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--accent-soft); border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}
.card-link { display:inline-flex; align-items:center; gap:6px; margin-top:16px; color:var(--accent-2); font-weight:600; font-size:0.92rem; }
.card-link::after { content:"→"; transition: transform 0.18s; }
.card-link:hover::after { transform: translateX(4px); }

.card-feature { padding: 32px; }
.card-glow::after {
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity:0; transition:opacity 0.2s;
}
.card-glow:hover::after { opacity:0.6; }

/* Tag / pill ------------------------------------------------------------- */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.03em;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid var(--border-strong);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; }
.stat .num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; }
.stat .label { color: var(--text-dim); font-size: 0.9rem; margin-top: 6px; }

/* Logos strip ------------------------------------------------------------ */
.logos { display:flex; flex-wrap:wrap; gap: 14px 34px; align-items:center; justify-content:center; opacity:0.75; }
.logos span { font-weight:700; letter-spacing:-0.02em; color: var(--text-muted); font-size:1.05rem; }

/* Steps / process -------------------------------------------------------- */
.steps { counter-reset: step; display:grid; gap: 18px; }
.step { position:relative; padding-left: 66px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position:absolute; left:0; top:0; width:46px; height:46px; border-radius:12px;
  display:grid; place-items:center; font-weight:800; font-family:var(--mono);
  background: var(--accent-soft); border:1px solid var(--border-strong); color: var(--accent-2);
}
.step h3 { margin-bottom: 4px; }

/* List ------------------------------------------------------------------- */
.check-list { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.check-list li { position:relative; padding-left:30px; color:var(--text-muted); }
.check-list li::before {
  content:"✓"; position:absolute; left:0; top:0; color:var(--success);
  font-weight:800; background: rgba(52,211,153,0.12); width:20px; height:20px;
  border-radius:50%; display:grid; place-items:center; font-size:0.7rem;
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, rgba(99,102,241,0.16), rgba(34,211,238,0.10));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }

/* Product feature block -------------------------------------------------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }
.split.reverse .split-media { order: 2; }
.mock {
  border-radius: var(--radius); border:1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  padding: 22px; box-shadow: var(--shadow);
}
.mock-bar { display:flex; gap:7px; margin-bottom:16px; }
.mock-bar span { width:11px; height:11px; border-radius:50%; background: var(--border-strong); }
.mock-line { height:10px; border-radius:6px; background: var(--surface-fill); margin-bottom:11px; }
.mock-line.w-70 { width:70%; } .mock-line.w-90 { width:90%; } .mock-line.w-50 { width:50%; }
.mock-line.accent { background: var(--grad); opacity:0.7; }

/* Blog ------------------------------------------------------------------- */
.post-card { display:flex; flex-direction:column; height:100%; }
.post-card .post-meta { display:flex; gap:12px; align-items:center; font-size:0.82rem; color:var(--text-dim); margin-bottom:14px; }
.post-card h3 { font-size:1.22rem; margin-bottom:10px; }
.post-card p { flex:1; }
.post-card .card-link { margin-top:18px; }

.article { max-width: 760px; margin: 0 auto; }
.article h1 { margin-bottom: 18px; }
.article .post-meta { display:flex; gap:14px; flex-wrap:wrap; align-items:center; color:var(--text-dim); font-size:0.9rem; margin-bottom:36px; }
.article-body { font-size: 1.08rem; }
.article-body h2 { margin-top: 44px; font-size: 1.7rem; }
.article-body h3 { margin-top: 32px; font-size: 1.25rem; }
.article-body p { color: var(--text-muted); }
.article-body ul, .article-body ol { color: var(--text-muted); padding-left: 22px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text);
  font-style: italic;
}
.article-body code {
  font-family: var(--mono); font-size: 0.88em; background: var(--code-bg);
  padding: 2px 7px; border-radius: 6px; color: var(--accent-2);
}
.article-body pre {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; overflow-x: auto; margin: 24px 0;
}
.article-body pre code { background: none; padding: 0; color: var(--text-muted); }
.author-box {
  display:flex; gap:16px; align-items:center; margin-top:48px; padding-top:28px;
  border-top:1px solid var(--border);
}
.avatar {
  width:52px; height:52px; border-radius:50%; background:var(--grad);
  display:grid; place-items:center; font-weight:800; color:#0a0e1a; flex:none;
}

/* Forms ------------------------------------------------------------------ */
.field { margin-bottom: 18px; }
.field label { display:block; font-size:0.88rem; font-weight:600; margin-bottom:7px; color:var(--text); }
.field input, .field textarea, .field select {
  width:100%; padding:13px 15px; border-radius:10px;
  background: var(--bg-2); border:1px solid var(--border-strong); color:var(--text);
  font-family:inherit; font-size:0.98rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline:none; border-color: var(--accent); box-shadow:0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }

/* Contact cards ---------------------------------------------------------- */
.contact-tile { display:flex; gap:16px; align-items:flex-start; }
.contact-tile .icon { flex:none; }
.contact-tile a { color: var(--accent-2); font-weight:600; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top:1px solid var(--border); background: var(--bg-2); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { font-size:0.82rem; text-transform:uppercase; letter-spacing:0.12em; color:var(--text-dim); margin-bottom:16px; }
.footer-col ul { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.footer-col a { color:var(--text-muted); font-size:0.95rem; }
.footer-col a:hover { color: var(--text); }
.footer-brand p { max-width:34ch; font-size:0.95rem; margin-top:14px; }
.footer-bottom {
  display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center;
  border-top:1px solid var(--border); padding-top:26px; color:var(--text-dim); font-size:0.88rem;
}
.footer-bottom .cin { font-family:var(--mono); }

/* Page hero (interior) --------------------------------------------------- */
.page-hero { padding: 90px 0 40px; }
.page-hero h1 { margin-bottom: 16px; }
.breadcrumb { font-size:0.85rem; color:var(--text-dim); margin-bottom:20px; }
.breadcrumb a:hover { color: var(--accent-2); }

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity:0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity:1; transform:none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom:1px solid var(--border); padding: 14px;
    gap: 4px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav-cta { margin: 6px 0 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
