/* ============================================
   onAir — macOS utility website
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A0B0F;
  --bg-card: #131520;
  --bg-elevated: #1A1D2A;
  --text: #EAEBF0;
  --text-2: #8A8D99;
  --text-3: #5C5F6B;
  --accent: #E0915A;
  --accent-2: #F0B891;
  --accent-glow: rgba(224, 145, 90, 0.12);
  --accent-glow-2: rgba(224, 145, 90, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FAFAF7;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --text: #14151A;
    --text-2: #5B5E6A;
    --text-3: #8B8E9A;
    --border: rgba(0, 0, 0, 0.06);
    --border-2: rgba(0, 0, 0, 0.12);
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.10);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.04);
  }
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout --- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  background: rgba(10, 11, 15, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
@media (prefers-color-scheme: light) { .nav { background: rgba(250, 250, 247, 0.7); } }

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--text); }
.nav-brand:hover { color: var(--text); }

/* --- Logomark (rail + ember) + wordmark --- */
.logomark { flex: none; display: block; width: 21px; height: 21px; }
.logomark .rail { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; fill: none; }
.logomark .ember { fill: var(--accent); }
.nav-brand:hover .logomark .ember,
.footer-brand:hover .logomark .ember { filter: drop-shadow(0 0 3px rgba(224, 145, 90, 0.7)); }
.wordmark { font-family: var(--font-rounded); font-weight: 700; letter-spacing: -0.005em; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-2); font-size: 0.85rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 4px 16px var(--accent-glow); color: #fff; }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; padding: 4px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer; border: none; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 12px var(--accent-glow); }
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 6px 28px rgba(224, 145, 90, 0.3); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); transform: scale(1.02); }

/* --- Hero --- */
.hero { padding: 150px 0 64px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; top: -8%; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px; max-width: 100vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  pointer-events: none; z-index: -1;
}
.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 4.5rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 22px;
}
.hero .sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--text-2);
  max-width: 720px; margin: 0 auto 36px; line-height: 1.55;
}
@media (min-width: 768px) {
  .hero .sub { white-space: nowrap; }
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 18px; font-size: 0.78rem; color: var(--text-3);
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); align-self: center; }

/* --- Demo video --- */
.demo {
  margin: 40px auto 0; max-width: 720px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg); position: relative;
  aspect-ratio: 3024 / 1964;
}
.demo video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* --- Section heading --- */
.label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; text-align: center;
}
.h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700;
  letter-spacing: -0.025em; text-align: center; margin-bottom: 12px; line-height: 1.12;
}
.h2-sub {
  font-size: 0.95rem; color: var(--text-2);
  text-align: center; max-width: 440px; margin: 0 auto 48px; line-height: 1.5;
}

/* --- Feature cards with mockups --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); }

.card-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-glow), var(--accent-glow-2));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 0.87rem; line-height: 1.5; }

/* --- UI Mockup --- */
.mockup {
  margin: 16px 0 14px; border-radius: 10px; overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--border);
  flex: 1; min-height: 180px; display: flex; flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.mockup-bar {
  height: 24px; display: flex; align-items: center; gap: 5px;
  padding: 0 10px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.mockup-bar .dot { width: 8px; height: 8px; border-radius: 50%; transition: opacity 0.2s var(--ease); }
.mockup:hover .mockup-bar .dot { opacity: 0.7; }
.mockup-bar .dot.r { background: #E0555A; }
.mockup-bar .dot.y { background: #E0B055; }
.mockup-bar .dot.g { background: #55B055; }
.mockup-body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; }

/* Clipboard mockup */
.clip-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,0.03);
  font-size: 0.72rem; color: var(--text-2);
  transition: background 0.2s var(--ease);
}
.clip-item:hover { background: rgba(255,255,255,0.06); }
.clip-item .badge {
  font-size: 0.6rem; padding: 1px 5px; border-radius: 3px;
  background: var(--accent-glow); color: var(--accent); font-weight: 600;
}
.clip-item .pin { color: var(--accent); font-size: 0.7rem; }
.clip-search {
  padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,0.04);
  font-size: 0.7rem; color: var(--text-3); border: 1px solid var(--border);
  margin-bottom: 4px;
}

/* Camera mockup */
.cam-body { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.cam-circle {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2e3142, #161824);
  border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}
.cam-circle svg { opacity: 0.3; }
.cam-mic {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; align-items: flex-end;
}
.cam-mic .bar { width: 3px; border-radius: 2px; background: var(--accent); }
.cam-mic .bar:nth-child(1) { height: 6px; }
.cam-mic .bar:nth-child(2) { height: 10px; }
.cam-mic .bar:nth-child(3) { height: 14px; }
.cam-mic .bar:nth-child(4) { height: 8px; }
.cam-mic .bar:nth-child(5) { height: 5px; }

/* Desktop mockup */
.desk-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.desk-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.desk-icons .di {
  width: 28px; height: 28px; border-radius: 5px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
}
.desk-cover {
  flex: 1; border-radius: 6px;
  background: linear-gradient(135deg, #1a2a3a, #2a1a2a);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--text-3);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Card feature list */
.card-list { list-style: none; margin-top: 12px; }
.card-list li {
  font-size: 0.8rem; color: var(--text-2);
  padding: 2px 0; padding-left: 16px; position: relative; line-height: 1.5;
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}

/* --- Why section --- */
.why { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* --- Pricing --- */
.pricing { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-card {
  max-width: 400px; margin: 0 auto;
  background: var(--bg-elevated); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 32px 28px; text-align: center;
  box-shadow: var(--shadow), 0 0 60px var(--accent-glow-2);
  position: relative;
}
.price-card::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.price-badge {
  display: inline-block; padding: 4px 12px;
  background: var(--accent-glow); color: var(--accent);
  border-radius: 100px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.price-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.price-amount span { font-size: 0.95rem; color: var(--text-2); font-weight: 500; }
.price-note { font-size: 0.8rem; color: var(--text-3); margin-top: 8px; }
.price-list { list-style: none; margin: 20px 0; text-align: left; }
.price-list li {
  padding: 8px 0; padding-left: 24px; position: relative;
  font-size: 0.85rem; color: var(--text-2); border-bottom: 1px solid var(--border);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; color: var(--accent); font-weight: 700;
}
.price-card .btn { width: 100%; justify-content: center; }

/* --- FAQ --- */
.faq { max-width: 660px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 0.92rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.1rem; color: var(--accent); font-weight: 400; transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); padding-left: 4px; }
.faq-item[open] summary { color: var(--accent); }
.faq-item p { padding: 0 0 16px; color: var(--text-2); font-size: 0.88rem; line-height: 1.6; }

/* --- CTA --- */
.cta { text-align: center; padding: 64px 0; }
.cta h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.cta p { color: var(--text-2); margin-bottom: 22px; font-size: 0.95rem; }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  padding: 48px 0 0;
}
footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max-w); height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--accent) 50%, transparent 90%);
  opacity: 0.25;
}

.footer-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start;
}

.footer-left { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; color: var(--text); }
.footer-brand .logomark { width: 24px; height: 24px; }
.footer-tagline { font-size: 0.82rem; color: var(--text-3); max-width: 280px; line-height: 1.5; }

.footer-cols { display: flex; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 4px;
}
.footer-col a {
  color: var(--text-2); font-size: 0.83rem; padding: 2px 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-w); margin: 40px auto 0; padding: 18px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.76rem; color: var(--text-3); flex-wrap: wrap; gap: 8px;
}

/* --- Sub-page header --- */
.page-head { padding: 100px 0 40px; text-align: center; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 8px; }
.page-head p { color: var(--text-2); font-size: 0.95rem; }

/* --- Prose --- */
.prose { max-width: 660px; margin: 0 auto; }
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1rem; font-weight: 600; margin: 22px 0 6px; }
.prose p { color: var(--text-2); font-size: 0.9rem; line-height: 1.65; margin-bottom: 10px; }
.prose ul { margin: 8px 0 14px; padding-left: 18px; }
.prose ul li { color: var(--text-2); font-size: 0.88rem; line-height: 1.6; margin-bottom: 4px; }
.prose a { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 0.8rem; background: var(--bg-elevated); padding: 2px 6px; border-radius: 4px; }

/* --- Support cards --- */
.support-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 660px; margin: 28px auto; }
@media (max-width: 600px) { .support-cards { grid-template-columns: 1fr; } }
.support-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; transition: border-color 0.25s var(--ease);
}
.support-card:hover { border-color: var(--border-2); }
.support-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.support-card p { color: var(--text-2); font-size: 0.83rem; line-height: 1.5; }
.support-card a { font-size: 0.83rem; font-weight: 600; }

/* --- Tags --- */
.tags { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.tag { padding: 3px 11px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-size: 0.73rem; color: var(--text-2); }

/* --- Animations --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp 0.5s var(--ease) both; }

/* --- Mobile --- */
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 52px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 14px 20px; gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 56px 0; }
  .hero { padding: 96px 0 44px; }
  /* Let the headline wrap naturally instead of forcing one long line */
  .hero h1 br.hbr { display: none; }
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.08; }
  .hero .sub { font-size: 1.05rem; }

  /* Footer: clean, balanced, centered on mobile */
  footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; justify-items: center; text-align: center; }
  .footer-left { align-items: center; gap: 8px; }
  .footer-tagline { text-align: center; max-width: 250px; }
  .footer-cols { width: 100%; max-width: 320px; justify-content: center; gap: 0; }
  .footer-col { flex: 1; align-items: center; gap: 11px; }
  .footer-col + .footer-col { border-left: 1px solid var(--border); }
  .footer-col-title { margin-bottom: 0; }
  .footer-col a { padding: 1px 0; }
  .footer-bottom { flex-direction: column; gap: 7px; justify-content: center; text-align: center; margin-top: 32px; padding: 22px 20px; }
}
