/* ============================================
   See the Field — Brand Design System
   seethefield.app
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --navy-deep: #0C1F61;
  --navy-dark: #091741;
  --accent-blue: #38C3FF;
  --accent-orange: #FF8F22;
  --xp-gold: #FFD51F;
  --brand-cream: #F0ECDE;
  --field-line: rgba(238, 243, 255, 0.3);

  /* Semantic */
  --bg-primary: var(--navy-deep);
  --bg-secondary: var(--navy-dark);
  --text-primary: var(--brand-cream);
  --text-secondary: rgba(240, 236, 222, 0.7);
  --text-muted: rgba(240, 236, 222, 0.5);
  --link-color: var(--accent-blue);

  /* Typography */
  --font-display: 'Avenir Next', 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'Avenir Next', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
}

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

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

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-dark) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  opacity: 0.85;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 65ch;
}

.text-accent-blue { color: var(--accent-blue); }
.text-accent-orange { color: var(--accent-orange); }
.text-gold { color: var(--xp-gold); }
.text-cream { color: var(--brand-cream); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background: var(--navy-dark);
}

.section--gradient {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(12, 31, 97, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(56, 195, 255, 0.1);
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-cream);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--brand-cream);
  opacity: 1;
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-cream);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* --- CTA Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent-blue);
  color: var(--navy-dark);
}

.btn--primary:hover {
  background: #5DD0FF;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 195, 255, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--brand-cream);
  border: 2px solid rgba(240, 236, 222, 0.3);
}

.btn--secondary:hover {
  border-color: var(--brand-cream);
  opacity: 1;
  transform: translateY(-2px);
}

.btn--orange {
  background: var(--accent-orange);
  color: var(--navy-dark);
}

.btn--orange:hover {
  background: #FFa040;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 143, 34, 0.3);
}

.btn--small {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 31, 97, 0.6) 0%,
    rgba(9, 23, 65, 0.95) 100%
  );
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__text {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 195, 255, 0.12);
  border: 1px solid rgba(56, 195, 255, 0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: var(--space-md);
}

.hero__title {
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
  max-width: 48ch;
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone Frame Mockup — iPhone style */
.phone-frame {
  position: relative;
  width: 280px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-frame::before {
  /* Dynamic Island notch */
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

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

.phone-frame--hero {
  width: 300px;
}

.phone-frame--hero::before {
  width: 96px;
  height: 30px;
  top: 17px;
}

/* --- Feature Rows --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-lg) 0;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-row__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-sm);
  border-radius: 14px;
}

.feature-row__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.feature-row__title {
  margin-bottom: var(--space-sm);
}

.feature-row__desc {
  font-size: 1.05rem;
  line-height: 1.65;
}

.feature-row__visual {
  display: flex;
  justify-content: center;
}

/* --- Audience / Use Cases --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.audience-card {
  background: rgba(56, 195, 255, 0.05);
  border: 1px solid rgba(56, 195, 255, 0.12);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.audience-card:hover {
  border-color: rgba(56, 195, 255, 0.3);
  transform: translateY(-4px);
}

.audience-card__emoji {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.audience-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--brand-cream);
}

.audience-card__hook {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Pricing Section --- */
.pricing-card {
  max-width: 500px;
  margin: var(--space-lg) auto 0;
  background: rgba(56, 195, 255, 0.06);
  border: 1px solid rgba(56, 195, 255, 0.15);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--xp-gold);
  margin-bottom: 0.25rem;
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-md);
}

.pricing-card__features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-card__features li::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  background: var(--accent-blue);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.final-cta h2 {
  margin-bottom: var(--space-sm);
}

.final-cta p {
  margin: 0 auto var(--space-lg);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(56, 195, 255, 0.08);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__brand p {
  font-size: 0.9rem;
  margin-top: var(--space-sm);
}

.footer__col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 0.5rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__col a:hover {
  color: var(--brand-cream);
}

.footer__bottom {
  border-top: 1px solid rgba(240, 236, 222, 0.08);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-md);
}

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

/* --- FAQ Accordion --- */
.faq-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(56, 195, 255, 0.1);
}

.faq-item summary {
  padding: var(--space-md) 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-cream);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-blue);
  transition: transform 0.2s ease;
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item__answer {
  padding-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Article / Guide Pages --- */
.article-header {
  padding-top: 120px;
  padding-bottom: var(--space-lg);
  text-align: center;
}

.article-header h1 {
  max-width: 18ch;
  margin: 0 auto var(--space-sm);
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-body {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.article-body h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-body h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.article-body p {
  margin-bottom: var(--space-sm);
  max-width: none;
}

.article-body ul, .article-body ol {
  margin-bottom: var(--space-sm);
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

/* App Promo Block (inline in articles) */
.app-promo {
  background: rgba(56, 195, 255, 0.06);
  border: 1px solid rgba(56, 195, 255, 0.15);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.app-promo__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
}

.app-promo__text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.app-promo__text p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* --- Page Header (non-home pages) --- */
.page-header {
  padding-top: 120px;
  padding-bottom: var(--space-lg);
  text-align: center;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-dark) 100%);
}

.page-header h1 {
  margin-bottom: var(--space-xs);
}

.page-header p {
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Resource / Download Page --- */
.download-hero {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.download-hero__preview {
  flex-shrink: 0;
  width: 240px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- 404 Page --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: rgba(56, 195, 255, 0.15);
  line-height: 1;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* --- Glow effects --- */
.glow-blue {
  box-shadow: 0 0 40px rgba(56, 195, 255, 0.15);
}

.glow-orange {
  box-shadow: 0 0 40px rgba(255, 143, 34, 0.15);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .phone-frame--hero {
    width: 220px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }

  .feature-row--reverse {
    direction: ltr;
  }

  .feature-row__visual {
    order: -1;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .stats-bar {
    gap: var(--space-lg);
  }

  .download-hero {
    flex-direction: column;
    text-align: center;
  }

  .app-promo {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: block;
  }

  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(9, 23, 65, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-md);
    border-bottom: 1px solid rgba(56, 195, 255, 0.1);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

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

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-lg);
  }
}
