/* ═══════════════════════════════════════════════════════════════
   Nygaard AI · Landing Page Styles
   Separate from main.css (dashboard)
   ═══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #4DA3FF;
  --primary-hi: #00E5FF;
  --primary-glow: rgba(77,163,255,0.25);
  --primary-soft: #EBF4FF;
  --bg:         #F7F9FB;
  --bg-alt:     #F1F5F9;
  --bg-dark:    #0B0F14;
  --bg-dark-card: #121A22;
  --border-dark:  #1F2A36;
  --text:       #0F172A;
  --text2:      #64748B;
  --text-muted: #94A3B8;
  --success:    #22C55E;
  --border:     #E2E8F0;
  --shadow:     0 10px 30px rgba(0,0,0,0.07);
  --shadow-lg:  0 30px 80px rgba(0,0,0,0.15);
  --r:          12px;
  --r-lg:       16px;
  --r-pill:     980px;
  --font:       'Sora', -apple-system, sans-serif;
  --display:    'DM Serif Display', Georgia, serif;
  --t:          all 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  /* cursor: default */
}

/* ── Custom Cursor ─────────────────────────────────────────── */
.cursor, .cursor-follower { display: none !important; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; padding: 0 20px; height: 56px;
  background: rgba(247,249,251,0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 10px;
  overflow: hidden;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none;
}

.logo-mark {
  width: 28px; height: 28px;
  background: var(--primary); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; font-weight: 700;
}

.logo-name { letter-spacing: 0.06em; }

.nav-links {
  display: flex; gap: 4px; margin-left: auto;
}

.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text2);
  text-decoration: none; padding: 7px 12px; border-radius: var(--r-pill);
  transition: var(--t);
}

.nav-links a:hover { color: var(--text); background: var(--bg-alt); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  background: var(--primary); color: white;
  padding: 12px 20px; border-radius: var(--r);
  border: none; cursor: pointer; font-family: var(--font);
  font-size: 13.5px; font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-hi);
  box-shadow: 0 0 24px rgba(0,229,255,0.35);
}

.btn-secondary {
  background: white; border: 1px solid var(--border);
  padding: 12px 20px; border-radius: var(--r);
  cursor: pointer; font-family: var(--font);
  font-size: 13.5px; font-weight: 500; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--t);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 12px 20px; border-radius: var(--r);
  cursor: pointer; font-family: var(--font);
  font-size: 13.5px; font-weight: 600;
  transition: var(--t); width: 100%;
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-xl   { padding: 16px 32px; font-size: 15px; border-radius: var(--r-lg); }
.btn-full { width: 100%; }

.play-icon {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}

/* Magnetic effect handled by JS */
.magnetic { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.2s, box-shadow 0.2s; }

/* ── Layout ─────────────────────────────────────────────────── */
.container    { max-width: 1060px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 680px;  margin: 0 auto; padding: 0 40px; }

/* ── Section ────────────────────────────────────────────────── */
.section { padding: 90px 40px; }
.section.alt  { background: var(--bg-alt); padding: 90px 40px; }
.section.dark { background: var(--bg-dark); padding: 90px 40px; }

.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--primary);
  margin-bottom: 14px;
}
.section-label.light { color: rgba(77,163,255,0.75); }

h1 { font-size: clamp(32px, 5.5vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.10; margin-bottom: 18px; }
h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; margin-bottom: 16px; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }

p { color: var(--text2); font-size: 15px; line-height: 1.70; margin-bottom: 0; }

h2.light, p.light { color: rgba(230,237,243,0.90); }
h2.light { color: #E6EDF3; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  display: flex; align-items: center; gap: 60px;
  padding: 120px 60px 80px; min-height: 100svh;
}

.hero-left  { flex: 1; }
.hero-right { flex: 1; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.10em;
  padding: 4px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(77,163,255,0.20); margin-bottom: 18px;
}

.checks { display: flex; flex-direction: column; gap: 9px; margin: 22px 0 28px; }
.check  { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text2); font-weight: 500; }
.check-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; flex-shrink: 0;
}

.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

.trust {
  font-size: 12.5px; color: var(--text-muted); font-weight: 500;
  padding: 10px 0; border-top: 1px solid var(--border); margin-top: 8px;
}

/* ── Dashboard Mockup ──────────────────────────────────────── */
.dashboard-mockup {
  display: flex;
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.mock-sidebar {
  width: 72px; background: var(--bg-dark);
  padding: 16px 10px; display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
}

.mock-logo {
  width: 30px; height: 30px; background: var(--primary);
  border-radius: 7px; margin-bottom: 10px;
}

.mock-nav-item {
  height: 28px; border-radius: 7px; background: rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.mock-nav-item.active { background: rgba(77,163,255,0.15); border-left: 2.5px solid var(--primary); }

.mock-main { flex: 1; background: var(--bg); min-width: 0; }

.mock-topbar {
  height: 44px; background: rgba(255,255,255,0.90);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px; gap: 10px;
}

.mock-breadcrumb { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 4px; max-width: 80px; }
.mock-pill { height: 22px; width: 60px; background: var(--primary-soft); border-radius: 11px; }

.mock-content { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }

.mock-status-bar {
  display: flex; align-items: center; gap: 7px;
  background: white; border-radius: 8px; padding: 8px 10px;
  border: 1px solid var(--border);
}
.mock-status-pill {
  height: 18px; padding: 0 8px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 700; flex-shrink: 0;
}
.mock-status-pill.green { background: rgba(34,197,94,0.10); color: #22C55E; }
.mock-status-pill.green::before { content: '●'; }
.mock-status-pill.blue  { background: var(--primary-soft); width: 50px; }
.mock-status-line { flex: 1; height: 6px; background: var(--bg-alt); border-radius: 3px; }
.mock-dot { width: 5px; height: 5px; border-radius: 50%; }

.mock-agents {
  display: flex; align-items: center;
  background: var(--bg-dark); border-radius: 8px; padding: 10px 12px;
  gap: 0;
}
.mock-agent {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg-dark-card); border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative;
}
.mock-agent.done { border-color: rgba(34,197,94,0.4); }
.mock-agent-dot {
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--bg-dark);
}
.mock-conn { flex: 1; height: 1.5px; background: var(--border-dark); }
.mock-conn.done { background: linear-gradient(90deg, #22C55E, #4DA3FF); }

.mock-stats {
  display: flex; gap: 7px;
}
.mock-stat {
  flex: 1; background: white; border-radius: 7px; padding: 8px;
  border: 1px solid var(--border);
}
.mock-stat-val { font-size: 13px; font-weight: 700; color: var(--text); }
.mock-stat-lbl { height: 5px; background: var(--bg-alt); border-radius: 3px; margin-top: 4px; width: 70%; }

.mock-posts { display: flex; flex-direction: column; gap: 6px; }
.mock-post {
  display: flex; align-items: center; gap: 8px;
  background: white; border-radius: 7px; padding: 8px;
  border: 1px solid var(--border);
}
.mock-post-plat { width: 24px; height: 24px; border-radius: 5px; flex-shrink: 0; }
.mock-post-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mock-line { height: 5px; background: var(--bg-alt); border-radius: 3px; }
.mock-line.w80 { width: 80%; }
.mock-line.w70 { width: 70%; }
.mock-line.w60 { width: 60%; }
.mock-line.w50 { width: 50%; }
.mock-post-badge { font-size: 11px; flex-shrink: 0; }

/* Floating badge */
.hero-badge {
  position: absolute; bottom: -16px; left: 20px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 8px 14px;
  font-size: 12px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 7px rgba(34,197,94,0.6);
}
.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── Grid ───────────────────────────────────────────────────── */
.grid-3 {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 32px;
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: white; padding: 28px; border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  border-color: var(--primary);
}

.card-icon { font-size: 26px; margin-bottom: 14px; }

.card p { font-size: 13.5px; margin-top: 6px; }

/* Output cards */
.output-card p { font-size: 13px; margin-top: 8px; }
.output-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.plat-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.plat-name { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.output-title { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; line-height: 1.4; }

/* ── Agents dark section ────────────────────────────────────── */
.agent-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 40px;
  overflow-x: auto; scrollbar-width: none;
}
.agent-flow::-webkit-scrollbar { display: none; }

.agent-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0; min-width: 80px;
}

.agent-box {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--bg-dark-card); border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: var(--t);
}
.agent-box:hover { border-color: var(--primary); box-shadow: 0 0 16px var(--primary-glow); }
.agent-box.active { border-color: var(--primary); background: rgba(77,163,255,0.10); box-shadow: 0 0 12px var(--primary-glow); }

.agent-node span { font-size: 11px; color: rgba(230,237,243,0.55); font-weight: 500; }

.agent-line {
  flex: 1; height: 2px; background: var(--border-dark);
  margin-bottom: 22px; min-width: 20px;
}
.agent-line.done { background: linear-gradient(90deg, #22C55E, #4DA3FF); }

/* ── Learning section ───────────────────────────────────────── */
.learn-item {
  background: white; border-radius: var(--r-lg); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  text-align: center;
}
.learn-icon { font-size: 24px; margin-bottom: 10px; }
.learn-text { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing {
  display: flex; gap: 20px; margin-top: 32px; align-items: stretch;
}

.price-card {
  background: white; padding: 28px; border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.10); }

.price-card.highlight {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(77,163,255,0.08), var(--shadow);
}

.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 700; padding: 3px 12px; border-radius: var(--r-pill);
}

.price-tier   { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.price-name   { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.price-setup  { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.price-monthly {
  font-family: var(--display); font-size: 34px; color: var(--text);
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px;
}
.price-monthly span { font-family: var(--font); font-size: 14px; color: var(--text-muted); font-weight: 400; }

.price-features { display: flex; flex-direction: column; gap: 7px; flex: 1; margin: 12px 0 20px; }
.price-feat     { font-size: 13px; color: var(--text2); display: flex; align-items: flex-start; gap: 7px; }
.price-feat::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 12px; flex-shrink: 0; margin-top: 1px; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta { text-align: center; padding: 100px 40px; background: var(--primary); }
.cta h2 { color: white; margin-bottom: 12px; }
.cta p  { color: rgba(255,255,255,0.75); margin-bottom: 28px; font-size: 15px; }
.cta .btn-primary { background: white; color: var(--primary); font-size: 15px; padding: 16px 32px; border-radius: var(--r-lg); display: inline-flex; align-items: center; gap: 8px; }
.cta .btn-primary:hover { background: rgba(255,255,255,0.93); box-shadow: 0 0 24px rgba(0,0,0,0.15); }

.cta-note {
  font-size: 12px; color: rgba(255,255,255,0.60); margin-top: 14px; margin-bottom: 24px;
}

.avatar-row {
  display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap;
  color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500; gap: 10px;
}
.av {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.20); border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
  margin-left: -8px;
}
.av:first-child { margin-left: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background: #080C10; padding: 32px 40px; }
.footer-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-logo { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: 0.06em; flex: 1; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.60); }
.footer-copy { font-size: 11.5px; color: rgba(255,255,255,0.16); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.50); z-index: 400;
  align-items: flex-end; justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }

.modal-sheet {
  background: white; border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px; max-height: 90svh;
  overflow-y: auto; box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
}
.modal-handle {
  width: 36px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 12px auto 0;
}
.modal-inner { padding: 20px 24px 40px; }
.modal-inner h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 6px; }
.modal-inner p  { font-size: 13.5px; color: var(--text2); margin-bottom: 20px; }

.field {
  width: 100%; height: 46px; background: var(--bg-alt);
  border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 0 14px; font-family: var(--font); font-size: 14px;
  color: var(--text); outline: none; margin-bottom: 12px;
  transition: border-color 0.15s; -webkit-appearance: none;
}
.field:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(77,163,255,0.12); }

.modal-success {
  display: none; text-align: center; padding: 16px 0;
  font-size: 14px; color: var(--success); font-weight: 600;
}

.btn-spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%; display: none;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Sticky bar mobile ──────────────────────────────────────── */
.sticky-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white; padding: 12px 16px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
  z-index: 200;
}
.sticky-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-up.active { opacity: 1; transform: translateY(0); }


/* ── Nav Login Button ───────────────────────────────────────── */
.nav-login {
  display: inline-flex !important;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--primary);
  background: transparent;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary) !important;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--t);
}
.nav-login:hover {
  background: var(--primary);
  color: white !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero     { flex-direction: column; padding: 100px 24px 60px; gap: 40px; }
  .hero-right { max-width: 500px; width: 100%; }
  .grid-3   { grid-template-columns: 1fr 1fr; }
  .pricing  { flex-direction: column; }
  .section, .section.alt, .section.dark { padding: 60px 24px; }
  .container, .container-sm { padding: 0 24px; }
  .nav      { padding: 0 20px; }
  .nav-links a { display: none; }
  .btn-nav-label-full { display: none; }
  .btn-nav-label-short { display: inline; }
  .sticky-bar { display: block; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .cta      { padding: 80px 24px 120px; }
  footer    { padding: 28px 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-logo { flex: none; }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .buttons { flex-direction: column; }
  .buttons .btn-primary, .buttons .btn-secondary { width: 100%; justify-content: center; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .sticky-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ── Force Light Mode — ignore system dark mode ───────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light;
  }
  html, body {
    background: var(--bg) !important;
    color: var(--text) !important;
  }
  /* All elements keep their explicit colors */
  input, select, textarea, button {
    color-scheme: only light;
  }
}
