@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --bg: #0c0f18;
  --card: rgba(255, 255, 255, 0.03);
  --card-strong: rgba(255, 255, 255, 0.06);
  --text: #f7f8fb;
  --muted: #c8c9d5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #50d5b7;
  --accent-2: #ff9f43;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --content: 1100px;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 15% 20%, rgba(80, 213, 183, 0.08), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(255, 159, 67, 0.08), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

html {
  width: 100%;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.topbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  backdrop-filter: blur(16px);
  background: rgba(12, 15, 24, 0.8);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 100%;
}

.nav a {
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-toggle:active {
  transform: translateY(1px);
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu span {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
}

main {
  position: relative;
  z-index: 1;
  padding: 32px 28px 80px;
  max-width: calc(var(--content) + 120px);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 20;
}

.skip-link:focus {
  left: 12px;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 32px;
  margin-top: 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(80, 213, 183, 0.12), rgba(255, 159, 67, 0.1), rgba(12, 15, 24, 0.8));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(80, 213, 183, 0.12), transparent 55%);
  filter: blur(30px);
  animation: pulse 10s ease-in-out infinite;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 159, 67, 0.12), transparent 60%);
  filter: blur(30px);
  animation: pulse 12s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero__text h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
}

.hero__text .lede {
  max-width: 640px;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease, background 0.15s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #74f2d6);
  color: #041013;
  box-shadow: 0 10px 30px rgba(80, 213, 183, 0.3);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.hero__stats strong {
  display: block;
  font-size: 1.4rem;
}

.hero__stats span {
  color: var(--muted);
}

.hero__card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.hero__card ul {
  padding-left: 18px;
  color: var(--muted);
}

.hero__card li + li {
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 20px;
}

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cta-inline a {
  color: var(--accent-2);
  font-weight: 600;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.lede {
  font-size: 1.05rem;
}

.section {
  width: 100%;
  margin-top: 60px;
}

.section.alt {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px;
}

.section__head {
  max-width: 760px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
  width: 100%;
}

.card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.card .pill {
  position: relative;
  z-index: 1;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 159, 67, 0.16), transparent 60%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--card-strong);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
  width: 100%;
}

.tile {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tile__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tag {
  font-size: 0.85rem;
  color: var(--muted);
}

.metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--accent);
  font-weight: 600;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.about__card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

.about__card ul {
  padding-left: 18px;
  color: var(--muted);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.about__grid div {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.about__grid strong {
  display: block;
  font-size: 1.2rem;
}

.process {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(80, 213, 183, 0.25), rgba(255, 159, 67, 0.25));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}

.step:hover {
  transform: translateX(4px);
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.18);
}

.cta {
  margin-top: 60px;
  padding: 32px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(80, 213, 183, 0.12), rgba(255, 159, 67, 0.12));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
}

.fineprint {
  font-size: 0.85rem;
  color: var(--muted);
}

.form__status {
  min-height: 20px;
  font-size: 0.95rem;
  color: var(--accent);
}

.form__status.error {
  color: #ff9f9f;
}

.hidden {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.footer {
  margin: 60px auto 40px;
  max-width: calc(var(--content) + 120px);
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  color: var(--muted);
}

.footer h4 {
  margin: 0 0 10px;
  color: #fff;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.footer a {
  display: block;
  margin-bottom: 6px;
  color: inherit;
}

.footer__legal {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  font-size: 0.9rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.float {
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

@media (max-width: 820px) {
  main {
    padding: 20px 18px 60px;
  }

  .nav {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    padding: 14px;
    background: rgba(12, 15, 24, 0.95);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transform: translateY(-120%);
    transition: transform 0.2s ease;
  }

  .nav.open {
    transform: translateY(0);
  }

  .menu {
    display: inline-flex;
  }

  .topbar {
    position: sticky;
    gap: 10px;
  }

  .hero,
  .section.alt,
  .cta {
    padding: 24px;
  }

  .hero {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-items: center;
  }

  .hero__card {
    max-width: 520px;
    margin: 0 auto;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .controls {
    gap: 8px;
  }
}

@media (max-width: 540px) {
  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p,
  li,
  .lede {
    font-size: 1rem;
    line-height: 1.5;
  }

  .cards,
  .grid {
    width: 100%;
  }

  .card,
  .tile {
    width: 100%;
    margin: 0 auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero__text h1 {
    font-size: 2rem;
  }

  .topbar {
    padding: 12px 18px;
  }

  .footer {
    padding: 0 18px;
  }

  .hero,
  .section.alt,
  .cta {
    padding: 20px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
