/* ========================================
   Gold Tracker — Global Styles
   Clean, minimal design (white + black)
   ======================================== */

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

:root {
  --color-black: #111;
  --color-white: #fff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-900: #111827;
  --color-gold: #d4a843;
  --color-gold-light: #f5e6c8;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
  --nav-height: 64px;
  --transition: 0.25s ease;
}

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

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

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

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

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 10px 24px;
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .nav-inner {
  max-width: 760px;
  height: 52px;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  padding: 0 6px 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

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

.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-gray-600);
  transition: color var(--transition);
  position: relative;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gray-600) !important;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.925rem;
  font-weight: 500;
  background: transparent;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.navbar.scrolled .nav-cta {
  background: var(--color-black);
  color: var(--color-white) !important;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.navbar.scrolled .nav-cta:hover {
  opacity: 0.85;
  color: var(--color-white) !important;
}

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu — dropdown panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  z-index: 999;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-gray-200);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mobile-menu.open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  color: var(--color-gray-900);
}

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

.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--color-gray-500);
  font-size: 1.1rem;
  max-width: 560px;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .gold {
  color: var(--color-gold);
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-gray-500);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.app-store-badge {
  display: inline-block;
  transition: opacity var(--transition);
}

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

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

/* Hero phone frame with fade */
.hero-phone {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  max-width: 300px;
  width: 100%;
  background: var(--color-black);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  border-radius: 30px;
  display: block;
}

.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--color-black));
  border-radius: 0 0 30px 30px;
  pointer-events: none;
}

/* Feature highlight screenshot */
.feature-screenshot {
  max-width: 240px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Features
   ======================================== */

/* Full-width highlight block */
.feature-highlight {
  display: flex;
  align-items: center;
  gap: 64px;
  background: var(--color-gray-50);
  border-radius: 24px;
  padding: 64px;
  margin-bottom: 24px;
}

.feature-highlight-text {
  flex: 1;
}

.feature-highlight-text h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.feature-highlight-text p {
  color: var(--color-gray-500);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 400px;
}

.feature-highlight-image {
  flex-shrink: 0;
}

/* Flighty-style icon tiles */
.feature-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-tile {
  background: var(--color-gray-50);
  border-radius: 20px;
  padding: 32px;
}

.feature-tile-icon {
  width: 52px;
  height: 52px;
  background: var(--color-white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  color: var(--color-black);
}

.feature-tile p {
  color: var(--color-gray-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-tile p strong {
  color: var(--color-gray-900);
}

/* ========================================
   Reviews
   ======================================== */
.reviews-grid {
  column-count: 3;
  column-gap: 20px;
  margin-top: 48px;
}

.review-card {
  break-inside: avoid;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

/* App Store review styles */
.review-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.review-store-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-date {
  font-size: 0.8rem;
  color: var(--color-gray-400);
}

.review-author {
  font-size: 0.8rem;
  color: var(--color-gray-400);
}

.review-author::before {
  content: '\00b7';
  margin-right: 8px;
}

.review-stars {
  display: flex;
  gap: 1px;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.review-card p {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  border-top: 1px solid var(--color-gray-200);
  padding-top: 16px;
  margin-top: 12px;
}

/* Email review styles */
.review-card-email {
  border: 1px solid var(--color-gray-200);
}

.review-email-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--color-gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
}

.review-email-info {
  flex: 1;
  min-width: 0;
}

.review-email-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.review-email-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-900);
}

.review-email-subject {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-top: 1px;
}

.review-email-to {
  font-size: 0.8rem;
  color: var(--color-gray-400);
  margin-top: 1px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  color: var(--color-black);
  border: 2px solid var(--color-black);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
}

.cta-button:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.contact-inline {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-gray-400);
}

.contact-inline a {
  color: var(--color-gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-inline a:hover {
  color: var(--color-black);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid var(--color-gray-200);
  padding: 32px 0;
}

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

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-gray-400);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  transition: color var(--transition);
}

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

/* ========================================
   About Page
   ======================================== */
.page-header {
  padding: 120px 0 48px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--color-gray-500);
  max-width: 560px;
  margin: 0 auto;
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
}

.about-content p {
  color: var(--color-gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-content a {
  color: var(--color-black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================================
   Help Center
   ======================================== */
.help-list {
  list-style: none;
  margin-top: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.help-list li {
  border-bottom: 1px solid var(--color-gray-200);
}

.help-list li:first-child {
  border-top: 1px solid var(--color-gray-200);
}

.help-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  transition: background var(--transition);
}

.help-list-item:hover {
  background: var(--color-gray-50);
}

.help-list-item h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.help-list-item p {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  line-height: 1.4;
}

.help-list-item .arrow {
  color: var(--color-gray-400);
  font-size: 1.1rem;
  margin-left: 16px;
  flex-shrink: 0;
}

.help-contact {
  max-width: 680px;
  margin: 40px auto 80px;
}

.help-contact p {
  font-size: 0.95rem;
  color: var(--color-gray-500);
}

.help-contact a {
  color: var(--color-black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Help Article */
.article-content {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.article-content p {
  color: var(--color-gray-600);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.article-content ol,
.article-content ul {
  margin: 12px 0 20px 24px;
  color: var(--color-gray-600);
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--color-gray-900);
}

.breadcrumb {
  padding-top: 88px;
  font-size: 0.875rem;
  color: var(--color-gray-400);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb a:hover {
  color: var(--color-black);
}

.article-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.article-content .lead {
  font-size: 1.1rem;
  color: var(--color-gray-500);
  margin-bottom: 32px;
}

/* ========================================
   Privacy Page
   ======================================== */
.legal-content {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 36px 0 12px;
}

.legal-content p {
  color: var(--color-gray-600);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 12px 0 20px 24px;
  color: var(--color-gray-600);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 6px;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .feature-highlight {
    gap: 40px;
    padding: 48px;
  }

  .feature-tiles {
    gap: 16px;
  }

  .reviews-grid {
    column-count: 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo-text {
    display: none;
  }

  .nav-cta {
    border: 1.5px solid var(--color-gray-200);
    color: var(--color-black) !important;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .navbar.scrolled .nav-cta {
    border-color: transparent;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .phone-frame {
    max-width: 260px;
  }

  .section {
    padding: 56px 0;
  }

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

  .feature-highlight {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 32px;
  }

  .feature-highlight-text p {
    max-width: none;
  }

  .feature-tiles {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    column-count: 1;
  }

  .contact-box {
    padding: 32px 24px;
  }

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

  .page-header {
    padding: 100px 0 32px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}
