:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(220 20% 10%);
  --card: hsl(0 0% 100%);
  --primary: hsl(199 89% 48%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(210 20% 96%);
  --muted: hsl(210 20% 96%);
  --muted-foreground: hsl(215 16% 47%);
  --border: hsl(214 32% 91%);
  --input: hsl(214 32% 91%);
  --ring: hsl(199 89% 48%);
  --gradient-hero: linear-gradient(135deg, hsl(199 89% 48%) 0%, hsl(210 100% 50%) 100%);
  --shadow-soft: 0 4px 20px -4px hsl(220 20% 10% / 8%);
  --shadow-hover: 0 8px 30px -8px hsl(199 89% 48% / 25%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
}

.container {
  width: 100%;
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid hsl(214 32% 91% / 50%);
  background: hsl(0 0% 100% / 80%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  height: 64px;
  max-width: 1400px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.page-main {
  padding-top: 64px;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 64px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-inline: 24px;
}

.particle-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle-wrap canvas {
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-glow::before {
  width: 600px;
  height: 400px;
  border-radius: 9999px;
  background: hsl(199 89% 48% / 5%);
  filter: blur(100px);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 896px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 24px;
  padding-inline: 8px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-kicker {
  display: block;
  margin-block: 8px;
  background: var(--gradient-hero);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 72px;
}

.hero-subhead {
  max-width: 672px;
  margin: 0 auto 32px;
  padding-inline: 8px;
  color: var(--muted-foreground);
  font-size: 20px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
}

.hero-stat strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-stat span {
  display: block;
  color: var(--muted-foreground);
  font-size: 14px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid hsl(220 20% 10% / 20%);
  border-radius: 8px;
  background: var(--background);
  padding-inline: 32px;
  font-size: 16px;
  font-weight: 500;
  transition: all 300ms cubic-bezier(.4, 0, .2, 1);
}

.button:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button svg,
.small-button svg {
  width: 20px;
  height: 20px;
}

.button-primary {
  border-color: transparent;
  background: var(--primary);
  box-shadow: var(--shadow-soft);
  color: var(--primary-foreground);
}

.button-primary:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
}

.button-primary:active {
  transform: scale(.98);
}

.button[aria-disabled="true"] {
  cursor: default;
}

.section {
  position: relative;
  padding: 96px 24px;
}

.section-muted {
  background: hsl(210 20% 96% / 30%);
}

.section-container {
  max-width: 1152px;
}

.section-heading {
  margin-bottom: 64px;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.section-heading h2,
.founder-heading h2 {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}

.section-heading p {
  max-width: 672px;
  margin: 0 auto;
  color: var(--muted-foreground);
  font-size: 18px;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.process-grid::before {
  position: absolute;
  top: 96px;
  right: 0;
  left: 0;
  z-index: 0;
  height: 2px;
  background: var(--border);
  content: "";
}

.process-item {
  position: relative;
  z-index: 1;
}

.card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 24px;
  transition: border-color 200ms ease;
}

.card:hover {
  border-color: hsl(199 89% 48% / 30%);
}

.process-icon-row {
  position: relative;
  margin-bottom: 24px;
}

.process-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  background: hsl(199 89% 48% / 10%);
  color: var(--primary);
}

.process-icon svg {
  width: 20px;
  height: 20px;
}

.process-number {
  position: absolute;
  top: -8px;
  right: -8px;
  border: 1px solid hsl(199 89% 48% / 30%);
  border-radius: 9999px;
  background: var(--background);
  padding: 2px 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.card-benefit {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.process-list li::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 9999px;
  background: hsl(199 89% 48% / 60%);
  content: "";
}

.section-cta {
  margin-top: 64px;
  text-align: center;
}

.section-cta p {
  margin: 0 0 24px;
  color: var(--muted-foreground);
}

.founder-container {
  max-width: 1024px;
}

.founder-heading {
  margin-bottom: 48px;
  text-align: center;
}

.founder-heading h2 {
  margin-bottom: 0;
}

.founder-layout {
  display: flex;
  align-items: center;
  gap: 64px;
}

.founder-photo {
  display: flex;
  width: 224px;
  height: 224px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid hsl(199 89% 48% / 20%);
  border-radius: 9999px;
  background: linear-gradient(145deg, hsl(199 89% 48% / 18%), hsl(210 20% 96%));
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%);
  color: var(--primary);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-copy {
  flex: 1;
}

.founder-copy h3 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.2;
}

.founder-copy p {
  margin: 0 0 16px;
  color: var(--muted-foreground);
  line-height: 1.625;
}

.founder-cta {
  margin-top: 32px;
}

.site-footer {
  border-top: 1px solid hsl(214 32% 91% / 50%);
  padding-block: 32px;
}

.footer-inner {
  padding-inline: 24px;
  color: var(--muted-foreground);
  font-size: 14px;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.footer-nav a {
  transition: color 150ms ease;
}

.footer-nav a:hover {
  color: var(--foreground);
}

.small-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--input);
  border-radius: 6px;
  background: var(--background);
  padding-inline: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 300ms ease;
}

.small-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.small-button svg {
  width: 16px;
  height: 16px;
}

.interior-main {
  min-height: calc(100vh - 117px);
  padding: 96px 24px 64px;
}

.contact-container {
  max-width: 672px;
}

.contact-heading {
  margin-bottom: 40px;
  text-align: center;
}

.contact-heading h1,
.legal-article h1 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-heading .gradient-text {
  background: var(--gradient-hero);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.contact-heading p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 18px;
}

.application-notice {
  border: 1px solid hsl(199 89% 48% / 30%);
  border-radius: 8px;
  background: hsl(199 89% 48% / 5%);
  padding: 16px;
  color: var(--muted-foreground);
  font-size: 14px;
  text-align: center;
}

.application-notice strong {
  color: var(--foreground);
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 32px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field-label {
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 6px;
  outline: none;
  background: var(--background);
  padding: 8px 12px;
  font-size: 14px;
}

.field input,
.field select {
  height: 40px;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field textarea.short {
  min-height: 80px;
}

.field input::placeholder,
.field textarea::placeholder,
.field select:invalid {
  color: var(--muted-foreground);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsl(199 89% 48% / 18%);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.checkbox-option {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--input);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background 150ms ease;
}

.checkbox-option:hover {
  background: hsl(210 20% 96% / 50%);
}

.checkbox-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--primary);
}

.checkbox-option span {
  font-size: 14px;
}

.submit-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

.form-status {
  display: none;
  margin: 0;
  border: 1px solid hsl(199 89% 48% / 30%);
  border-radius: 8px;
  background: hsl(199 89% 48% / 5%);
  padding: 12px;
  color: var(--muted-foreground);
  font-size: 14px;
  text-align: center;
}

.form-status.is-visible {
  display: block;
}

.legal-article {
  max-width: 768px;
  color: var(--muted-foreground);
}

.legal-updated {
  margin: 0 0 12px;
  font-size: 14px;
}

.legal-article h1 {
  margin-bottom: 24px;
  color: var(--foreground);
}

.legal-sections {
  display: grid;
  gap: 24px;
  line-height: 1.75;
}

.legal-sections section {
  padding: 0;
}

.legal-sections h2 {
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: 20px;
  line-height: 1.4;
}

.legal-sections p {
  margin: 0;
}

.legal-sections p + p {
  margin-top: 16px;
}

.not-found {
  display: grid;
  min-height: 55vh;
  place-content: center;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 16px;
  font-size: 48px;
}

.not-found p {
  margin: 0;
  color: var(--muted-foreground);
}

.not-found a {
  color: var(--primary);
}

.animate-fade-in,
.animate-fade-in-up {
  opacity: 0;
}

.animate-fade-in {
  animation: fade-in .6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up .8s ease-out forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
  .hero h1 { font-size: 36px; }
  .hero-kicker { font-size: 60px; }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-grid::before {
    display: none;
  }

  .process-item:not(:last-child)::after {
    position: absolute;
    top: 64px;
    bottom: -32px;
    left: 24px;
    z-index: -1;
    width: 2px;
    background: var(--border);
    content: "";
  }
}

@media (max-width: 767px) {
  .hero h1 { font-size: 36px; }
  .hero-kicker { font-size: 48px; }
  .hero-subhead { font-size: 18px; }
  .hero-stat strong { font-size: 30px; }

  .section-heading h2,
  .founder-heading h2 { font-size: 36px; }

  .founder-layout {
    flex-direction: column;
    gap: 40px;
  }

  .founder-copy { text-align: center; }
  .founder-copy h3 { font-size: 24px; }
  .founder-photo { width: 192px; height: 192px; }
  .founder-cta { display: flex; justify-content: center; }
}

@media (max-width: 639px) {
  .hero h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero-kicker { font-size: 30px; }
  .hero-subhead { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 24px; }
  .hero-stat span { font-size: 12px; }
  .stat-divider { height: 40px; }

  .button-row { flex-direction: column; }

  .section-heading h2,
  .founder-heading h2 { font-size: 30px; }

  .section-heading p { font-size: 18px; }

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

  .contact-form { padding: 24px; }
  .contact-heading h1,
  .legal-article h1 { font-size: 30px; }
}

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

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