:root {
  --bg: #ffffff;
  --ink: #10131c;
  --muted: #4e5870;
  --faint: #6d768c;
  --line: rgba(16, 19, 28, 0.1);
  --grad: linear-gradient(105deg, #0e8ec8 0%, #2f62f0 48%, #7a3cff 100%);
  --display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --content: 1120px;
  --header: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  z-index: 40;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: #2f6dff;
  color: #fff;
}

:focus-visible {
  outline: 2px solid #49d0ff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: #10131c;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.skip:focus {
  top: 0.6rem;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(880px 520px at 88% 8%, rgba(47, 109, 255, 0.1), transparent 62%),
    radial-gradient(680px 460px at 0% 88%, rgba(138, 75, 255, 0.08), transparent 58%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header);
  padding: 0.75rem max(var(--pad), calc((100% - var(--content)) / 2));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand img,
.site-footer img {
  height: 42px;
  width: auto;
  display: block;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.nav-mail {
  display: none;
}

.header-mail {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}

.header-mail:hover {
  border-color: rgba(47, 98, 240, 0.45);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 24px;
}

.site-header.is-open .menu-toggle span:first-child {
  top: 20px;
  transform: rotate(40deg);
}

.site-header.is-open .menu-toggle span:last-child {
  top: 20px;
  transform: rotate(-40deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: calc(100svh - var(--header));
  width: min(var(--content), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding: 2.5rem 0 4.5rem;
}

.kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 6.2vw, 5.5rem);
  line-height: 0.96;
}

h1 span {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.lead {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: #10131c;
  border-radius: 999px;
  padding: 0.85rem 1.2rem 0.85rem 1.3rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #2a3348;
}

.text-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 19, 28, 0.28);
  padding-bottom: 0.1rem;
}

.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.92rem;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.facts li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a74ff;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 68%;
  height: 68%;
  background: radial-gradient(circle, rgba(58, 140, 255, 0.28), rgba(139, 77, 255, 0.12) 48%, transparent 70%);
  filter: blur(18px);
}

.hero-visual img {
  position: relative;
  width: min(520px, 100%);
  animation: float 8s ease-in-out infinite;
}

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

.section {
  width: min(var(--content), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.rows {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 4.25rem minmax(11rem, 16rem) 1fr;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1.7rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.num,
.steps span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.row p,
.steps p,
.statement p:last-child {
  margin: 0;
  color: var(--muted);
}

.row p {
  max-width: 36ch;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
}

.steps li::before {
  content: "";
  display: block;
  height: 2px;
  margin-bottom: 1.2rem;
  background: var(--grad);
}

.steps h3 {
  margin: 0.85rem 0 0.55rem;
}

.statement {
  width: min(var(--content), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding: 3.5rem clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(58, 116, 255, 0.12), transparent 60%),
    #f4f6fb;
}

.statement h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.statement p:last-child {
  max-width: 36rem;
  font-size: 1.125rem;
}

.contact .lead {
  margin-top: 1rem;
}

.mail-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 0;
}

.mail-row a {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  font-weight: 700;
}

.mail-row a:hover {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.copy-mail {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.copy-mail:hover,
.copy-mail.is-copied {
  color: var(--ink);
  border-color: rgba(47, 98, 240, 0.45);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(var(--content), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s ease forwards;
}

.js .reveal:nth-child(2) { animation-delay: 0.08s; }
.js .reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .header-mail {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 1.25rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(300px, 76vw);
  }

  .row {
    grid-template-columns: 3rem 1fr;
  }

  .row p {
    grid-column: 2;
  }

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

}

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.4rem var(--pad) 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    font-size: 1.15rem;
    color: var(--ink);
  }

  .nav-mail {
    display: inline;
    color: var(--muted);
    font-size: 0.95rem;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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