:root {
  --bg: #0b1220;
  --surface: #111827;
  --surface-soft: rgba(17, 24, 39, 0.72);
  --surface-strong: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.34);
  --radius: 24px;
  --radius-small: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(249, 115, 22, 0.08), transparent 35%),
    #0b1220;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  transition: color 160ms ease, opacity 160ms ease, border-color 160ms ease,
    background-color 160ms ease, transform 160ms ease;
}

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

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2.5rem), 760px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.site-header .container,
.footer-layout,
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .container {
  min-height: 82px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(188px, 24vw, 290px);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav a,
.footer-links a,
.mobile-nav-panel a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible,
.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--accent);
}

.hero,
.page-hero {
  padding: 1.5rem 0;
}

.hero-panel,
.card,
.contact-card,
.prose {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero .container,
.page-hero .container {
  padding: 0;
}

.hero .container.hero-panel {
  padding: 6.75rem 5.25rem 6.25rem;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2 {
  line-height: 1.06;
  margin: 0 0 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  max-width: 11.5ch;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}

.lead {
  font-size: 1.16rem;
  color: var(--text);
  max-width: 52ch;
  margin: 0 auto;
}

.supporting,
.card p,
.prose p,
.contact-note,
.site-footer,
.site-nav a,
.footer-links a {
  color: var(--muted);
}

.hero {
  text-align: center;
}

.hero h1 {
  margin-left: auto;
  margin-right: auto;
}

.hero .supporting {
  max-width: 50ch;
  margin: 1.75rem auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 3rem;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.36);
  background: rgba(249, 115, 22, 0.06);
}

.button.primary {
  background: rgba(248, 250, 252, 0.02);
}

.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: rgba(249, 115, 22, 0.5);
  text-underline-offset: 0.18em;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.section {
  padding: 1.5rem 0;
}

.section-alt {
  padding-top: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card,
.contact-card,
.prose {
  padding: 1.65rem;
}

.contact-panel {
  align-items: stretch;
  gap: 1.5rem;
}

.contact-panel > * {
  flex: 1;
}

.contact-copy {
  padding: 0.5rem 0.25rem 0.5rem 0;
}

.contact-card {
  min-width: 260px;
}

.contact-label {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-card a {
  font-size: 1.05rem;
  font-weight: 700;
  word-break: break-word;
  text-decoration: none;
}

.policy-page {
  padding-bottom: 3rem;
}

.page-hero .policy-hero-panel {
  padding: 3.5rem 3rem;
}

.prose ul {
  padding-left: 1.15rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose li::marker {
  color: rgba(249, 115, 22, 0.75);
}

.site-footer {
  padding: 1.75rem 0 2.75rem;
  font-size: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

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

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.footer-branding img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.footer-branding p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.homecrew-page {
  --accent: #7fe6d1;
  --accent-soft: rgba(127, 230, 209, 0.16);
  --border: rgba(127, 230, 209, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 180, 84, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(127, 230, 209, 0.12), transparent 30%),
    linear-gradient(180deg, #09112a, #0b1230 52%, #0f1737);
}

.homecrew-page .site-header {
  background: rgba(9, 17, 42, 0.74);
}

.homecrew-page .button:hover,
.homecrew-page .button:focus-visible {
  border-color: rgba(127, 230, 209, 0.38);
  background: rgba(127, 230, 209, 0.08);
  color: #d9fff6;
}

.homecrew-page .button.primary {
  background: rgba(255, 180, 84, 0.16);
  border-color: rgba(255, 180, 84, 0.24);
}

.homecrew-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem;
  background:
    radial-gradient(circle at top left, rgba(255, 180, 84, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(9, 17, 42, 0.98), rgba(11, 18, 48, 0.92));
  border: 1px solid rgba(127, 230, 209, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.homecrew-copy h1 {
  max-width: 11ch;
}

.mission-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
  padding: 0.45rem 0.85rem 0.45rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(127, 230, 209, 0.16);
  color: #fff6e8;
  font-weight: 600;
}

.mission-chip img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.homecrew-actions {
  justify-content: flex-start;
}

.homecrew-hero-visual {
  position: relative;
  min-height: 100%;
}

.homecrew-device-stack {
  position: relative;
  min-height: 600px;
  padding: 1rem 1rem 0;
}

.homecrew-device {
  width: min(100%, 280px);
  height: auto;
  border-radius: 32px;
  border: 1px solid rgba(127, 230, 209, 0.22);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.34);
}

.homecrew-device-main {
  margin-left: auto;
}

.homecrew-device-float {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(58%, 220px);
  transform: rotate(-8deg);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 180, 84, 0.18), transparent 70%);
  pointer-events: none;
}

.feature-icon-badge {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  padding: 0.55rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 180, 84, 0.18), rgba(127, 230, 209, 0.08));
  border: 1px solid rgba(127, 230, 209, 0.16);
}

.homecrew-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.homecrew-story-card {
  min-height: 100%;
}

.story-steps {
  display: grid;
  gap: 1rem;
}

.story-steps p {
  margin: 0.35rem 0 0;
}

.story-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 180, 84, 0.14);
  color: #ffd8a2;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .homecrew-hero-panel,
  .homecrew-story,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .homecrew-device-stack {
    min-height: 520px;
  }

  .contact-panel,
  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .page-hero {
    padding-top: 1.5rem;
  }
}

@media (max-width: 680px) {
  .site-header .container {
    min-height: auto;
    padding: 0.3rem 0 0.4rem;
    align-items: center;
    position: relative;
    gap: 0.1rem;
  }

  .site-header .container {
    flex-direction: column;
  }

  .brand {
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
  }

  .brand img {
    width: clamp(156px, 45vw, 208px);
  }

  .site-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    width: 100%;
    position: relative;
  }

  .mobile-nav summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(248, 250, 252, 0.02);
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    gap: 0.65rem;
  }

  .menu-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
    width: 0.8rem;
    flex: 0 0 auto;
  }

  .menu-icon span {
    display: block;
    width: 100%;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-nav summary:hover,
  .mobile-nav summary:focus-visible {
    color: var(--accent);
    border-color: rgba(249, 115, 22, 0.36);
    background: rgba(249, 115, 22, 0.06);
  }

  .mobile-nav[open] summary {
    border-radius: 18px;
  }

  .mobile-nav[open] .menu-icon span:nth-child(1) {
    transform: translateY(3.8px) rotate(45deg);
  }

  .mobile-nav[open] .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav[open] .menu-icon span:nth-child(3) {
    transform: translateY(-3.8px) rotate(-45deg);
  }

  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.5rem;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
    transform-origin: top center;
    will-change: height, opacity, transform;
  }

  .mobile-nav-panel a {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
  }

  .mobile-nav-panel a[aria-current="page"] {
    color: var(--text);
    background: rgba(248, 250, 252, 0.04);
  }

  .hero,
  .page-hero {
    padding-top: 1.25rem;
  }

  .hero-panel,
  .homecrew-hero-panel,
  .policy-hero-panel,
  .card,
  .contact-card,
  .prose {
    padding: 1.4rem;
  }

  .hero .container.hero-panel {
    padding: 3.75rem 1.75rem 3.25rem;
  }

  .homecrew-hero-panel {
    gap: 1.5rem;
    padding: 1.6rem;
  }

  .mission-chip {
    width: 100%;
    justify-content: center;
  }

  .homecrew-copy h1 {
    max-width: none;
  }

  .homecrew-actions {
    justify-content: center;
  }

  .homecrew-device-stack {
    min-height: 440px;
    padding: 0.25rem 0 0;
  }

  .homecrew-device-main {
    margin: 0 auto;
  }

  .homecrew-device-float {
    left: 0.4rem;
    width: min(55%, 180px);
  }

  h1 {
    max-width: none;
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .lead,
  .hero .supporting {
    max-width: none;
  }

  .footer-branding {
    align-items: center;
  }
}
