/* ============================================================
   Intuitive Solutions — Design System
   Palette: deep northern-night base + aurora gradient signature
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (data)
   ============================================================ */

:root {
  /* Surfaces */
  --bg-void: #090c11;
  --bg-panel: #10141c;
  --bg-panel-2: #151b26;
  --bg-panel-3: #1a2130;
  --border: #232b3a;
  --border-soft: #1a212e;

  /* Text */
  --text-primary: #eef1f6;
  --text-muted: #8d96ab;
  --text-faint: #5b6478;

  /* Aurora signature gradient (northern lights + AI network) */
  --aurora-teal: #29d9b8;
  --aurora-blue: #4cc9f0;
  --aurora-violet: #8b7cf6;
  --maple: #e6485a;

  --gradient-aurora: linear-gradient(115deg, var(--aurora-teal) 0%, var(--aurora-blue) 45%, var(--aurora-violet) 100%);
  --gradient-aurora-soft: linear-gradient(115deg, rgba(41,217,184,0.16) 0%, rgba(76,201,240,0.16) 45%, rgba(139,124,246,0.16) 100%);

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

  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,0.6);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurora-teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-aurora);
  box-shadow: 0 0 12px var(--aurora-teal);
}

/* ---------- Background texture ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,12,17,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--gradient-aurora);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  background: var(--bg-void);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 45% 45%, 45% 100%, 0 100%);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active { color: var(--aurora-teal); }

.nav-cta-wrap { display: flex; align-items: center; gap: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-aurora);
  color: #06110f;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -6px rgba(76,201,240,0.45); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--aurora-teal); }
.btn-block { width: 100%; justify-content: center; }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-primary);
  font-size: 22px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  overflow: hidden;
}
.aurora-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 620px;
  background: radial-gradient(ellipse at 30% 30%, rgba(41,217,184,0.35), transparent 55%),
              radial-gradient(ellipse at 70% 40%, rgba(139,124,246,0.32), transparent 55%),
              radial-gradient(ellipse at 50% 60%, rgba(76,201,240,0.28), transparent 55%);
  filter: blur(40px);
  animation: auroraDrift 16s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes auroraDrift {
  0%   { transform: translateX(-52%) translateY(0) scale(1); }
  100% { transform: translateX(-48%) translateY(30px) scale(1.06); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  margin: 18px 0 22px;
}
.hero-copy .lead {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-proof {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 13px;
}
.hero-proof span { color: var(--text-muted); }

/* ---------- Demo device mockup ---------- */
.device {
  position: relative;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.device-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.device-label {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
}
.chat-thread { display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 82%;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  animation: rise .5s ease both;
}
.bubble.caller {
  align-self: flex-end;
  background: var(--bg-panel-3);
  border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  align-self: flex-start;
  background: var(--gradient-aurora-soft);
  border: 1px solid rgba(76,201,240,0.25);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}
.bubble.bot .tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aurora-teal);
  margin-bottom: 5px;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }
.bubble:nth-child(1){ animation-delay: .05s; }
.bubble:nth-child(2){ animation-delay: .35s; }
.bubble:nth-child(3){ animation-delay: .65s; }
.bubble:nth-child(4){ animation-delay: .95s; }

.device-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
}
.device-foot b { color: var(--aurora-teal); font-weight: 500; }

/* ---------- Sections ---------- */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 16px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 16px; }
.section-tight { padding-top: 0; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

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

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(76,201,240,0.4); transform: translateY(-4px); }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gradient-aurora-soft);
  border: 1px solid rgba(76,201,240,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 19px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14.5px; }
.card .tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-faint);
}

/* ---------- Process ---------- */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-soft);
}
.process-item:first-child { padding-top: 0; }
.process-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--aurora-teal);
}
.process-item h3 { font-size: 19px; margin-bottom: 8px; }
.process-item p { color: var(--text-muted); font-size: 14.5px; max-width: 560px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  padding: 30px 24px;
  border-right: 1px solid var(--border);
  background: var(--bg-panel);
}
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--text-faint); font-size: 13px; }

/* ---------- Canada strip ---------- */
.canada-strip {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.canada-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--maple);
  border: 1px solid rgba(230,72,90,0.35);
  background: rgba(230,72,90,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  list-style: none;
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.check-list li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 5px;
  background: var(--gradient-aurora-soft);
  border: 1px solid rgba(76,201,240,0.3);
}

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(139,124,246,0.16), transparent 70%),
    var(--bg-panel);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 34px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer-brand p { color: var(--text-faint); font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); margin-bottom: 16px; font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--aurora-teal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-faint); font-size: 12.5px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 70px 0 60px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); margin: 16px 0; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 620px; }

/* ---------- Portfolio ---------- */
.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
}
.case-meta { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.case-card h3 { font-size: 24px; margin-bottom: 14px; }
.case-card p.desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; }
.case-stats { display: flex; gap: 30px; }
.case-stats div b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--aurora-teal); }
.case-stats div span { color: var(--text-faint); font-size: 12.5px; }
.case-visual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel-3));
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.case-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-aurora-soft);
  opacity: .5;
}

/* ---------- About ---------- */
.value-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.timeline { display: flex; flex-direction: column; gap: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--aurora-teal);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--bg-panel);
  margin-bottom: 18px;
}
.contact-info-card h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--aurora-teal); margin-bottom: 10px; font-weight: 500;
}
.contact-info-card p { color: var(--text-muted); font-size: 14.5px; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }
#formStatus { margin-top: 16px; font-size: 14px; }

/* ---------- Modal (Book a Demo) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5,7,10,0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 38px;
  animation: modalRise .25s ease both;
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title { font-size: 22px; margin: 14px 0 10px; }
.modal-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.modal-close:hover { border-color: var(--aurora-teal); color: var(--text-primary); }
body.modal-open { overflow: hidden; }

/* ---------- Login page ---------- */
.login-wrap { max-width: 420px; margin: 0 auto; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-faint); font-size: 12.5px;
  margin: 26px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-note {
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
.auth-note a { color: var(--aurora-teal); }
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin: -8px 0 22px;
}
.auth-links a:hover { color: var(--aurora-teal); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .canada-strip, .contact-grid, .case-card { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .value-row { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta-wrap .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  section { padding: 70px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-glow { animation: none; }
  .bubble { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
