/* ============================================================================
   DataTrek Design System — shared stylesheet
   APEXARA GROUP PTY LTD t/as DataTrek
   Brand: Navy #1B2A4A · Blue #2563EB · Agentic accents
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-900: #111d36;
  --blue: #2563EB;
  --blue-600: #1d4ed8;
  --blue-glow: rgba(37, 99, 235, 0.35);
  --cyan: #22D3EE;       /* agentic accent */
  --violet: #7C3AED;     /* agentic accent */
  --lgrey: #F1F5F9;
  --white: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --warning: #F59E0B;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(27,42,74,0.10);
  --shadow-lg: 0 8px 32px rgba(27,42,74,0.15);
  --shadow-glow: 0 0 0 1px rgba(37,99,235,0.2), 0 12px 40px rgba(37,99,235,0.18);

  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-pill: 999px;

  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.mono { font-family: 'JetBrains Mono', monospace; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.eyebrow.on-dark { color: var(--cyan); }

h1, h2, h3 { font-family: 'Inter', sans-serif; color: var(--navy); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.98rem; padding: 13px 24px;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s ease; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px var(--blue-glow); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 10px 28px var(--blue-glow); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost.on-dark:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; padding: 6px 14px;
  border-radius: var(--radius-pill); background: var(--lgrey); color: var(--navy);
}
.pill.glow { background: rgba(34,211,238,0.12); color: #0e7490; border: 1px solid rgba(34,211,238,0.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,29,54,0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent;
  display: flex; align-items: center; justify-content: center; box-shadow: none;
}
.brand-mark svg { width: 36px; height: 36px; }
.brand-name { font-weight: 800; font-size: 1.22rem; color: #fff; letter-spacing: -0.02em; }
.brand-sub { display: block; font-size: 0.66rem; color: #9fb0cf; margin-top: -3px; letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #cbd5e1; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
/* Ghost buttons sit on the dark nav -> render light */
.nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.22); }
.nav .btn-ghost:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Hero (dark) ---------- */
.hero-dark {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(124,58,237,0.30), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(34,211,238,0.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: #c5d0e6; }
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Hero product mockup ---------- */
.app-mock { border-radius:14px; overflow:hidden; box-shadow:var(--shadow-lg); border:1px solid rgba(255,255,255,0.12); background:#0E1730; }
.app-chrome { display:flex; align-items:center; gap:7px; padding:11px 14px; background:#16223f; border-bottom:1px solid rgba(255,255,255,0.08); }
.app-chrome .tl { width:11px; height:11px; border-radius:50%; }
.app-url { margin-left:10px; font-size:0.72rem; color:#8aa0c6; background:#0E1730; padding:4px 12px; border-radius:6px; }
.app-body { padding:18px; }
.app-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.app-title { color:#fff; font-weight:700; font-size:1rem; }
.app-sub { color:#8aa0c6; font-size:0.74rem; margin-top:2px; }
.app-live { display:inline-flex; align-items:center; gap:7px; font-size:0.72rem; font-weight:600; color:#22D3EE; background:rgba(34,211,238,0.10); border:1px solid rgba(34,211,238,0.28); padding:4px 11px; border-radius:999px; }
.app-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.kpi { background:#16223f; border:1px solid rgba(255,255,255,0.07); border-radius:10px; padding:13px; text-align:center; }
.kpi-n { color:#fff; font-weight:800; font-size:1.35rem; letter-spacing:-0.02em; }
.kpi-n .warn { color:var(--warning); font-size:1rem; }
.kpi-l { color:#8aa0c6; font-size:0.68rem; margin-top:4px; }
.ring { --p:90; width:48px; height:48px; border-radius:50%; margin:0 auto 4px;
  background:conic-gradient(#22D3EE calc(var(--p)*1%), rgba(255,255,255,0.10) 0);
  display:flex; align-items:center; justify-content:center; }
.ring span { width:36px; height:36px; border-radius:50%; background:#16223f; color:#fff; font-size:0.72rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
.app-panel { background:#16223f; border:1px solid rgba(255,255,255,0.07); border-radius:10px; padding:12px 14px 6px; margin-bottom:14px; }
.panel-h { color:#c5d0e6; font-size:0.72rem; font-weight:600; margin-bottom:4px; }
.lin { width:100%; height:auto; }
.lin .edge { stroke:#3a4d77; stroke-width:1.6; }
.lin .edge.flag { stroke:#22D3EE; stroke-dasharray:3 3; }
.lin .node circle { fill:#1f2f52; stroke:#5878c0; stroke-width:1.6; }
.lin .node.flagn circle { fill:rgba(34,211,238,0.18); stroke:#22D3EE; stroke-width:2; }
.lin .node text { fill:#8aa0c6; font-size:7px; text-anchor:middle; font-family:'JetBrains Mono',monospace; }
.app-feed { display:grid; gap:7px; }
.frow { display:flex; align-items:center; gap:8px; font-size:0.74rem; }
.frow .ag { color:#22D3EE; font-family:'JetBrains Mono',monospace; font-size:0.72rem; white-space:nowrap; }
.frow .fx { color:#c5d0e6; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.frow .chip { font-size:0.64rem; font-weight:700; padding:2px 8px; border-radius:999px; white-space:nowrap; }
.frow .chip.ok { color:#10B981; background:rgba(16,185,129,0.14); }
.frow .chip.warn { color:#F59E0B; background:rgba(245,158,11,0.14); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.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: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; background: var(--lgrey);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

.bg-grey { background: var(--lgrey); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff;
}

/* ---------- Logo bar ---------- */
.logobar { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: center; opacity: 0.8; }
.logobar span { font-weight: 700; color: var(--muted); font-size: 1.05rem; letter-spacing: 0.02em; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-glow); position: relative; }
.price-card .amt { font-size: 2.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.price-card .per { color: var(--muted); font-weight: 500; font-size: 1rem; }
.price-card ul { list-style: none; margin: 22px 0; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.price-card li svg { flex: 0 0 auto; margin-top: 3px; }
.badge-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.96rem; transition: border .15s, box-shadow .15s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.checkrow { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.checkrow input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #cbd5e1; padding: 64px 0 32px; }
.footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 16px; font-weight: 700; }
.footer a { color: #cbd5e1; font-size: 0.92rem; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #94a3b8; }

/* ---------- Utility ---------- */
.stack-sm > * + * { margin-top: 12px; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.maxw-720 { max-width: 720px; } .mx-auto { margin-left: auto; margin-right: auto; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hide-mobile { display: none; }
}
