/* StartCoding Landing — Neon Glass */

/* ===== Tokens ===== */
:root {
  --bg-0: #060913;
  --bg-1: #0a0e1e;
  --bg-2: #0e1530;
  --bg-3: #121d42;

  --stroke: rgba(255,255,255,0.06);
  --stroke-glass: rgba(255,255,255,0.10);
  --stroke-glow: rgba(124,58,237,0.35);

  --text-1: rgba(255,255,255,0.94);
  --text-2: rgba(255,255,255,0.65);
  --text-3: rgba(255,255,255,0.40);

  --cyan: #38bdf8;
  --purple: #7c3aed;
  --magenta: #e879f9;
  --green: #22c55e;
  --error: #fb7185;

  --accent-grad: linear-gradient(135deg, #2f7dff 0%, #7c3aed 50%, #e879f9 100%);
  --glass-bg: rgba(14,21,48,0.55);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur: 16px;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 120ms;
  --t-med: 200ms;

  color-scheme: dark;
}

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

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient glow behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(124,58,237,0.15), transparent 60%),
    radial-gradient(800px 500px at 85% 10%, rgba(47,125,255,0.12), transparent 60%),
    radial-gradient(600px 400px at 50% 80%, rgba(232,121,249,0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--text-1);
  color: var(--bg-0);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ===== Glass Card (reusable) ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.25);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    0 0 40px -10px rgba(124,58,237,0.15);
}

/* ===== Layout ===== */
.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

/* Subtle radial gradients matching the hero's palette */
#try {
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(47,125,255,0.08), transparent 60%),
    var(--bg-0);
}

#how {
  background:
    radial-gradient(600px 400px at 20% 50%, rgba(124,58,237,0.08), transparent 60%),
    radial-gradient(500px 300px at 80% 80%, rgba(47,125,255,0.05), transparent 60%),
    var(--bg-1);
}

#build {
  background:
    radial-gradient(700px 400px at 70% 70%, rgba(232,121,249,0.06), transparent 60%),
    var(--bg-0);
}

#features {
  background:
    radial-gradient(800px 500px at 30% 30%, rgba(47,125,255,0.07), transparent 60%),
    radial-gradient(600px 400px at 70% 60%, rgba(124,58,237,0.06), transparent 60%),
    var(--bg-1);
}

#trust {
  background:
    radial-gradient(600px 400px at 50% 40%, rgba(124,58,237,0.07), transparent 60%),
    var(--bg-0);
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 48px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: rgba(6,9,19,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar-inner {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bar-logo {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  margin: 0;
}

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(170deg, rgba(47,125,255,0.12) 0%, rgba(124,58,237,0.18) 40%, rgba(232,121,249,0.08) 100%),
    var(--bg-0);
  padding: 80px 0 100px;
  overflow: hidden;
  position: relative;
}

/* Subtle grid overlay on all sections */
.hero::before,
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.hero-heading {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: var(--text-2);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--accent-grad);
  background-size: 200% 200%;
  animation: btn-gradient-shift 4s ease infinite;
  color: white;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
  box-shadow:
    0 0 24px rgba(124,58,237,0.3),
    0 0 48px rgba(47,125,255,0.15),
    0 4px 16px rgba(0,0,0,0.3);
}

/* Glint sweep */
.btn-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.25) 45%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0.25) 55%,
    transparent 80%
  );
  animation: glint-sweep 4s ease-in-out infinite;
}

/* Breathing border glow */
.btn-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta), var(--cyan));
  background-size: 300% 300%;
  animation: border-rotate 3s linear infinite;
  z-index: -1;
  opacity: 0.5;
  filter: blur(6px);
  transition: opacity var(--t-med) var(--ease);
}

.btn-glow:hover::after,
.btn-glow:focus-visible::after {
  opacity: 1;
}

.btn-glow:hover,
.btn-glow:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 40px rgba(124,58,237,0.5),
    0 0 80px rgba(47,125,255,0.25),
    0 0 120px rgba(232,121,249,0.15),
    0 8px 24px rgba(0,0,0,0.3);
}

.btn-glow:active {
  transform: translateY(0) scale(0.98);
}

.btn-glow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  animation: none;
}
.btn-glow:disabled::before,
.btn-glow:disabled::after {
  animation: none;
  display: none;
}

@keyframes glint-sweep {
  0%, 65%  { left: -100%; }
  85%      { left: 150%; }
  100%     { left: 150%; }
}

@keyframes btn-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: rgba(124,58,237,0.06);
  color: var(--text-1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

/* Subtle glint on ghost */
.btn-ghost::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.08) 45%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.08) 55%,
    transparent 80%
  );
  animation: glint-sweep 6s ease-in-out 2s infinite;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.12);
  box-shadow: 0 0 24px rgba(124,58,237,0.2), 0 4px 16px rgba(0,0,0,0.2);
}

.btn-ghost:active {
  transform: translateY(0) scale(0.98);
}

/* ===== Hero Codi ===== */
.hero-codi {
  position: relative;
  flex-shrink: 0;
}

.hero-codi::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 420px;
  border-radius: 40%;
  background: radial-gradient(
    ellipse at center,
    rgba(56,189,248,0.2) 0%,
    rgba(124,58,237,0.15) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: codi-pulse 4s ease-in-out infinite;
}

.hero-codi::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 340px;
  border-radius: 30px;
  background: linear-gradient(
    160deg,
    rgba(56,189,248,0.1) 0%,
    rgba(124,58,237,0.06) 50%,
    rgba(232,121,249,0.04) 100%
  );
  border: 1px solid rgba(56,189,248,0.2);
  box-shadow:
    0 0 30px rgba(56,189,248,0.2),
    0 0 60px rgba(124,58,237,0.15),
    inset 0 1px 0 rgba(255,255,255,0.08);
  pointer-events: none;
  animation: codi-glass 4s ease-in-out infinite;
}

@keyframes codi-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes codi-glass {
  0%, 100% {
    border-color: rgba(56,189,248,0.2);
    box-shadow: 0 0 30px rgba(56,189,248,0.2), 0 0 60px rgba(124,58,237,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  }
  50% {
    border-color: rgba(56,189,248,0.4);
    box-shadow: 0 0 50px rgba(56,189,248,0.35), 0 0 100px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  }
}

.codi-label {
  position: absolute;
  top: -10px;
  right: -16px;
  z-index: 3;
  display: inline-block;
  padding: 6px 20px;
  border-radius: var(--r-md);
  background: rgba(14,21,48,0.4);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(56,189,248,0.25);
  text-align: center;
  overflow: hidden;
}

.codi-label span {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.codi-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.15) 55%,
    transparent 80%
  );
  animation: glint-sweep 5s ease-in-out 1s infinite;
}

.hero-codi-video {
  display: block;
  width: auto;
  height: 380px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
  clip-path: inset(4px);
}

/* ===== Codi Sound Button ===== */
.codi-sound-btn {
  position: absolute;
  bottom: -16px;
  left: -16px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  background: var(--bg-2);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}

.codi-sound-btn:hover,
.codi-sound-btn:focus-visible {
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(124,58,237,0.5), 0 0 60px rgba(124,58,237,0.2);
  border-color: var(--magenta);
}

.codi-sound-btn:active { transform: scale(0.95); }

/* ===== Try It ===== */
.try-it-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-0);
  border: 1px solid var(--stroke-glass);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.4),
    0 0 80px -20px rgba(124,58,237,0.15);
}

.try-it-frame {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
  background: var(--bg-0);
}

/* ===== Demo Tabs ===== */
.demo-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.demo-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-group__label {
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.demo-tab {
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}

.demo-tab:hover {
  border-color: rgba(124,58,237,0.3);
  color: var(--text-1);
  background: rgba(124,58,237,0.08);
}

.demo-tab.active {
  border-color: var(--purple);
  color: white;
  background: rgba(124,58,237,0.15);
  box-shadow: 0 0 16px rgba(124,58,237,0.2);
}

.demo-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

/* ===== Language Toggle ===== */
.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.lang-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 24px;
  border: 2px solid var(--glass-border);
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-3);
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}

.lang-btn:hover {
  color: var(--text-1);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
  background: var(--accent-grad);
  background-size: 200% 200%;
  animation: btn-gradient-shift 4s ease infinite;
  color: white;
  border-color: transparent;
  box-shadow:
    0 0 20px rgba(124, 58, 237, 0.3),
    0 0 40px rgba(47, 125, 255, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-btn.active:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 32px rgba(124, 58, 237, 0.4),
    0 0 60px rgba(47, 125, 255, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===== How It Works — Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step {
  padding: 32px 24px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
}

/* ===== Build Grid ===== */
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.build-item {
  padding: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.build-item span {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

@media (max-width: 500px) {
  .build-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Features Grid ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  padding: 28px 24px;
  text-align: left;
  width: calc(33.333% - 14px);
  box-sizing: border-box;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .features-grid .feature-card { width: 100%; }
}
@media (min-width: 769px) and (max-width: 960px) {
  .features-grid .feature-card { width: calc(50% - 10px); }
}

/* ===== Trust Grid ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.trust-card {
  padding: 28px 24px;
  text-align: left;
}

.trust-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 12px;
}

.trust-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.trust-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ===== Roadmap ===== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 48px auto 0;
}

.roadmap-item {
  padding: 24px;
  text-align: left;
}

.roadmap-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.roadmap-item p {
  color: var(--text-2);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .roadmap-grid { grid-template-columns: 1fr; }
}

/* ===== Waitlist ===== */
.waitlist-section {
  background: var(--bg-0);
  overflow: hidden;
}

.waitlist-section::after {
  content: "";
  position: absolute;
  inset: -50% -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(400px 400px at 50% 50%, rgba(47,125,255,0.15), transparent 60%),
    radial-gradient(350px 350px at 50% 50%, rgba(124,58,237,0.12), transparent 60%),
    radial-gradient(300px 300px at 50% 50%, rgba(232,121,249,0.08), transparent 60%);
  animation: cta-glow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-glow {
  0%, 100% {
    transform: translate(0%, 0%) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(5%, -8%) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translate(-3%, 5%) scale(0.95);
    opacity: 0.7;
  }
  75% {
    transform: translate(-6%, -3%) scale(1.05);
    opacity: 1;
  }
}

.waitlist-codi {
  display: block;
  margin: 0 auto 1rem;
  width: 180px;
  height: 180px;
  object-fit: contain;
  pointer-events: none;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 32px;
}

.waitlist-form .btn-glow {
  padding: 0 28px;
}

.waitlist-form input[type="email"] {
  padding: 14px 18px;
  width: 320px;
  max-width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke-glass);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text-1);
  font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-3);
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2), 0 0 24px rgba(124,58,237,0.1);
}

.form-message {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 24px;
}

.form-message.success { color: var(--green); }
.form-message.error { color: var(--error); }

.waitlist-note {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 0.85rem;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 48px 20px;
  border-top: 1px solid var(--stroke);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.footer-sub {
  color: var(--text-3);
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .hero { padding: 50px 0 70px; }
  .hero-split { flex-direction: column; text-align: center; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-codi-video { height: 260px; }
  .hero-codi::before { width: 240px; height: 300px; }
  .hero-codi::after { width: 180px; height: 280px; }
  .section { padding: 60px 0; }
  .try-it-frame { height: 600px; }
}
