:root {
  --bg: #07111f;
  --bg-deep: #030813;
  --bg-soft: #0e1d33;
  --surface: rgba(13, 26, 45, 0.82);
  --surface-strong: rgba(9, 18, 33, 0.92);
  --surface-raised: rgba(18, 35, 59, 0.9);
  --text: #edf4ff;
  --muted: #9eb4d6;
  --primary: #54e0d1;
  --primary-strong: #23c5b5;
  --accent: #ffbf47;
  --accent-soft: rgba(255, 191, 71, 0.18);
  --border: rgba(160, 199, 255, 0.18);
  --border-strong: rgba(84, 224, 209, 0.28);
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.22);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(45, 92, 161, 0.32), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(84, 224, 209, 0.18), transparent 24%),
    linear-gradient(180deg, #091426 0%, var(--bg) 45%, var(--bg-deep) 100%);
  position: relative;
  overflow-x: hidden;
}

body,
button,
input,
textarea {
  font: inherit;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(120, 160, 215, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 215, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

body::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(84, 224, 209, 0.08), transparent 18%),
    radial-gradient(circle at 80% 32%, rgba(255, 191, 71, 0.08), transparent 15%);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #9df6ed;
}

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

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.2rem) max(1rem, env(safe-area-inset-right))
    calc(3.25rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  flex: 1;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 10, 21, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(160, 199, 255, 0.12);
}

.nav-wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
}

@media (min-width: 1024px) {
  main,
  .nav-wrap,
  .footer-wrap {
    width: min(100%, calc(var(--max) - 1.5vw));
  }
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  gap: 0.4rem;
}

nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

nav a.active {
  color: #031411;
  background: linear-gradient(135deg, var(--primary), #89efe4);
  box-shadow: 0 10px 24px rgba(36, 170, 158, 0.32);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 1.4rem;
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(9, 22, 40, 0.96), rgba(15, 31, 54, 0.86)),
    linear-gradient(90deg, rgba(84, 224, 209, 0.12), transparent 35%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -28% auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 224, 209, 0.15), transparent 68%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
}

h1 {
  max-width: none;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.9rem;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}

.hero h1 {
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.meta {
  color: var(--muted);
  max-width: 64ch;
  font-size: 1rem;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.actions > * {
  flex: 0 1 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.78rem 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #041311;
  background: linear-gradient(135deg, var(--primary), #8bf2e7);
  box-shadow: 0 14px 28px rgba(26, 139, 129, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #041311;
  background: linear-gradient(135deg, #6becdf, #b0fbf3);
  box-shadow: 0 18px 30px rgba(26, 139, 129, 0.34);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.1rem;
  margin-top: 1.9rem;
}

.card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 25%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(255, 191, 71, 0.9));
  opacity: 0.85;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.card h3,
.card h2 {
  max-width: 18ch;
}

.card p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.section {
  margin-top: 2.4rem;
}

main > .section:first-child:not(.hero) {
  position: relative;
  padding: 1.4rem 1.5rem 0;
}

main > .section:first-child:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

form {
  max-width: 760px;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

input,
textarea {
  width: 100%;
  background: rgba(5, 14, 27, 0.82);
  color: var(--text);
  border: 1px solid rgba(160, 199, 255, 0.14);
  border-radius: 14px;
  padding: 0.78rem 0.9rem;
  margin: 0.4rem 0 1rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(84, 224, 209, 0.55);
  box-shadow: 0 0 0 4px rgba(84, 224, 209, 0.12);
  background: rgba(7, 18, 34, 0.96);
}

textarea {
  resize: vertical;
  min-height: 160px;
}

label {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.01em;
}

p,
h1,
h2,
h3,
a,
label,
small {
  overflow-wrap: break-word;
}

.alert {
  max-width: 760px;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert-success {
  color: #bff7d1;
  background: rgba(16, 84, 48, 0.4);
  border-color: rgba(91, 245, 154, 0.45);
}

.alert-error {
  color: #ffd4d4;
  background: rgba(95, 23, 23, 0.45);
  border-color: rgba(255, 153, 153, 0.5);
}

footer {
  border-top: 1px solid rgba(160, 199, 255, 0.12);
  background: rgba(3, 8, 19, 0.92);
}

.footer-wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.35rem max(1rem, env(safe-area-inset-right))
    calc(1.6rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    max-width: 15ch;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    align-items: flex-start;
  }

  nav ul {
    gap: 0.3rem;
  }

  nav a {
    padding: 0.5rem 0.72rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0 max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
    background: rgba(4, 10, 21, 0.96);
    border-bottom: 1px solid rgba(160, 199, 255, 0.1);
    display: none;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
  }

  .hero {
    padding: 1.35rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  main > .section:first-child:not(.hero) {
    padding-left: 0;
    padding-right: 0;
  }

  form,
  .alert {
    max-width: none;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-wrap {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .brand {
    font-size: 0.9rem;
    max-width: 12rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions > * {
    flex-basis: 100%;
  }

  .btn {
    width: 100%;
  }

  .card,
  form {
    padding: 1rem;
  }
}
