/* ===== Variables ===== */
:root {
  --bg: #0d0d0f;
  --bg-elevated: #161619;
  --surface: #1e1e22;
  --text: #e8e6e3;
  --text-muted: #9a9691;
  --accent: #e8a54b;
  --accent-dim: #c4893a;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--accent-dim);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.cta-nav {
  color: var(--accent) !important;
}

.cta-nav:hover {
  color: var(--accent-dim) !important;
}

/* ===== Main ===== */
main {
  padding-top: 4rem;
}

/* ===== Hero ===== */
.hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero .highlight {
  color: var(--accent);
  font-style: italic;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(232, 165, 75, 0.35);
}

.hero-visual {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* ===== Phone mockup ===== */
.phone-mockup {
  width: 220px;
  background: var(--surface);
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.3);
}

.phone-mockup.large {
  width: 280px;
  border-radius: 36px;
  padding: 12px;
}

.phone-screen {
  background: var(--bg-elevated);
  border-radius: 20px;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup.large .phone-screen {
  border-radius: 26px;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--surface) 100%);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* Replace with real screenshot: use background-image on .phone-screen or .screenshot-placeholder */
/* .phone-screen { background-image: url('screenshot.png'); background-size: cover; } */

/* ===== Features ===== */
.features {
  padding: 5rem 1.5rem;
  background: var(--bg-elevated);
}

.features > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 3rem;
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

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

.feature:hover {
  border-color: rgba(232, 165, 75, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Preview ===== */
.preview {
  padding: 5rem 1.5rem;
}

.preview > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 3rem;
  letter-spacing: -0.02em;
}

.preview-frame {
  display: flex;
  justify-content: center;
}

/* ===== Download ===== */
.download {
  padding: 5rem 1.5rem;
  text-align: center;
  background: var(--bg-elevated);
}

.download > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.download > p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.btn-app-store {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-app-store:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.btn-app-store img {
  display: block;
  height: 52px;
  width: auto;
}

.fine-print {
  margin-top: 1.5rem !important;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
}

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

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .nav {
    gap: 1rem;
  }

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

  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .phone-mockup {
    width: 180px;
    border-radius: 24px;
    padding: 8px;
  }

  .phone-mockup.large {
    width: 240px;
    border-radius: 32px;
    padding: 10px;
  }
}
