/* MacBridge — official blue identity */
:root {
  --blue: #0B3BD6;
  --blue-deep: #0628B8;
  --navy: #04165E;
  --navy-deep: #030F42;
  --sky: #69B4FF;
  --sky-soft: #B9DBFF;
  --ice: #F4F8FF;
  --ink: #131E3A;
  --ink-soft: #45507A;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(9, 22, 64, 0.10), 0 4px 14px rgba(9, 22, 64, 0.06);
  --shadow-md: 0 6px 16px rgba(9, 22, 64, 0.12), 0 24px 56px rgba(9, 22, 64, 0.14);
  --glow: 0 0 24px rgba(105, 180, 255, 0.45), 0 8px 40px rgba(11, 59, 214, 0.35);
  --font-display: "Iowan Old Style", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ice);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 600; letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--sky); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.wrap.narrow { width: min(820px, calc(100% - 48px)); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 248, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { border-color: rgba(11, 59, 214, 0.12); box-shadow: 0 4px 24px rgba(9, 22, 64, 0.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-icon { border-radius: 9px; box-shadow: 0 2px 8px rgba(11, 59, 214, 0.35); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand-version {
  font-size: 0.75rem; font-weight: 700; color: var(--blue);
  border: 1px solid rgba(11, 59, 214, 0.3); border-radius: 999px; padding: 2px 8px;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a:focus-visible { color: var(--navy); }
.nav-cta {
  background: var(--blue); color: var(--white) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 20px; gap: 4px; }
.mobile-nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 10px 0; border-bottom: 1px solid rgba(11,59,214,0.10); }

/* Hero */
.hero {
  padding: 72px 0 72px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(105, 180, 255, 0.22), transparent 65%),
    radial-gradient(700px 420px at -10% 30%, rgba(11, 59, 214, 0.35), transparent 70%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, #0A2FA0);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { color: var(--white); }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.hero .lede { color: rgba(233, 242, 255, 0.85); }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--sky); color: var(--navy-deep); box-shadow: 0 4px 20px rgba(105, 180, 255, 0.35); }
.btn-primary:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--glow); }
.btn-ghost { border: 1.5px solid rgba(233, 242, 255, 0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--sky); background: rgba(105, 180, 255, 0.12); transform: translateY(-2px); }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.hero-badges li {
  font-size: 0.875rem; font-weight: 600; color: var(--sky-soft);
  background: rgba(105, 180, 255, 0.10); border: 1px solid rgba(105, 180, 255, 0.25);
  padding: 6px 13px; border-radius: 999px;
}
.hero-figure { margin: 0; }
.hero-figure figcaption { color: var(--sky-soft); font-size: 0.8rem; margin-top: 12px; }
.hero-figure img {
  border-radius: var(--radius-lg); border: 1px solid rgba(105, 180, 255, 0.35);
  box-shadow: var(--glow);
}

/* Pipeline */
.pipeline { padding: 88px 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 44px 0 0; }
.step {
  background: var(--white); border: 1px solid rgba(11, 59, 214, 0.10);
  border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm);
  position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(140deg, var(--blue), var(--navy)); color: var(--sky-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.section-lede { color: var(--ink-soft); max-width: 46em; }

/* Features */
.features { padding: 88px 0; background: linear-gradient(165deg, var(--navy-deep), var(--navy) 60%, #0A2FA0); position: relative; }
.features .eyebrow { color: var(--sky); }
.features h2 { color: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: rgba(233, 242, 255, 0.06);
  border: 1px solid rgba(233, 242, 255, 0.14);
  border-radius: var(--radius-lg); padding: 26px 24px;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { background: rgba(233, 242, 255, 0.10); transform: translateY(-4px); border-color: rgba(105, 180, 255, 0.5); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(105, 180, 255, 0.14); color: var(--sky);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.95rem; color: rgba(233, 242, 255, 0.78); }

/* A public beta introduction, not a reconstruction of the application. */
.beta { padding: 88px 0; background: var(--white); }
.beta-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.beta-status { margin: 24px 0 0; padding-left: 18px; border-left: 3px solid var(--blue); font-weight: 600; }
.beta-note { padding: 28px; background: var(--ice); border: 1px solid rgba(11, 59, 214, 0.14); border-radius: var(--radius-lg); }
.beta-note h3 { font-size: 1.2rem; line-height: 1.3; }
.beta-note ul { padding-left: 20px; color: var(--ink-soft); }
.beta-note li + li { margin-top: 12px; }
.beta-note p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* FAQ */
.faq { padding: 88px 0 96px; }
.accordion { margin-top: 40px; display: grid; gap: 12px; }
details {
  background: var(--white); border: 1px solid rgba(9, 22, 64, 0.10);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 54px 18px 22px; font-weight: 600; font-family: var(--font-display); font-size: 1.08rem;
  color: var(--navy);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.4rem; color: var(--blue); font-weight: 400;
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.answer { padding: 0 22px 20px; color: var(--ink-soft); }
.answer p { margin: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(233, 242, 255, 0.75); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--white); }
.footer-brand img { border-radius: 7px; }
.footer-note { margin: 0; font-size: 0.875rem; }
.footer-copy { margin: 0; font-size: 0.875rem; }

/* All content stays visible without JavaScript or animation. */
.reveal { opacity: 1; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.hero a:focus-visible { outline-color: var(--sky-soft); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .beta-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .header-inner { height: auto; min-height: 68px; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
  .nav { width: 100%; flex-wrap: wrap; gap: 12px 22px; }
  .js .nav { display: none; }
  .js .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .brand-version { font-size: 0.7rem; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 48px; }
  .wrap, .wrap.narrow { width: min(1140px, calc(100% - 36px)); }
  .pipeline, .features, .beta, .faq { padding-block: 56px; }
  .btn { padding: 12px 20px; }
}
@media (max-width: 400px) {
  .brand-version { display: none; }
}
