/* ========== Font ========== */
@font-face {
  font-family: 'DSEG14';
  src: url('fonts/DSEG14Classic-Regular.woff2') format('woff2'),
       url('fonts/DSEG14Classic-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  color-scheme: light dark;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ========== Colors (CSS Custom Properties) ========== */
:root {
  --color-primary: #EF9F30;
  --color-primary-hover: #d88a1f;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-footer: #1f2937;
  --color-border: #e5e7eb;
  --color-card-bg: #ffffff;
  --max-width: 1100px;
  --spacing: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #EE9F2F;
    --color-primary-hover: #d88a1f;
    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-bg: #111111;
    --color-bg-alt: #1a1a1a;
    --color-footer: #0a0a0a;
    --color-border: #2d2d2d;
    --color-card-bg: #1f1f1f;
  }
}

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

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

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

.nav-logo {
  font-family: 'DSEG14', monospace;
  font-size: 1.5rem;
  color: #1a1a1a;
  background: var(--color-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

/* ========== Hero ========== */
.hero {
  padding: 4rem 0;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-logo {
  font-family: 'DSEG14', monospace;
  font-size: 3.5rem;
  color: #1a1a1a;
  background: var(--color-primary);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  background: var(--color-primary);
  padding: 1.5rem 1.5rem 0 1.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(239, 159, 48, 0.3);
}

.hero-image-card img {
  max-height: 480px;
  width: auto;
  border-radius: 12px 12px 0 0;
  display: block;
}

.app-store-badge {
  height: 50px;
  width: auto;
}

/* ========== Features ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ========== Screenshots ========== */
.screenshots-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}

/* Allow scrolling when content overflows */
@media (max-width: 1200px) {
  .screenshots-scroll {
    justify-content: flex-start;
  }
}

.screenshots-scroll img {
  flex-shrink: 0;
  height: 400px;
  width: auto;
  border-radius: 16px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 8px 24px rgba(239, 159, 48, 0.2);
  scroll-snap-align: start;
}

/* ========== iPad Section ========== */
.ipad-showcase {
  margin-top: 3rem;
  text-align: center;
}

.ipad-showcase h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.ipad-screenshot {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 16px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 8px 24px rgba(239, 159, 48, 0.2);
}

/* ========== Premium ========== */
.premium-content {
  max-width: 700px;
  margin: 0 auto;
}

.premium-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.premium-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.premium-column ul {
  list-style: none;
}

.premium-column li {
  padding: 0.5rem 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.premium-column li::before {
  content: "✓ ";
  color: var(--color-primary);
  font-weight: 600;
}

.premium-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ========== 404 Error Page ========== */
.error-page {
  min-height: calc(100vh - 60px - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
}

.error-code {
  font-family: 'DSEG14', monospace;
  font-size: 8rem;
  color: #1a1a1a;
  background: var(--color-primary);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.error-message {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.error-link {
  display: inline-block;
  color: #1a1a1a;
  font-weight: 500;
  background: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.error-link:hover {
  background: var(--color-primary-hover);
}

@media (max-width: 480px) {
  .error-code {
    font-size: 5rem;
    padding: 0.4rem 1rem;
  }

  .error-message {
    font-size: 1.1rem;
  }
}

/* ========== Privacy Policy ========== */
.privacy-content {
  max-width: 700px;
  margin: 0 auto;
}

.privacy-content h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.privacy-content .effective-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.privacy-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.privacy-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.privacy-content a {
  color: var(--color-primary);
}

.privacy-content a:hover {
  text-decoration: underline;
}

/* ========== Footer ========== */
.footer {
  background: var(--color-footer);
  color: var(--color-text-muted);
  padding: 2rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'DSEG14', monospace;
  font-size: 1.25rem;
  color: #1a1a1a;
  background: var(--color-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-callsign {
  font-size: 0.85rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-logo {
    font-size: 2.75rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .premium-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .ipad-screenshot {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-links {
    font-size: 0.85rem;
    gap: 0.75rem;
  }

  .hero-logo {
    font-size: 2.25rem;
    padding: 0.2rem 0.6rem;
  }

  .section {
    padding: 3rem 0;
  }

  .screenshots-scroll img {
    height: 300px;
  }

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

  .ipad-showcase h3 {
    font-size: 1.1rem;
  }
}