/* =======================================================================
   Apple-Style Light Theme Enhancements (Keep your NAVBAR + HERO as-is)
   - Smooth SF font stack, crisp hairlines, balanced spacing
   - No shadows, no jitter/wobble, precise typography
   - Retains your existing navbar + hero styles verbatim
   ======================================================================= */

/* === TOKENS === */
:root {
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --hairline: rgba(0,0,0,0.08);
  --link: #06C;
  --link-active: #0071E3;

  --content-max: 1100px;
  --content-pad-x: clamp(16px, 4vw, 28px);
  --section-gap: clamp(40px, 7vw, 84px);

  --h1: clamp(28px, 4.2vw, 44px);
  --h2: clamp(22px, 3vw, 28px);
  --p: 16px;

  --navbar-offset: 100px; /* matches your fixed navbar height for scroll-margin */
}

/* === GLOBAL RESETS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ✅ Fix for section anchor scroll offset */
section {
  scroll-margin-top: var(--navbar-offset);
}

/* ------------------------- */
/* === NAVBAR (UNCHANGED) === */
/* ------------------------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 32px;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: auto;
  width: 100%;
  position: relative;
}
.logo {
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
  z-index: 1002;
}
/* prevent logo from becoming blue on hover/focus */
.navbar .logo,
.navbar .logo:link,
.navbar .logo:visited { color: #FFFFFF !important; text-decoration: none; }
.navbar .logo:hover,
.navbar .logo:focus { color: #FFFFFF !important; text-decoration: none; }

/* === NAV LINKS === */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s ease;
}
.nav-links a:hover { color: #aaa; }
.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
  padding-left: 32px;
  padding-right: 16px;
}
.nav-right a {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}
.nav-right a:hover { color: #aaa; }

/* === BURGER ICON === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 1002;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.bar {
  height: 1.5px;
  width: 100%;
  background-color: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}
.burger.active .top { transform: rotate(45deg) translate(5px, 5px); }
.burger.active .bottom { transform: rotate(-45deg) translate(5px, -5px); }

/* === RESPONSIVE NAVIGATION === */
.desktop-only { display: flex; }
.mobile-only {
  display: none;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  width: 100%;
}
.mobile-only:hover { color: #aaa; }

/* === MOBILE MENU === */
@media screen and (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 100px;
    padding-left: 24px;
    padding-right: 24px;
    gap: 24px;
    text-align: left;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    font-size: 1.3rem;
    padding: 10px 0;
    color: white;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .logo { font-size: 1rem; }
  .nav-right { display: none; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* === MOBILE OVERLAY === */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  z-index: 999;
  display: none;
}
.mobile-overlay.active { display: block; }

/* ------------------------ */
/* === HERO (UNCHANGED) === */
/* ------------------------ */
.hero-media {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}
.media-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* === HERO TEXT === */
.hero-text-container {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  text-align: left;
  z-index: 10;
}
.hero-text-container .label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 10px;
}
.hero-text-container .headline {
  font-size: 1.75rem;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  line-height: 1.4;
  margin-bottom: 24px;
}

/* === HERO CTA (Apple-like spacing + pill links) === */
.hero-text-container .cta-row{
  display:flex;
  align-items:center;
  gap: 12px;                 /* airy but tight like apple.com */
  margin-top: 16px;          /* consistent offset below copy */
  flex-wrap: wrap;
}
.hero-text-container .cta-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 38px;
  padding: 0 18px;           /* pill proportions */
  border-radius: 999px;      /* pill */
  text-decoration: none;     /* anchors look like buttons */
  line-height: 1;            /* crisp text (no wobble) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border: 1px solid white;   /* retain your original outline look */
  background: transparent;
  color: #FFFFFF;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.hero-text-container .cta-button.primary{
  background: #FFFFFF;       /* white pill over dark hero */
  color: #1D1D1F;
  border-color: transparent;
}
.hero-text-container .cta-button.primary:hover{
  background: rgba(255,255,255,0.92);
}
.hero-text-container .cta-button.ghost{
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.75);
}
.hero-text-container .cta-button.ghost:hover{
  background: rgba(255,255,255,0.08);
  border-color: #FFFFFF;
}
/* keep hover only for non-primary to avoid visual flip */
.hero-text-container .cta-button:not(.primary):hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 768px) {
  .hero-text-container {
    bottom: 32px;
    top: auto;
    left: 24px;
    right: 24px;
    transform: none;
    text-align: left;
  }
  .hero-text-container .headline { font-size: 1.3rem; }
  .hero-text-container .cta-row{ gap:10px; }
  .hero-text-container .cta-button{ min-height:36px; padding:0 16px; }
}

/* === DOWN ARROW === */
.scroll-arrow-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.scroll-arrow {
  width: 24px;
  height: 24px;
  border-style: solid;
  border-width: 0 2px 2px 0;
  border-color: white;
  transform: rotate(45deg);
  animation: arrow-scroll 2.5s infinite ease-in-out;
  opacity: 0;
}
@keyframes arrow-scroll {
  0%   { transform: translateY(0) rotate(45deg);  opacity: 0; }
  20%  { opacity: 1; }
  50%  { transform: translateY(10px) rotate(45deg); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(20px) rotate(45deg); opacity: 0; }
}

/* =============================== */
/* === APPLE-LIKE LIGHT THEME  === */
/* === (Everything below)       === */
/* =============================== */

/* Layout container */
.content {
  padding: clamp(32px, 5vw, 56px) var(--content-pad-x);
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Sections */
section {
  background: transparent;
  margin-bottom: var(--section-gap);
  color: var(--text);
  /* No shadows anywhere for ultra-clean look */
  border-radius: 0; /* flat, like apple.com page sections */
}

/* Headings & text */
h1, h2 {
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--h1); line-height: 1.1; }
h2 { font-size: var(--h2); line-height: 1.2; }

p, .subsection-copy, li, dd, dt {
  font-size: var(--p);
  color: var(--muted);
}

/* Lists */
ul { padding-left: 20px; }
ul li { margin: 6px 0; }
ul li::marker { color: var(--muted); }

/* Links */
a {
  color: var(--link);
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
  /* no transforms to avoid text wobble */
}
a:hover { color: var(--link-active); }
a:focus-visible {
  outline: 2px solid var(--link-active);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Fine-rule separators (hairlines) */
.hr,
.section-rule {
  height: 1px;
  background: var(--hairline);
  margin: clamp(16px, 3vw, 28px) 0;
  border: 0;
}

/* Cards (flat, no shadows; use hairline + inset spacing) */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: clamp(16px, 3.5vw, 28px);
}
.card *:first-child { margin-top: 0; }
.card *:last-child { margin-bottom: 0; }

/* Grid (balanced gutters, no visual clutter) */
.grid {
  display: grid;
  gap: clamp(16px, 3.5vw, 28px);
}
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

/* Buttons (subtle; no shadows) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(0,0,0,0.02);
  color: var(--link-active);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}
.btn:active { opacity: .9; }
.btn:focus-visible {
  outline: 2px solid var(--link-active);
  outline-offset: 2px;
}

/* Forms (clean, hairline fields) */
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition: border-color .15s ease, background-color .15s ease;
}
.input::placeholder,
.textarea::placeholder { color: #9C9CA1; }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(0,0,0,0.18);
  background: #fff;
}

/* Tables (no heavy lines; airy) */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--hairline);
}
.table thead th {
  color: var(--muted);
  font-weight: 600;
}

/* Subsection copy fix (was white; now muted for light theme) */
.subsection-copy {
  background: transparent;
  font-weight: 400;
  margin-bottom: 16px;
  max-width: 60ch;
  color: var(--muted);
}

/* Spacing utilities */
.stack > * + * { margin-top: clamp(10px, 2vw, 18px); }
.cluster {
  display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 18px);
  align-items: center;
}

/* Images (no wobble) */
img { max-width: 100%; height: auto; display: block; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-arrow { animation: none; }
  a, .btn, .input, .select, .textarea { transition: none; }
}
