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

:root {
  --bg: #0a0a0c;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ── Typography ── */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  margin-bottom: 24px;
}

h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #ea580c; }

.btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.0625rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark.small {
  width: 28px;
  height: 28px;
  font-size: 0.625rem;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav a {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(249, 115, 22, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(139, 92, 246, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(59, 130, 246, 0.1), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 80px 0 120px;
  max-width: 720px;
}

.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Apps section ── */
.apps {
  padding: 100px 0 120px;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.section-head p:last-child {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.app-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  margin-bottom: 32px;
  transition: border-color 0.3s;
}

.app-card:hover { border-color: rgba(255, 255, 255, 0.14); }

.app-card-reverse { direction: rtl; }
.app-card-reverse > * { direction: ltr; }

.app-card-visual {
  position: relative;
  min-height: 280px;
}

.app-icon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.app-screens {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  padding-top: 36px;
}

.app-screen {
  display: block;
  width: auto;
  height: 220px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  object-position: top;
  background: var(--bg-elevated);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.app-screen.screen-side {
  height: 200px;
  transform: translateY(16px) rotate(-3deg);
  opacity: 0.92;
}

.app-screen.screen-center {
  height: 240px;
  z-index: 1;
}

.app-screen.screen-side:last-child {
  transform: translateY(16px) rotate(3deg);
}

.app-card:hover .app-screen.screen-center {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.app-meta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.app-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.app-scroll .app-tag { color: #fb923c; }
.app-repeatt .app-tag { color: #a78bfa; }

.app-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 24px;
}

.app-features {
  margin-bottom: 32px;
}

.app-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.app-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.app-repeatt .app-features li::before { background: var(--purple); }

.app-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, gap 0.2s;
}

.link-arrow:hover {
  color: var(--text);
  gap: 10px;
}

/* ── Support ── */
.support {
  padding: 100px 0 120px;
}

.support-inner {
  max-width: 720px;
}

.support-copy {
  margin-bottom: 40px;
}

.support-copy p:last-child {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.support-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.support-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.support-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: var(--accent-soft);
}

.support-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.support-value {
  font-size: 1rem;
  font-weight: 500;
}

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

.legal-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-links li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-links a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links a:hover { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.footer-domain {
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.footer-domain a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-domain a:hover { color: var(--accent); }

.copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .app-card,
  .app-card-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    padding: 32px 28px;
    gap: 32px;
  }

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

@media (max-width: 640px) {
  .container { width: min(100%, calc(100% - 32px)); }

  .nav { display: none; }

  .menu-toggle { display: flex; }

  .hero-content { padding: 60px 0 80px; }

  .app-screens { padding-top: 24px; }

  .app-screen { height: 180px; }

  .app-screen.screen-center { height: 200px; }

  .app-screen.screen-side { height: 165px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
