/* ==============================================
   Ada AI — Landing Page v2
   assets/css/style.css
============================================== */

/* ── Reset & base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #08080e;
  --surface: #0f0f1a;
  --panel: #161625;
  --edge: rgba(255,255,255,0.07);
  --violet: #7c3aed;
  --violet-bright: #a855f7;
  --mint: #2dd4bf;
  --cream: #f5f0eb;
  --muted: rgba(245,240,235,0.45);
  --dim: rgba(245,240,235,0.2);
  --ff-head: 'Bebas Neue', sans-serif;
  --ff-body: 'Outfit', sans-serif;
  --btn-radius: 16px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navbar ──────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 28px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.5s, padding 0.4s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(8,8,14,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 18px 60px;
  border-color: var(--edge);
}
.logo {
  font-family: var(--ff-head);
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--violet), var(--mint));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: white; font-family: var(--ff-body); font-weight: 700;
}
.nav-links {
  display: flex; gap: 40px; list-style: none;
  font-size: 1.0rem; color: var(--cream); font-family: var(--ff-body); font-weight: 700;
}
.nav-links a {
  font-size: 1.2rem; font-weight: 700;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  font-family: var(--ff-body);
  font-size: 1.75rem; font-weight: 600;
  color: var(--ink);
  background: linear-gradient(
    125deg,
    var(--cream) 0%,
    #ebe3ff 38%,
    var(--violet-bright) 52%,
    var(--mint) 100%
  );
  background-size: 320% 320%;
  background-position: 4% 50%;
  padding: 22px 64px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 6px 28px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition:
    background-position 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.45s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    letter-spacing 0.35s ease;
}
.nav-cta:hover {
  background-position: 96% 50%;
  color: #fff;
  letter-spacing: 0.06em;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px) scale(1.04) rotate(-0.5deg);
  box-shadow:
    0 20px 50px rgba(124, 58, 237, 0.5),
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 0 70px rgba(45, 212, 191, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.nav-cta:active {
  transform: translateY(-1px) scale(1.02);
  transition-duration: 0.12s;
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(8,8,14,0.92) 0%, rgba(8,8,14,0.7) 45%, rgba(8,8,14,0.15) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 140px 80px 80px;
  gap: 40px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 24px;
}
.hero-kicker::before {
  content: ''; display: block;
  width: 24px; height: 1px;
  background: var(--mint);
}
.hero-h1 {
  font-family: var(--ff-head);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 32px;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--violet-bright), var(--mint));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.05rem; font-weight: 300;
  color: var(--muted); max-width: 420px;
  line-height: 1.75; margin-bottom: 44px;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  align-items: center; margin-bottom: 56px;
}

/* ── Buttons ─────────────────────────────── */
/* Primær-CTA: samme gradient/hover som nav-cta; +10 % vs tidligere basis for btn-solid / plan-btn */
.btn-solid,
.plan-btn.plan-btn-fill {
  font-family: var(--ff-body);
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(
    125deg,
    var(--cream) 0%,
    #ebe3ff 38%,
    var(--violet-bright) 52%,
    var(--mint) 100%
  );
  background-size: 320% 320%;
  background-position: 4% 50%;
  border-radius: var(--btn-radius);
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 6px 28px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    background-position 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.45s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    letter-spacing 0.35s ease;
}
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(0.9rem * 1.1);
  padding: calc(15px * 1.1) calc(34px * 1.1);
}
.plan-btn.plan-btn-fill {
  font-size: calc(0.875rem * 1.1);
  padding: calc(14px * 1.1);
}
.btn-solid:hover,
.plan-btn.plan-btn-fill:hover {
  background-position: 96% 50%;
  color: #fff;
  letter-spacing: 0.06em;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px) scale(1.04) rotate(-0.5deg);
  box-shadow:
    0 20px 50px rgba(124, 58, 237, 0.5),
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 0 70px rgba(45, 212, 191, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-solid:active,
.plan-btn.plan-btn-fill:active {
  transform: translateY(-1px) scale(1.02);
  transition-duration: 0.12s;
}
.btn-ghost {
  color: var(--muted); font-size: 0.9rem; font-weight: 400;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--cream); }
.btn-ghost .play-circle {
  width: 40px; height: 40px;
  border: 1px solid rgba(245,240,235,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; transition: border-color 0.2s;
}
.btn-ghost:hover .play-circle { border-color: var(--cream); }

/* ── Hero social proof ───────────────────── */
.hero-proof { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 0.8rem; }
.proof-line { width: 1px; height: 28px; background: var(--edge); }
.proof-num { font-family: var(--ff-head); font-size: 1.6rem; color: var(--cream); letter-spacing: 0.04em; }

/* ── Hero image ──────────────────────────── */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero-img-frame { position: relative; width: 100%; max-width: 440px; }
.hero-img-frame::before {
  content: ''; position: absolute; inset: -2px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(45,212,191,0.3), transparent);
  z-index: 0;
}
.hero-img {
  position: relative; z-index: 1; width: 100%; height: 580px;
  object-fit: cover; object-position: top center;
  border-radius: 26px; display: block;
  filter: saturate(0.9) brightness(0.95);
}
.hero-img-blur {
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 80px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.45), transparent);
  filter: blur(30px); z-index: 0;
}

/* ── Floating chips ──────────────────────── */
.chip {
  position: absolute; z-index: 3;
  background: rgba(15,15,26,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px); border-radius: 16px;
  padding: 14px 18px; min-width: 150px;
}
.chip-top { top: 60px; right: -40px; animation: chipFloat 5s ease-in-out infinite; }
.chip-bot { bottom: 80px; left: -40px; animation: chipFloat 5s ease-in-out infinite reverse; animation-delay: -2s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chip-label { font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.chip-val { font-family: var(--ff-head); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--cream); }
.chip-sub { font-size: 0.72rem; color: var(--mint); margin-top: 2px; }

/* ── Scroll hint ─────────────────────────── */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--dim); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6) translateY(-8px); }
  50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ── Marquee strip ───────────────────────── */
.strip {
  background: var(--surface);
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  padding: 0; overflow: hidden; white-space: nowrap;
}
.strip-track { display: inline-flex; animation: marquee 22s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.strip-item {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 20px 48px; font-family: var(--ff-head);
  font-size: 1rem; letter-spacing: 0.12em; color: var(--dim);
}
.strip-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--violet-bright); opacity: 0.5; }

/* ── Section base ────────────────────────── */
.section { padding: 120px 80px; }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet-bright); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::after { content: ''; flex: 0 0 40px; height: 1px; background: var(--violet-bright); opacity: 0.4; }
.section-title {
  font-family: var(--ff-head); font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 0.95; letter-spacing: 0.02em; color: var(--cream); margin-bottom: 24px;
}
.section-sub { font-size: 1.05rem; font-weight: 300; color: var(--muted); max-width: 500px; line-height: 1.75; }

/* ── Features ────────────────────────────── */
.features { background: var(--surface); }
.features-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 72px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; border: 2px solid var(--edge); border-radius: 24px; overflow: hidden;
}
.feat { background: var(--panel); padding: 44px 36px; transition: background 0.3s; position: relative; }
.feat:hover { background: rgba(124,58,237,0.08); }
.feat::after {
  content: ''; position: absolute; bottom: 0; left: 36px; right: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-bright), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feat:hover::after { opacity: 0.4; }
.feat-num { font-family: var(--ff-head); font-size: 4rem; letter-spacing: -0.02em; color: rgba(255,255,255,0.04); line-height: 1; margin-bottom: 20px; }
.feat-icon { font-size: 1.8rem; margin-bottom: 20px; }
.feat-title { font-family: var(--ff-head); font-size: 1.4rem; letter-spacing: 0.04em; color: var(--cream); margin-bottom: 14px; }
.feat-desc { font-size: 0.875rem; font-weight: 300; color: var(--muted); line-height: 1.7; }

/* ── How it works ────────────────────────── */
.how { background: var(--ink); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 72px; position: relative; }
.how-steps::before {
  content: ''; position: absolute; top: 28px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--mint), transparent); opacity: 0.3;
}
.how-step { padding: 0 48px 0 0; }
.how-step-num {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--edge); background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 1.3rem; letter-spacing: 0.04em; color: var(--violet-bright);
  margin-bottom: 32px; position: relative; z-index: 1; transition: all 0.3s;
}
.how-step:hover .how-step-num { border-color: var(--violet-bright); background: rgba(124,58,237,0.12); box-shadow: 0 0 30px rgba(124,58,237,0.3); }
.how-step-title { font-family: var(--ff-head); font-size: 1.6rem; letter-spacing: 0.04em; color: var(--cream); margin-bottom: 14px; }
.how-step-desc { font-size: 0.875rem; font-weight: 300; color: var(--muted); line-height: 1.7; }

/* ── Testimonials ────────────────────────── */
.proof {
  background: var(--panel); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  padding: 80px; display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: center;
}
.proof-label { font-family: var(--ff-head); font-size: 5rem; letter-spacing: 0.02em; line-height: 0.9; color: rgba(255,255,255,0.06); }
.proof-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proof-card { background: var(--surface); border: 1px solid var(--edge); border-radius: 20px; padding: 28px; transition: border-color 0.3s, transform 0.3s; }
.proof-card:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-4px); }
.proof-stars { font-size: 0.75rem; color: #fbbf24; letter-spacing: 3px; margin-bottom: 16px; }
.proof-quote { font-size: 0.875rem; font-weight: 300; color: var(--muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.proof-who { display: flex; align-items: center; gap: 10px; }
.proof-av { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--violet), var(--mint)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; color: white; flex-shrink: 0; }
.proof-name { font-size: 0.85rem; font-weight: 600; color: var(--cream); }
.proof-role { font-size: 0.75rem; color: var(--dim); }

/* ── Pricing ─────────────────────────────── */
.pricing { background: var(--ink); }
.pricing-head { margin-bottom: 64px; }
.pricing-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--edge); border-radius: 24px; padding: 40px; transition: all 0.3s; position: relative; overflow: hidden; }
.plan::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(124,58,237,0.04), transparent); opacity: 0; transition: opacity 0.3s; }
.plan:hover::before { opacity: 1; }
.plan.star { border-color: rgba(124,58,237,0.4); background: linear-gradient(160deg, rgba(124,58,237,0.08), transparent); overflow: visible; }
.plan-badge { position: absolute; top: 0; right: 28px; background: linear-gradient(135deg, var(--violet), var(--mint)); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: white; padding: 6px 14px 8px; border-radius: 0 0 14px 14px; }
.plan-tier { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.plan-price { font-family: var(--ff-head); font-size: 3.5rem; letter-spacing: -0.01em; color: var(--cream); line-height: 1; }
.plan-price sup { font-size: 1.2rem; vertical-align: super; }
.plan-period { font-size: 0.85rem; color: var(--dim); margin-bottom: 20px; }
.plan-tagline { font-size: 0.85rem; font-weight: 300; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }
.plan-divider { height: 1px; background: var(--edge); margin-bottom: 28px; }
.plan-features-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.plan-features-list li { font-size: 0.875rem; font-weight: 300; color: var(--muted); display: flex; align-items: flex-start; gap: 10px; }
.plan-features-list li::before { content: '→'; color: var(--violet-bright); font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }
.plan-btn { display: block; text-align: center; padding: 14px; border-radius: var(--btn-radius); font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; letter-spacing: 0.02em; font-family: var(--ff-body); }
/* transition: kun på outline — .plan-btn-fill arver full CTA-hover fra knapp-blokken over */
.plan-btn-outline { background: transparent; border: 1px solid var(--edge); color: var(--cream); transition: border-color 0.25s ease, color 0.2s ease; }
.plan-btn-outline:hover { border-color: var(--violet-bright); }
/* Pro-knapp: eksplisitt etter .plan-btn så hover/gradient ikke overskygges */
.pricing .plan-btn.plan-btn-fill {
  position: relative;
  z-index: 2;
}

/* ── CTA ─────────────────────────────────── */
.cta-section { background: var(--surface); padding: 0 80px 120px; text-align: center; }
.cta-inner { border: 1px solid var(--edge); border-radius: 32px; padding: 100px 60px; position: relative; overflow: hidden; background: var(--panel); }
.cta-bg-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(124,58,237,0.18), transparent 70%); pointer-events: none; }
.cta-legal { margin-top: 20px; font-size: 0.78rem; color: var(--dim); }

/* ── Footer ──────────────────────────────── */
footer { background: var(--ink); border-top: 1px solid var(--edge); padding: 60px 80px 40px; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 60px; padding-bottom: 48px; border-bottom: 1px solid var(--edge); margin-bottom: 32px; }
.foot-brand p { font-size: 0.875rem; font-weight: 300; color: var(--dim); margin-top: 16px; max-width: 240px; line-height: 1.7; }
.foot-col h5 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col ul li a { font-size: 0.875rem; font-weight: 300; color: var(--dim); text-decoration: none; transition: color 0.2s; }
.foot-col ul li a:hover { color: var(--cream); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; }
.foot-copy { font-size: 0.78rem; color: var(--dim); }
.foot-made { font-size: 0.78rem; color: var(--violet-bright); }

/* ── Scroll animations ───────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 22px 40px; }
  .hero-inner { grid-template-columns: 1fr; padding: 130px 40px 80px; }
  .hero-visual { display: none; }
  .features-head { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .how-step { padding: 0 0 48px; border-left: 1px solid var(--edge); padding-left: 32px; margin-left: 28px; }
  .proof { grid-template-columns: 1fr; }
  .proof-cards { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section { padding: 80px 40px; }
}
@media (max-width: 768px) {
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .hero-inner { padding: 110px 24px 60px; }
  .hero-h1 { font-size: 3.6rem; }
  .section { padding: 60px 24px; }
  .proof { padding: 60px 24px; }
  .cta-section { padding: 0 24px 80px; }
  .cta-inner { padding: 60px 28px; }
  footer { padding: 48px 24px 32px; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
