/* ─────────────────────────────────────────────────────────────
   SwifT Landing — Apple Light style
   ───────────────────────────────────────────────────────────── */

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

:root {
  --bg:           #ffffff;
  --bg-alt:       #f5f5f7;
  --text:         #1d1d1f;
  --text-2:       #6e6e73;
  --text-3:       #aeaeb2;
  --accent:       #7c3aed;
  --accent-hover: #8b5cf6;
  --border:       rgba(0,0,0,.08);
  --radius:       18px;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-md:    0 8px 40px rgba(0,0,0,.12);
  --font:         -apple-system, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
  --nav-h:        60px;
  --ease:         cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utility ── */
.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 500;
  border-radius: 980px;
  cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
  border: none;
  text-decoration: none;
}
.btn:hover  { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.35); }
.btn:active { transform: translateY(0); }

.btn-lg { font-size: 17px; padding: 14px 28px; }
.btn-sm { font-size: 14px; padding: 8px 18px; }

/* kbd */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: .8em;
  font-weight: 500;
  padding: 1px 6px;
  color: var(--text-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.kbd-group { display: inline-flex; gap: 3px; vertical-align: middle; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.nav-icon { width: 30px; height: 30px; border-radius: 7px; }
.nav-name  { letter-spacing: -.3px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ─── HERO ─── */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-badge {
  font-size: 13px;
  color: var(--text-3);
}

/* Notification mockup */
/* ─── HERO ANIMATED DEMO ─── */
.swift-demo {
  width: 100%;
  max-width: 420px;
  margin: 32px auto 0;
}
.sdemo-win {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.sdemo-tl {
  background: #f2f2f2;
  padding: 10px 14px;
  display: flex; gap: 7px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.sdemo-tl span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.sdemo-tl span:nth-child(1) { background: #ff5f57; }
.sdemo-tl span:nth-child(2) { background: #ffbd2e; }
.sdemo-tl span:nth-child(3) { background: #28c840; }
.sdemo-body { padding: 22px 24px 32px; }
.sdemo-applabel {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px;
}
.sdemo-para {
  font-size: 26px; font-weight: 400;
  color: var(--text); line-height: 1.3;
  min-height: 1.3em;
  transition: opacity .18s ease, transform .18s ease;
}
.sdemo-para.sdemo-out {
  opacity: 0; transform: translateY(-5px);
}
@keyframes sdemo-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.sdemo-para.sdemo-in {
  animation: sdemo-in .2s ease forwards;
}

/* Text selection highlight — sweeps right-to-left */
#sdemo-text {
  display: inline;
  background-image: linear-gradient(rgba(124,58,237,.18), rgba(124,58,237,.18));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 0% 100%;
  border-radius: 3px;
  padding: 1px 3px;
  margin: -1px -3px;
  transition: background-size .42s cubic-bezier(.4,0,.2,1);
}
#sdemo-text.sdemo-selecting {
  background-size: 100% 100%;
}

/* Keyboard shortcut badge */
.sdemo-kbd {
  position: absolute; bottom: 16px; right: 16px;
  display: flex; gap: 3px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .15s ease, transform .15s ease;
}
.sdemo-kbd.sdemo-kbd-show {
  opacity: 1; transform: scale(1);
}
.sdemo-kbd kbd {
  font-family: var(--font); font-size: 13px;
  font-weight: 500; color: var(--text);
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-2);
  padding: 0 24px;
}
.trust-sep { color: var(--border); }

/* ─── SECTIONS ─── */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 56px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin-top: -36px;
  margin-bottom: 56px;
  line-height: 1.6;
}

/* ─── FEATURES GRID ─── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(124,58,237,.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.3px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── STEPS ─── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}

.step-icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--bg-alt);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.step-kbd-wrap {
  flex-direction: row;
  gap: 4px;
}
.step-kbd {
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  font-family: var(--font);
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0,0,0,.06);
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.2px;
}
.step p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 220px;
  line-height: 1.5;
}

.step-arrow {
  flex-shrink: 0;
  padding-top: 48px;
  padding-left: 8px;
  padding-right: 8px;
}

/* ─── ENGINES GRID ─── */
.engines-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.engine-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
  position: relative;
}
.engine-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(2px);
}

.engine-logo {
  width: 60px;
  height: 60px;
  background: var(--bg-alt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.engine-info { flex: 1; }
.engine-info h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.2px;
  margin-bottom: 2px;
}
.engine-label {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.engine-info p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}

.engine-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 980px;
  background: var(--bg-alt);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.engine-badge-primary {
  background: rgba(124,58,237,.1);
  color: var(--accent);
  border-color: rgba(124,58,237,.2);
}

/* ─── LANGUAGES ─── */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.lang-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.lang-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.lang-flag { font-size: 28px; line-height: 1; }
.lang-flag .fi { border-radius: 3px; }
.lang-name { font-size: 13px; color: var(--text-2); font-weight: 500; }

/* ─── DOWNLOAD CTA ─── */
.download-section {
  background: var(--bg-alt);
  text-align: center;
}
.download-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.download-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.download-section h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}
.download-badge {
  font-size: 13px;
  color: var(--text-3);
}

/* ─── FOOTER ─── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.footer-icon { width: 22px; height: 22px; border-radius: 5px; }
.footer-tagline { font-size: 14px; color: var(--text-2); }
.footer-copy    { font-size: 13px; color: var(--text-3); }

/* ─── ANIMATIONS ─── */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(4, 1fr); }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .step-arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }
  .step p { max-width: 280px; }

  .engine-card {
    flex-wrap: wrap;
  }
  .engine-badge {
    margin-top: 4px;
  }

  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 48px; }
}

@media (max-width: 480px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-sep { display: none; }
  .trust-inner { justify-content: flex-start; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .feature-card, .lang-item, .engine-card {
    transition: none;
  }
  html { scroll-behavior: auto; }
}
