:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.12);
  --blue: #0071e3;
  --page: #f5f5f7;
  --max: 1180px;

  /* visionOS-style liquid glass */
  --glass-blur: saturate(180%) blur(30px);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-bg-dark: rgba(28, 28, 30, 0.42);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(0, 113, 227, 0.12), transparent 70%),
    radial-gradient(55% 45% at 92% 8%, rgba(120, 80, 220, 0.1), transparent 70%),
    var(--page);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(245, 245, 247, 0.6);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

nav a {
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.nav-contact {
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 132, 255, 0.95), rgba(0, 113, 227, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--glass-highlight), 0 4px 14px rgba(0, 113, 227, 0.35);
  color: white;
}

.section-pad {
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: 690px;
  padding-top: 130px;
  padding-bottom: 110px;
  overflow: hidden;
  background: #000;
  color: #f5f5f7;
  text-align: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.58) 72%);
  content: "";
}

.hero-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 1180px);
  height: auto;
  transform: translate(-50%, -47%);
  opacity: 0.72;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: min(92vw, 1040px);
  padding: clamp(40px, 5vw, 72px) clamp(28px, 5vw, 76px);
  border-radius: 44px;
  background: var(--glass-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 30px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 1000px;
  margin-bottom: 30px;
  font-size: clamp(56px, 8vw, 102px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.text-link {
  color: var(--blue);
  font-size: 19px;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  min-height: 760px;
  padding: 100px max(24px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
}

.feature-reverse .feature-copy {
  order: 2;
}

.feature-reverse .feature-media {
  order: 1;
}

.feature-visual-lead {
  grid-template-columns: minmax(0, 1.28fr) minmax(240px, 0.72fr);
}

.feature-dark {
  background: #000;
  color: #f5f5f7;
}

.feature-light {
  background: #fff;
}

.feature-blue {
  background: linear-gradient(145deg, #06162f, #0c3f73 56%, #1475bd);
  color: #fff;
}

.feature-copy h2 {
  margin-bottom: 26px;
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.feature-copy > p:last-child {
  max-width: 530px;
  margin-bottom: 0;
  color: #a1a1a6;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.feature-light .feature-copy > p:last-child {
  color: var(--muted);
}

.feature-blue .feature-copy > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.feature-media {
  margin: 0;
}

.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 30px 90px rgba(0, 0, 0, 0.3);
}

.feature-light .feature-media img {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 30px 90px rgba(0, 0, 0, 0.14);
}

.mission {
  display: grid;
  justify-items: center;
  padding-top: 150px;
  padding-bottom: 160px;
  text-align: center;
}

.mission h2 {
  max-width: 1000px;
  margin-bottom: 30px;
  font-size: clamp(46px, 6.5vw, 82px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.mission > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.4;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 132, 255, 0.96), rgba(0, 113, 227, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: var(--glass-highlight), 0 8px 24px rgba(0, 113, 227, 0.32);
  color: #fff;
  font-size: 17px;
  text-decoration: none;
}

.contact-main {
  min-height: calc(100vh - 64px);
  padding-top: 96px;
  padding-bottom: 120px;
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(0, 113, 227, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.6);
}

.contact-intro {
  max-width: 820px;
  margin-bottom: 58px;
}

.contact-intro h1 {
  margin-bottom: 26px;
  font-size: clamp(48px, 7vw, 86px);
}

.contact-intro > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.35;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(52px, 8vw, 110px);
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label,
.form-legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.45;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 113, 227, 0.18);
}

.form-help,
.form-privacy,
.contact-aside p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-help {
  margin: 0;
}

.form-privacy {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.form-actions button {
  border: 0;
  cursor: pointer;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-aside {
  padding: 28px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.contact-aside h2 {
  margin-bottom: 15px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.contact-aside a {
  color: var(--blue);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 30px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.footer-links {
  display: flex;
  gap: 22px;
}

footer p {
  grid-column: 1 / -1;
  margin: 0;
}

.legal-note {
  max-width: 860px;
  line-height: 1.45;
}

/* Long-form legal/document pages (Privacy, Terms) */
.legal-page {
  padding-top: 120px;
  padding-bottom: 110px;
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.legal-card h1 {
  margin-bottom: 8px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-align: center;
}

.legal-effective {
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.legal-content {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

.legal-content h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 7px;
}

.legal-content a {
  color: var(--blue);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content hr {
  margin: 30px 0;
  border: none;
  border-top: 1px solid var(--line);
}

.legal-back {
  margin-top: 36px;
  text-align: center;
}

.legal-back a {
  color: var(--blue);
  font-size: 16px;
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  nav a:not(.nav-contact) {
    display: none;
  }

  .hero {
    min-height: 600px;
    padding-top: 100px;
    padding-bottom: 90px;
  }

  .hero-art {
    width: max(760px, 150vw);
    transform: translate(-50%, -50%);
    opacity: 0.62;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .contact-layout,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-main {
    padding-top: 72px;
    padding-bottom: 90px;
  }

  .feature-reverse .feature-copy,
  .feature-reverse .feature-media {
    order: initial;
  }

  .feature-media img {
    border-radius: 20px;
  }

  .mission {
    padding-top: 110px;
    padding-bottom: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Fallback: keep glass surfaces legible without backdrop blur */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(245, 245, 247, 0.96);
  }

  .hero-content {
    background: rgba(28, 28, 30, 0.7);
  }

  .contact-aside,
  .form-privacy,
  .form-field input,
  .form-field select,
  .form-field textarea {
    background: #fff;
  }
}
