:root {
  --greatious-black: #1d1d1f;
  --greatious-gray: #6e6e73;
  --greatious-light: #f5f5f7;
  --greatious-panel: #fbfbfd;
  --greatious-blue: #0071e3;
  --greatious-teal: #0f766e;
  --greatious-mint: #e8f7f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 64px;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(0, 113, 227, 0.16);
  color: var(--greatious-black);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--greatious-black);
  color: white;
  padding: 0.75rem 1rem;
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--greatious-blue);
  outline-offset: 3px;
}

.nav-link {
  border-radius: 999px;
  color: rgba(29, 29, 31, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-link:hover {
  color: var(--greatious-black);
}

.nav-link:focus-visible,
.mobile-nav-link:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid var(--greatious-blue);
  outline-offset: 4px;
}

.mobile-nav-link {
  border-radius: 0.9rem;
  color: var(--greatious-black);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0.85rem 0.9rem;
  text-decoration: none;
}

.mobile-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.apple-button-primary {
  align-items: center;
  background: var(--greatious-blue);
  border: 1px solid var(--greatious-blue);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 500;
  justify-content: center;
  letter-spacing: -0.01em;
  min-height: 2.75rem;
  padding: 0.72rem 1.35rem;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.apple-button-primary:hover {
  background: #0077ed;
  border-color: #0077ed;
  transform: translateY(-1px);
}

.apple-button-primary:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 4px;
}

.apple-button-secondary {
  align-items: center;
  background: transparent;
  border: 1px solid var(--greatious-blue);
  border-radius: 999px;
  color: var(--greatious-blue);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 500;
  justify-content: center;
  letter-spacing: -0.01em;
  min-height: 2.75rem;
  padding: 0.72rem 1.35rem;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.apple-button-secondary:hover {
  background: var(--greatious-blue);
  color: white;
  transform: translateY(-1px);
}

.apple-button-secondary:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 4px;
}

.hero-visual {
  border-radius: 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
  max-height: 620px;
  overflow: hidden;
  position: relative;
}

.hero-visual::after {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.34), transparent 52%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12), transparent 34%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 1.5rem;
  bottom: 1.5rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  left: 1.5rem;
  max-width: 28rem;
  padding: 1.25rem;
  position: absolute;
  right: 1.5rem;
  z-index: 2;
}

.apple-panel {
  border-radius: 2rem;
  min-height: 560px;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  position: relative;
}

.apple-heading {
  color: var(--greatious-black);
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin-top: 0.75rem;
}

.apple-copy {
  color: var(--greatious-gray);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin-top: 1.5rem;
  max-width: 42rem;
}

.eyebrow {
  color: var(--greatious-gray);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.apple-text-link {
  color: var(--greatious-blue);
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 1.8rem;
  text-decoration: none;
}

.apple-text-link::after {
  content: "›";
  margin-left: 0.35rem;
}

.apple-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.apple-text-link:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 4px;
}

.mini-stat {
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  text-align: left;
}

.mini-stat span {
  color: rgba(255, 255, 255, 0.48);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
}

.mini-stat p {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.3rem;
}

.apple-card {
  background: white;
  border-radius: 2rem;
  min-height: 360px;
  padding: 2rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.apple-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.apple-card h3 {
  color: var(--greatious-black);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  margin-top: 1.5rem;
}

.apple-card p {
  color: var(--greatious-gray);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.45;
  margin-top: 1rem;
}

.icon-orb {
  align-items: center;
  border-radius: 1.35rem;
  display: inline-flex;
  height: 3.4rem;
  justify-content: center;
  width: 3.4rem;
}

.resource-tile {
  background: var(--greatious-light);
  border-radius: 1.75rem;
  min-height: 230px;
  padding: 1.6rem;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.resource-tile:hover {
  background: #eeeeF2;
  transform: translateY(-2px);
}

.resource-tile h3 {
  color: var(--greatious-black);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.resource-tile p {
  color: var(--greatious-gray);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.55;
  margin-top: 0.9rem;
}

.foundation-box {
  background: var(--greatious-light);
  border-radius: 1.5rem;
  padding: 1.4rem;
}

.foundation-box p {
  color: var(--greatious-gray);
  font-size: 0.9rem;
  font-weight: 600;
}

.foundation-box strong {
  color: var(--greatious-black);
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-top: 0.45rem;
}

.contact-pill {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 1.35rem;
  color: white;
  display: block;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

a.contact-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.contact-pill:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.36);
  outline-offset: 4px;
}

.contact-pill span {
  color: rgba(255, 255, 255, 0.58);
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-pill strong {
  color: white;
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

.form-label {
  color: var(--greatious-black);
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  background: var(--greatious-light);
  border: 1px solid transparent;
  border-radius: 0.95rem;
  color: var(--greatious-black);
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.95rem 1rem;
  width: 100%;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.form-input:hover {
  background: #eeeeF2;
}

.form-input:focus {
  background: white;
  border-color: var(--greatious-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
  outline: none;
}

.footer-link {
  border-radius: 0.35rem;
  color: var(--greatious-black);
  font-weight: 500;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.back-to-top {
  align-items: center;
  background: rgba(29, 29, 31, 0.86);
  backdrop-filter: blur(18px);
  border: 0;
  border-radius: 999px;
  bottom: 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  color: white;
  cursor: pointer;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1.25rem;
  transform: translateY(0.75rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
  width: 3rem;
  z-index: 40;
}

.back-to-top:hover {
  background: rgba(29, 29, 31, 0.96);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.5);
  outline-offset: 4px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero-glass-card {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .apple-panel {
    border-radius: 1.5rem;
    min-height: auto;
  }

  .hero-visual {
    border-radius: 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}