*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default;
}

:root {
  /* Ellva app color system — dark mode */
  --background: 20 12% 9%;
  --foreground: 0 0% 100%;
  --card: 30 18% 12%;
  --primary: 8 50% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 20 14% 16%;
  --muted: 20 14% 16%;
  --muted-foreground: 24 33% 97%;
  --border: 18 15% 20%;
  --input: 0 0% 100% / 0.12;
  --copper: 16 75% 55%;
  --copper-light: 16 75% 55%;
  --copper-glow: 16 75% 55% / 0.25;
  --gold: 28 85% 58%;
  --surface: 30 18% 12%;
  --text-muted: 24 20% 80%;
  --signal: 346 77% 64%;
  --screen-top: 232 23% 8%;
  --screen-bottom: 235 20% 9%;
  --radius-pill: 9999px;
  --radius-card: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
button {
  cursor: pointer;
}
input,
textarea {
  cursor: text;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: all 0.4s;
}

.nav.scrolled {
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 hsl(var(--border));
}

.nav-logo {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.nav-cta {
  background: hsl(var(--copper-light));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.nav-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-cta:hover {
  background: hsl(var(--gold));
  box-shadow: 0 0 24px hsl(var(--copper) / 0.45);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, hsla(28, 92%, 35%, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, hsla(37, 90%, 45%, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 75%, hsla(25, 80%, 26%, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, hsla(243, 60%, 45%, 0.2) 0%, transparent 50%), hsl(var(--background));
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.hero-aurora {
  position: absolute;
  inset: -40%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 60%, hsla(28, 92%, 35%, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 30%, hsla(37, 90%, 45%, 0.1) 0%, transparent 50%);
  animation: auroraDrift 18s ease-in-out infinite;
  background-size: 200% 200%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  padding: 80px 24px 0;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsl(var(--copper) / 0.15);
  border: 1px solid hsl(var(--copper-light) / 0.35);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--gold));
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.beta-dot {
  width: 6px;
  height: 6px;
  background: hsl(var(--signal));
  border-radius: 50%;
  animation: nodePulse 2s ease-in-out infinite;
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 28px;
  color: hsl(var(--foreground) / 0.85);
  font-size: clamp(30px, 4.5vw, 56px);
}

h1 em {
  font-style: italic;
  color: hsl(var(--gold));
}

.hero-sub {
  color: hsl(var(--text-muted));
  line-height: 1.75;
  max-width: 740px;
  margin: 0 auto 40px;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-sub em {
  font-style: italic;
  color: hsl(var(--foreground) / 0.9);
}

.hero-you {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  color: hsl(var(--foreground));
  font-size: 1.05em;
}

.hero-fine {
  margin-top: 14px;
  font-size: 13px;
  color: hsl(var(--muted-foreground) / 0.6);
  letter-spacing: 0.04em;
}

.signup-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  justify-content: center;
}

.signup-form input {
  flex: 1;
  min-width: 220px;
  background: hsl(var(--input));
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  color: hsl(var(--foreground));
  outline: none;
  transition: all 0.2s;
}

.signup-form input::placeholder {
  color: hsl(var(--text-muted) / 0.7);
}

.signup-form input:focus {
  background: hsl(0 0% 100% / 0.16);
  box-shadow: 0 0 0 2px hsl(var(--copper-light) / 0.35);
}

.signup-form button {
  background: hsl(var(--copper-light));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.signup-form button:hover {
  background: hsl(var(--gold));
  box-shadow: 0 0 24px hsl(var(--copper) / 0.45);
  transform: translateY(-2px);
}

.success-msg {
  margin-top: 16px;
  padding: 12px 20px;
  background: hsl(var(--copper) / 0.15);
  border: 1px solid hsl(var(--copper-light) / 0.35);
  border-radius: 12px;
  color: hsl(var(--gold));
  font-size: 14px;
  font-weight: 500;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  display: none;
}

.trust-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 40px 24px 16px;
  overflow-x: auto;
}

.trust-pill {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.trust-pill:hover {
  border-color: hsl(var(--copper-light) / 0.4);
  color: hsl(var(--foreground));
}

section {
  padding: clamp(64px, 8vw, 100px) 24px;
}

.section-divider {
  max-width: 140px;
  height: 1px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  background: linear-gradient(to right, transparent, hsl(var(--border) / 0.6), transparent);
}

.copper-accent {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: linear-gradient(to right, hsl(var(--copper-light)), hsl(var(--copper)));
  border-radius: 2px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--copper-light));
  margin-bottom: 16px;
}

h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  margin-bottom: 20px;
  font-size: clamp(32px, 4.5vw, 54px);
}

h2 em {
  font-style: italic;
  color: hsl(var(--copper-light));
}

.section-text {
  font-size: 17px;
  color: hsl(var(--text-muted));
  max-width: 700px;
  line-height: 1.7;
}

.section-text em {
  font-style: italic;
  color: hsl(var(--foreground) / 0.9);
}

.center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: hsl(0 0% 100% / 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-card);
  padding: 24px;
  transition: all 0.25s;
}

.card:hover {
  border-color: hsl(var(--copper-light) / 0.35);
  transform: translateY(-3px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-1 {
  background: hsl(var(--copper) / 0.2);
  border: 1px solid hsl(var(--copper) / 0.35);
}

.card-icon-2 {
  background: hsla(25, 80%, 26%, 0.22);
  border: 1px solid hsl(var(--copper) / 0.28);
}

.card h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  text-align: left;
}

.stats-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 72px;
}

.stat-card {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-card);
  padding: 24px 32px;
  text-align: center;
  min-width: 160px;
  flex: 1;
  max-width: 220px;
}

.stat-number {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 42px;
  color: hsl(var(--gold));
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.mac-device {
  position: relative;
  width: 340px;
  margin: 0 auto;
  max-width: 100%;
}

.mac-screen {
  width: 300px;
  max-width: 100%;
  height: 190px;
  border-radius: 12px;
  border: 2px solid hsl(0 0% 100% / 0.1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--screen-top)), hsl(var(--screen-bottom)));
  box-shadow:
    0 0 60px hsla(28, 92%, 35%, 0.28),
    0 0 120px hsla(28, 92%, 35%, 0.14),
    inset 0 0 40px hsla(28, 92%, 35%, 0.08);
}

.mac-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, hsla(28, 92%, 35%, 0.22) 0%, transparent 70%);
}

.mac-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: hsl(0 0% 100% / 0.08);
  border-radius: 2px;
}

.mac-lines {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mac-line {
  height: 6px;
  border-radius: 2px;
}

.mac-hinge {
  width: 240px;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(to bottom, hsl(0 0% 100% / 0.08), hsl(0 0% 100% / 0.03));
}

.mac-base {
  width: 120px;
  height: 6px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: hsl(0 0% 100% / 0.05);
}

.footer-cta {
  position: relative;
  overflow: hidden;
}

.footer-cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, hsla(28, 92%, 35%, 0.08) 0%, transparent 70%);
}

.footer-cta-inner {
  position: relative;
  z-index: 1;
}

.fine-print {
  font-size: 13px;
  color: hsl(var(--muted-foreground) / 0.6);
  letter-spacing: 0.04em;
}

footer {
  border-top: 1px solid hsl(var(--border));
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
}

.footer-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.footer-copy {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

@keyframes auroraDrift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Founder note */
.founder-note {
  background: hsl(var(--surface) / 0.4);
}

.founder-quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.88);
  font-style: italic;
  margin-bottom: 20px;
}

.founder-quote em {
  font-style: normal;
  color: hsl(var(--copper-light));
}

.founder-byline {
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.04em;
}

/* Agent grid */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.agent-card {
  background: hsl(0 0% 100% / 0.04);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-card);
  padding: 24px;
  transition: all 0.25s;
}

.agent-card:hover {
  border-color: hsl(var(--copper-light) / 0.4);
  transform: translateY(-3px);
}

.agent-emoji {
  font-size: 18px;
  margin-right: 4px;
  vertical-align: middle;
}

.agent-card h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-card p {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Intimate section — no special background */

/* Pain section */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.pain-card {
  background: hsl(0 0% 100% / 0.03);
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 22px;
  font-size: 15px;
  color: hsl(var(--foreground) / 0.75);
  line-height: 1.65;
  font-style: normal;
  transition: border-color 0.2s;
}

.pain-card:hover {
  border-color: hsl(var(--copper-light) / 0.3);
}

.pain-close {
  margin-top: 32px;
  font-size: 19px;
  color: hsl(var(--foreground) / 0.85);
  line-height: 1.6;
  font-weight: 400;
}

.pain-close em {
  color: hsl(var(--copper-light));
  font-style: normal;
  font-weight: 500;
}

/* Catchup section — no special background */

.catchup-queries {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 40px auto;
  max-width: 520px;
  text-align: left;
}

.catchup-query {
  background: hsl(0 0% 100% / 0.04);
  border: 1px solid hsl(var(--copper-light) / 0.2);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  color: hsl(var(--foreground) / 0.75);
  font-style: normal;
}

.catchup-query::before {
  content: "\201C";
  color: hsl(var(--copper-light));
  margin-right: 2px;
}
.catchup-query::after {
  content: "\201D";
  color: hsl(var(--copper-light));
  margin-left: 2px;
}

.catchup-close {
  font-size: 15px;
  color: hsl(var(--text-muted));
  line-height: 1.7;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .nav,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stats-row {
    flex-direction: column;
    align-items: center;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }
  .agent-grid {
    grid-template-columns: 1fr;
  }
}
