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

:root {
  --bg: #0B0D11;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --accent: #D4AB62;
  --purple: #9B44E0;
  --text: #E8E8EC;
  --text-secondary: #A1A1AA;
  --text-muted: #63666E;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 880px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #ECC97E;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 17, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.logo svg {
  width: 22px;
  height: 22px;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle {
  display: none;
}

@media (max-width: 640px) {
  .hamburger {
    display: flex;
    z-index: 110;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    background: #111318;
    padding: 72px 32px 32px;
    gap: 20px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .nav a {
    font-size: 0.95rem;
  }

  .nav-toggle:checked ~ .nav {
    right: 0;
  }

  .nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .nav-toggle:checked ~ .nav-overlay {
    display: block;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
  }
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0 72px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 171, 98, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.15;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0 auto;
  font-weight: 400;
}

/* ===== Section ===== */
.section {
  padding: 32px 0;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Apps Grid (main page) ===== */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon--lg {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}

.app-card-info {
  flex: 1;
  min-width: 0;
}

.app-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.app-card-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-card-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.app-card:hover .app-card-arrow {
  color: var(--text-secondary);
  transform: translateX(2px);
}

/* Badges */
.badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(155, 68, 224, 0.1);
  color: rgba(180, 110, 240, 0.8);
  letter-spacing: 0.02em;
}

/* Screenshots row */
.screenshots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.screenshots::-webkit-scrollbar {
  display: none;
}

.phone-frame {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 160px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 6px;
  border: 1px solid var(--border);
}

.phone-frame img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: var(--bg);
}

/* Buttons row */
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.store-badge {
  display: block;
  width: 130px;
  height: auto;
  transition: opacity var(--transition);
}

.store-badge:hover {
  opacity: 0.8;
}

/* ===== App Page Hero ===== */
.app-hero {
  padding: 40px 0 24px;
}

.app-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.app-hero-info {
  flex: 1;
}

.app-hero-info h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.app-hero-info .tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.app-hero-info .badges {
  margin-bottom: 16px;
}


/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.feature-card {
  background: var(--bg);
  padding: 24px;
}

.feature-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-card h3::before {
  content: attr(data-icon);
  margin-right: 6px;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Description / Content ===== */
.content-block {
  max-width: 600px;
  margin: 0 auto;
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.highlight-quote {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  padding: 24px 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--border);
}

/* ===== CTA Section ===== */
.cta {
  text-align: center;
  padding: 40px 0;
}

.cta h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta .btn-row {
  justify-content: center;
  margin-bottom: 12px;
}

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

/* ===== Legal Pages (Privacy, Terms) ===== */
.legal {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.legal h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.legal .last-updated {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal ul {
  padding-left: 16px;
  list-style: disc;
}

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

/* ===== Contact / FAQ ===== */
.contact-email {
  text-align: center;
  padding: 32px 0;
}

.contact-email p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.contact-email a {
  font-size: 1rem;
  font-weight: 600;
}

.faq {
  max-width: 600px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
}

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

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
}

.footer-social a:hover {
  color: var(--text-secondary);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

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

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }

  .hero::before {
    width: 300px;
    height: 250px;
  }

  .app-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-hero-info .badges {
    justify-content: center;
  }

  .app-hero-info .btn-row {
    justify-content: center;
  }

  .btn-row {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .store-badge {
    width: 140px;
  }

  .app-card {
    padding: 20px;
  }

  .phone-frame {
    width: 130px;
  }

  .section {
    padding: 24px 0;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== Print styles for legal pages ===== */
@media print {
  .header, .footer, .hamburger, .nav-toggle, .nav-overlay {
    display: none !important;
  }

  body {
    background: white;
    color: #111;
  }

  .legal {
    padding: 20px 0;
  }

  .legal h1, .legal h2 {
    color: #111;
  }

  .legal p, .legal li {
    color: #333;
  }

  a {
    color: #111;
    text-decoration: underline;
  }
}
