/* ─── Variables ──────────────────────────────────────────────────────── */

:root {
  --bg:          #07070f;
  --bg-card:     #0d0d1c;
  --border:      rgba(255, 255, 255, 0.06);
  --border-focus:rgba(99, 102, 241, 0.6);
  --accent:      #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.18);
  --result:      #10b981;
  --result-glow: rgba(16, 185, 129, 0.12);
  --error:       #f87171;
  --text-1:      #f1f5f9;
  --text-2:      #94a3b8;
  --text-3:      #475569;
  --r:           16px;
  --r-sm:        10px;
}

/* ─── Reset ──────────────────────────────────────────────────────────── */

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

a { color: inherit; text-decoration: none; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─────────────────────────────────────────────────────────── */

.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Site header ────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.site-logo-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

/* ─── Site nav ───────────────────────────────────────────────────────── */

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 12px;
}

.nav-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  margin-left: 6px;
  margin-right: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
}

.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-1);
}

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  justify-content: flex-start;
  text-align: center;
  padding-top: 88px;
  padding-bottom: 0;
  overflow: hidden;
  padding-top: 88px;
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%,
      rgba(99, 102, 241, 0.14) 0%, transparent 70%),
    var(--bg);
}

.hero-inner {
  max-width: 560px;
  padding: 0 20px;
  margin-bottom: 52px;
}

.hero-fan {
  margin-top: 0;
  padding-bottom: 0;
}

.hero-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  width: 100%;
}

/* Invisible spacer mirrors the icon so the text is exactly centred */
.hero-wordmark::after {
  content: '';
  width: 52px;
  flex-shrink: 0;
}

.hero-wordmark-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-wordmark-name {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(38px, 9vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-2);
  margin-bottom: 36px;
}

.hero-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s;
}

.hero-link:hover {
  background: var(--accent-glow);
  border-color: rgba(99, 102, 241, 0.55);
}

/* ─── Phone Fan (Apple iOS style) ────────────────────────────────────── */

.fan-section {
  padding: 60px 0 80px;
  text-align: center;
  overflow: hidden;
}

.fan-headline {
  margin-bottom: 52px;
}

.fan-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.fan-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-1);
}

.phone-fan {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fan-phone--far-left  { margin-right: -65px; z-index: 1; }
.fan-phone--mid-left  { margin-right: -75px; z-index: 2; }
.fan-phone--center    { z-index: 5; filter: drop-shadow(0 40px 100px rgba(99,102,241,0.25)); }
.fan-phone--mid-right { margin-left:  -75px; z-index: 4; }
.fan-phone--far-right { margin-left:  -65px; z-index: 3; }


@media (max-width: 700px) {
  /* All 5 phones visible — far ones clip naturally via hero overflow:hidden */
  .phone-fan {
    transform: scale(0.44);
    transform-origin: top center;
    margin-bottom: -300px;
  }
}

/* ─── Animated Features section ──────────────────────────────────────── */

/* ─── Showcase section ───────────────────────────────────────────────── */

.showcase-section {
  padding: 0 0 100px;
}

.showcase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0 48px;
}

.features-divider-label {
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.showcase-viewport {
  overflow: hidden;
  padding: 0 0 0 48px;
  cursor: grab;
}

.showcase-viewport:active {
  cursor: grabbing;
}

.showcase-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
}

.showcase-slide {
  flex: 0 0 min(680px, calc(100vw - 84px));
  height: 620px;
  border-radius: 24px;
  background: #12121f;
  box-shadow: inset 0 0 140px var(--tint, transparent), 0 1px 0 rgba(255,255,255,0.06) inset;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  position: relative;
}

.slide-text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px 40px 36px;
  min-width: 0;
}

.slide-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.slide-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 14px;
}

.slide-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 280px;
}

.slide-phone-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
}


/* Controls */
.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.showcase-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.showcase-play-btn:hover {
  background: rgba(255,255,255,0.14);
}

.showcase-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.showcase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.showcase-dot.active {
  width: 22px;
  border-radius: 3px;
  background: var(--text-1);
}

@media (max-width: 600px) {
  .showcase-header {
    padding: 24px 0 28px;
  }
  .showcase-viewport {
    padding-left: 16px;
    touch-action: pan-y; /* allow vertical scroll; JS handles horizontal swipe */
  }
  .showcase-slide {
    flex: 0 0 calc(100vw - 32px);
    flex-direction: column;
    height: auto;
    min-height: 560px;
  }
  .slide-text {
    padding: 24px 20px 12px;
  }
  .slide-phone-wrap {
    padding: 0 16px 16px;
    justify-content: center;
  }
  /* Larger phone in showcase slides on desktop is handled via slide height */

  /* Thinner bezels and status bar for small showcase phones on mobile */
  .showcase-slide .phone-frame .phone-screen {
    inset: 8px;
    border-radius: 26px;
  }
  .showcase-slide .phone-frame .phone-status-bar {
    height: 24px;
    padding: 0 12px;
  }
  .showcase-slide .phone-frame .phone-status-bar .status-time {
    font-size: 9px;
  }
  .showcase-slide .phone-frame .phone-status-bar .status-icons svg {
    transform: scale(0.7);
    transform-origin: right center;
  }
  .showcase-slide .phone-frame .phone-punch {
    top: 13px;
    width: 7px;
    height: 7px;
  }

  /* Reduce top crop to match status bar height */
  .showcase-slide .phone-frame .phone-screen > img {
    transform: translateY(-10px) scaleY(1.04);
  }
  /* Step 4: uniform zoom to hide status bar top + Android buttons bottom */
  .showcase-slide:nth-child(4) .phone-frame .phone-screen > img {
    transform: scale(1.02);
    transform-origin: 50% 35%;
  }

  /* Phone size on mobile */
  .showcase-slide .phone-frame {
    width: 258px;
    height: 548px;
    border-radius: 44px;
  }
  .showcase-slide .phone-frame .phone-screen {
    border-radius: 32px;
  }
  .showcase-slide .phone-frame .phone-punch {
    top: 20px;
    width: 10px;
    height: 10px;
  }
  .showcase-slide .phone-frame .phone-vol-up   { top: 110px; height: 38px; }
  .showcase-slide .phone-frame .phone-vol-down { top: 160px; height: 38px; }
  .showcase-slide .phone-frame .phone-power    { top: 132px; height: 52px; }
}

/* ─── Feature Banner ─────────────────────────────────────────────────── */

.feature-banner {
  padding: 0 20px 80px;
}

.feature-banner-inner {
  max-width: 920px;
  margin: 0 auto;
}

.feature-banner-img {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ─── Showcase wide container ────────────────────────────────────────── */

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.phone-frame {
  position: relative;
  width: 270px;
  height: 580px;
  background: #12121f;
  border-radius: 46px;
  border: 2px solid #252535;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 40px 100px rgba(0,0,0,0.75),
    0 0 60px rgba(99,102,241,0.07);
}

/* Phone size variants — must come AFTER base .phone-frame to override */
.phone-frame--lg {
  width: 290px;
  height: 610px;
  border-radius: 48px;
}
.phone-frame--lg .phone-screen { border-radius: 38px; }
.phone-frame--lg .phone-punch  { top: 23px; width: 12px; height: 12px; }

.phone-frame--sm {
  width: 200px;
  height: 420px;
  border-radius: 36px;
  border-color: #1e1e30;
}
.phone-frame--sm .phone-screen { border-radius: 26px; }
.phone-frame--sm .phone-punch  { top: 17px; width: 9px; height: 9px; }
.phone-frame--sm .phone-vol-up   { top: 95px;  height: 32px; }
.phone-frame--sm .phone-vol-down { top: 137px; height: 32px; }
.phone-frame--sm .phone-power    { top: 110px; height: 44px; }

.phone-frame--ml {
  width: 248px;
  height: 520px;
  border-radius: 42px;
}
.phone-frame--ml .phone-screen { border-radius: 32px; }
.phone-frame--ml .phone-punch  { top: 20px; width: 11px; height: 11px; }
.phone-frame--ml .phone-vol-up   { top: 108px; height: 36px; }
.phone-frame--ml .phone-vol-down { top: 154px; height: 36px; }
.phone-frame--ml .phone-power    { top: 128px; height: 48px; }

.phone-frame--md {
  width: 220px;
  height: 462px;
  border-radius: 38px;
}
.phone-frame--md .phone-screen { border-radius: 28px; }
.phone-frame--md .phone-punch  { top: 18px; width: 10px; height: 10px; }
.phone-frame--md .phone-vol-up   { top: 100px; height: 34px; }
.phone-frame--md .phone-vol-down { top: 144px; height: 34px; }
.phone-frame--md .phone-power    { top: 118px; height: 44px; }

/* Volume buttons (left side) */
.phone-vol {
  position: absolute;
  left: -3.5px;
  width: 3px;
  background: #252535;
  border-radius: 3px 0 0 3px;
}
.phone-vol-up   { top: 120px; height: 40px; }
.phone-vol-down { top: 172px; height: 40px; }

/* Power button (right side) */
.phone-power {
  position: absolute;
  right: -3.5px;
  top: 145px;
  width: 3px;
  height: 55px;
  background: #252535;
  border-radius: 0 3px 3px 0;
}

/* Screen fill */
.phone-screen {
  position: absolute;
  inset: 10px;
  border-radius: 36px;
  overflow: hidden;
  background: #07070f;
}

.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Shift up 36px (status bar) + scale to also clip 28px from bottom (home bar).
     scale = (frame_h + 36 + 28) / frame_h = 624/560 ≈ 1.114
     transform-origin: top keeps the top anchor so translateY moves the clip point. */
  transform: translateY(-36px) scaleY(1.114);
  transform-origin: top center;
  display: block;
  transition: opacity 0.35s ease;
}

.phone-screen > img.fade-out {
  opacity: 0;
}

/* Punch-hole camera */
.phone-punch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: #07070f;
  border-radius: 50%;
  z-index: 20;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

/* Status bar overlay — uniform emulator-style across all phones */
.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #07070f;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 0 18px;
  justify-content: space-between;
}

.status-time {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
  font-family: -apple-system, sans-serif;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}


/* Home indicator */
.phone-home-bar {
  display: none;
}


/* ─── Tool section ───────────────────────────────────────────────────── */

.tool-section {
  padding: 80px 0 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 15px;
  color: var(--text-2);
}

/* ─── Card ───────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
}

/* ─── Inputs ─────────────────────────────────────────────────────────── */

.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

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

.field-full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  user-select: none;
}

.label-hint {
  font-weight: 400;
  color: var(--text-3);
  margin-left: 6px;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input[type="number"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 16px;          /* prevents iOS zoom */
  font-family: inherit;
  font-weight: 500;
  padding: 12px 14px;
  min-width: 0;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 0 12px 0 0;
  white-space: nowrap;
  user-select: none;
}

/* ─── Error ──────────────────────────────────────────────────────────── */

.error-msg {
  font-size: 13px;
  color: var(--error);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  animation: fadeUp 0.2s ease;
}

/* ─── Button ─────────────────────────────────────────────────────────── */

.calc-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  padding: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  letter-spacing: 0.01em;
}

.calc-btn:hover:not(:disabled) { opacity: 0.88; }
.calc-btn:active:not(:disabled) { transform: scale(0.985); }
.calc-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Spinner */

.spinner svg {
  width: 18px;
  height: 18px;
  animation: spin 0.9s linear infinite;
}

/* ─── Result ─────────────────────────────────────────────────────────── */

.result {
  margin-top: 20px;
  background: var(--result-glow);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: var(--r-sm);
  padding: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.result.visible {
  opacity: 1;
  transform: translateY(0);
}

.result-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--result);
  margin-bottom: 12px;
}

.result-time {
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 6px;
}

.result-savings {
  font-size: 16px;
  font-weight: 500;
  color: var(--result);
}

/* Price chart */

.price-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;           /* 62px bars + 18px label row */
  margin-top: 20px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0;
}

.bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.bar-col.optimal .bar {
  background: var(--result);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.45);
}

.bar-lbl {
  font-size: 9px;
  color: var(--text-3);
  height: 18px;
  display: flex;
  align-items: flex-end;
  white-space: nowrap;
  padding-bottom: 1px;
}

.chart-note {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
  text-align: center;
}

/* ─── Feature screens (scroll-animated) ─────────────────────────────── */

.features-section {
  padding: 0 20px 100px;
}

.features-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 0 64px;
}

.features-divider-arrow {
  width: 28px;
  height: 28px;
  color: var(--accent);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
  justify-items: center;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.feature-card:nth-child(2) { transition-delay: 0.18s; }
.feature-card:nth-child(3) { transition-delay: 0.36s; }
.feature-card:nth-child(4) { transition-delay: 0.54s; }

.feature-card-text {
  text-align: center;
}

.feature-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 240px;
}

@media (max-width: 700px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .feature-card {
    max-width: 300px;
    margin: 0 auto;
    transition-delay: 0s !important;
  }
}

/* ─── Video Phone section ────────────────────────────────────────────── */

.video-section {
  padding: 0 20px 100px;
}

.video-phone-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  filter: drop-shadow(0 40px 100px rgba(99,102,241,0.2));
}

.phone-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ─── CTA section ────────────────────────────────────────────────────── */

.cta-section {
  padding: 0 0 100px;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 52px 32px;
  text-align: center;
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 100%,
      rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.cta-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.cta-body {
  font-size: 15px;
  color: var(--text-2);
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.play-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.hero-play-badge {
  display: block;
  margin: 32px auto 0;
}

/* Show only the badge matching the current language */
html[lang="pl"] #heroBadgeEn { display: none; }
html[lang="en"] #heroBadgePl { display: none; }

@media (max-width: 700px) {
  .hero {
    min-height: unset;
    padding-bottom: 12px;
  }
  .hero-play-badge {
    margin-top: 8px;
    position: relative;
    z-index: 10;
  }
  .hero-play-badge img {
    width: 130px;
    height: auto;
  }
}

.play-badge-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.play-badge-link:active {
  transform: translateY(0);
}

.play-badge-img {
  display: block;
  width: 216px;
  height: auto;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */

/* ─── Contact ────────────────────────────────────────────────────────── */

.contact-section {
  padding: 100px 0 96px;
  text-align: center;
}

.contact-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.contact-body {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.contact-email {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s;
}

.contact-email:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.55);
}

/* ─── Footer ─────────────────────────────────────────────────────────── */

.footer {
  padding: 24px 20px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-2);
}

/* ─── Animations ─────────────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── About section ──────────────────────────────────────────────────── */

.about-section {
  padding: 80px 0 80px;
  text-align: center;
}

.about-section .section-header {
  margin-bottom: 28px;
}

.about-section .section-header h2 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about-body {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-body p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
}

/* ─── Roadmap section ────────────────────────────────────────────────── */

.roadmap-section {
  padding: 0 0 80px;
}

.roadmap-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.roadmap-section .section-header h2 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 24px 28px;
}

.roadmap-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.roadmap-badge--done {
  background: rgba(16, 185, 129, 0.12);
  color: var(--result);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.roadmap-badge--wip {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.roadmap-badge--future {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.roadmap-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-item {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.roadmap-item::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

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

/* ─── Get Involved section ───────────────────────────────────────────── */

.involve-section {
  padding: 0 0 160px;
}

.involve-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.involve-section .section-header h2 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.involve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.involve-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.involve-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.involve-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.involve-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

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

/* ─── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .result       { transition: none; }
  .calc-btn     { transition: none; }
  .hero-link    { transition: none; }
  .play-btn     { transition: none; }
  .input-wrap   { transition: none; }
  .spinner svg  { animation: none; }
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .nav-link {
    display: none;
  }
  .contact-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .inputs-grid {
    grid-template-columns: 1fr;
  }
  .field-full {
    grid-column: 1;
  }
  .card {
    padding: 20px;
  }
  .cta-card {
    padding: 36px 20px;
  }
}
