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

:root {
  --bg: #141414;
  --surface: #232323;
  --surface-2: #2c2c2c;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8e8;
  --text-muted: #888888;
  --radius: 18px;
  --font: 'Outfit', system-ui, sans-serif;
  --font-heading: 'Fraunces', Georgia, serif;
  /* Colors pulled from screenshots */
  --teal:   #2A9D8F;
  --amber:  #C8962E;
  --green:  #34C759;
  --blue:   #0A84FF;
  --purple: #5865F2;
}

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 76px; }

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

/* =====================
   Nav
   ===================== */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(14,14,16,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

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

.logo-img {
  height: 38px;
  width: auto;
}

.logo-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  background: white;
  padding: 4px 12px;
  border-radius: 999px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.4;
}

.footer-logo-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =====================
   Hero
   ===================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 156px 28px 80px;
  text-align: center;
}

.hero-content {
  max-width: 640px;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  margin-bottom: 22px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.gradient-text {
  color: white;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
  margin-inline: auto;
  font-weight: 300;
  line-height: 1.75;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  background: white;
  color: #111115;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 30px rgba(42,157,143,0.2);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 40px rgba(42,157,143,0.38);
}

.apple-icon {
  width: 16px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

/* =====================
   Slideshow Placeholder
   ===================== */
.slideshow-placeholder-section {
  display: flex;
  justify-content: center;
  padding: 0 28px 60px;
}

.slideshow-placeholder {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* =====================
   Features
   ===================== */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 28px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =====================
   Support / Contact
   ===================== */
.support {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 28px;
}

.support-inner {
  max-width: 680px;
  margin: 0 auto;
}

.support-title {
  text-align: left;
}

.support-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: -28px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-submit {
  align-self: flex-start;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: white;
  color: #111115;
  font-family: var(--font);
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 20px rgba(42,157,143,0.15);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(42,157,143,0.3);
}

/* Form screens */
.form-container {
  position: relative;
}

.form-screen {
  transition: opacity 0.3s ease;
}

.form-screen--hidden {
  display: none;
}

/* Loading / success shared card */
.form-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 28px;
  text-align: center;
}

.form-state-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.form-state-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  animation: spin 0.75s linear infinite;
}

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

/* Success icon */
.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(42,157,143,0.12);
  border: 1px solid rgba(42,157,143,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.success-icon svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-submit { align-self: stretch; text-align: center; }
}

/* =====================
   Update Log
   ===================== */
.updates {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 80px 28px;
}

.updates-inner {
  max-width: 680px;
  margin: 0 auto;
}

.updates-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: -28px;
  margin-bottom: 48px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.update-entry {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.update-entry:last-child {
  border-bottom: 1px solid var(--border);
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.update-version {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: rgba(42,157,143,0.12);
  border: 1px solid rgba(42,157,143,0.25);
  padding: 2px 10px;
  border-radius: 999px;
}

.update-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.update-entry h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.update-entry ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-entry ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.update-entry ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* =====================
   CTA Banner
   ===================== */
.cta-banner {
  padding: 80px 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner-inner {
  max-width: 520px;
  margin: auto;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* =====================
   Footer
   ===================== */
.footer {
  padding: 32px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 960px) {
  .slideshow { border-radius: 0; max-width: 100%; }
}

@media (max-width: 600px) {
  .hero { padding-top: 110px; padding-bottom: 60px; }
  .slide-arrow { display: none; }
  .slide-caption { padding: 28px 16px 16px; }
  .slide-caption p { font-size: 0.82rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
