:root {
  --ink: #07152c;
  --muted: #5d6b7c;
  --line: #d9e2ec;
  --panel: #ffffff;
  --page: #f6f9fc;
  --soft: #edf6fb;
  --blue: #086fca;
  --cyan: #1cc7d8;
  --green: #70b861;
  --amber: #d89a2b;
  --rose: #c95a71;
  --shadow: 0 20px 50px rgba(20, 39, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
}

.brand-wordmark {
  width: 154px;
  height: auto;
}

.brand-product {
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-switcher button {
  min-width: 38px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: #26374a;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 6px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--soft);
  color: var(--blue);
  outline: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(80px, 12vh, 132px) clamp(22px, 7vw, 100px) clamp(34px, 7vh, 66px);
  background:
    linear-gradient(90deg, rgba(4, 12, 27, 0.98) 0, rgba(5, 19, 39, 0.94) 48%, rgba(4, 31, 53, 0.88) 100%),
    #07152c;
}

.hero-geometry {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 20%, rgba(28, 199, 216, 0.2), transparent 32%),
    radial-gradient(circle at 16% 82%, rgba(8, 111, 202, 0.2), transparent 36%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 38%);
}

.hero-geometry::before,
.hero-geometry::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-geometry::before {
  opacity: 0.72;
  background:
    linear-gradient(116deg, transparent 0 34%, rgba(65, 214, 232, 0.24) 34.2%, transparent 35%),
    linear-gradient(122deg, transparent 0 58%, rgba(8, 111, 202, 0.26) 58.2%, transparent 59%),
    linear-gradient(64deg, transparent 0 68%, rgba(112, 184, 97, 0.16) 68.2%, transparent 69%);
  animation: linePlane 18s ease-in-out infinite alternate;
}

.hero-geometry::after {
  opacity: 0.28;
  background:
    repeating-linear-gradient(102deg, transparent 0 95px, rgba(120, 240, 255, 0.18) 96px, transparent 98px);
  animation: linePlane 24s ease-in-out infinite alternate-reverse;
}

.hero-lines {
  position: absolute;
  inset: -8% -8% -6% -8%;
  width: 116%;
  height: 116%;
  opacity: 0.94;
  filter: drop-shadow(0 22px 60px rgba(28, 199, 216, 0.2));
  animation: lineSetDrift 16s ease-in-out infinite alternate;
}

.line-path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.line-a,
.line-c,
.line-e {
  stroke: rgba(209, 244, 255, 0.24);
}

.line-b,
.line-d {
  stroke: rgba(65, 214, 232, 0.36);
}

.accent-a {
  stroke: rgba(120, 240, 255, 0.46);
}

.accent-b {
  stroke: rgba(112, 184, 97, 0.32);
}

.line-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 12, 27, 0.92) 0, rgba(4, 12, 27, 0.72) 35%, rgba(4, 12, 27, 0.18) 78%, rgba(4, 12, 27, 0.42) 100%),
    linear-gradient(180deg, rgba(4, 12, 27, 0.42), transparent 40%, rgba(4, 12, 27, 0.74));
}

@keyframes linePlane {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-28px, 18px, 0);
  }
}

@keyframes lineSetDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(20px, -12px, 0);
  }
}

@keyframes heroLogoFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.5deg) scale(1);
  }
  42% {
    transform: translate3d(-8px, -12px, 0) rotate(1.2deg) scale(1.028);
  }
  72% {
    transform: translate3d(7px, 8px, 0) rotate(-0.6deg) scale(0.992);
  }
}

@keyframes heroLogoAura {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(0, 0, 0) scale(0.94);
  }
  48% {
    opacity: 0.76;
    transform: translate3d(-5px, -8px, 0) scale(1.04);
  }
}

@keyframes heroLogoSweep {
  0%,
  54%,
  100% {
    opacity: 0;
    transform: translate3d(-38%, 18%, 0) rotate(-10deg);
  }
  66% {
    opacity: 0.28;
  }
  80% {
    opacity: 0;
    transform: translate3d(38%, -20%, 0) rotate(-10deg);
  }
}

.hero-media {
  position: absolute;
  right: clamp(18px, 9vw, 130px);
  top: clamp(100px, 18vh, 160px);
  width: min(38vw, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 1;
  isolation: isolate;
  pointer-events: none;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 36%;
  pointer-events: none;
}

.hero-media::before {
  background:
    radial-gradient(circle at 46% 42%, rgba(120, 240, 255, 0.22), transparent 48%),
    radial-gradient(circle at 62% 62%, rgba(8, 111, 202, 0.22), transparent 58%);
  filter: blur(18px);
  opacity: 0.72;
  transform: translate3d(0, 0, 0) scale(0.96);
  animation: heroLogoAura 7.6s ease-in-out infinite;
}

.hero-media::after {
  inset: -10%;
  background: linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.26) 46%, transparent 63%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(-34%, 20%, 0) rotate(-10deg);
  animation: heroLogoSweep 8.8s ease-in-out infinite;
  z-index: 2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  filter:
    drop-shadow(0 26px 44px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 22px rgba(28, 199, 216, 0.22))
    saturate(1.14)
    contrast(1.08);
  opacity: 0.46;
  position: relative;
  transform: translate3d(0, 0, 0) rotate(-1.5deg);
  transform-origin: 50% 54%;
  animation: heroLogoFloat 9.2s ease-in-out infinite;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 7vw, 100px);
  right: clamp(20px, 7vw, 100px);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero .eyebrow {
  color: #78f0ff;
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 124px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 730px;
  color: #dceaf4;
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.invite-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 800;
}

.primary-action,
.invite-form button {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.primary-action:hover,
.invite-form button:hover {
  background: #045da9;
}

.secondary-action:hover {
  border-color: rgba(120, 240, 255, 0.72);
  color: #78f0ff;
}

.hero-signal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(50px, 12vh, 120px);
}

.hero-signal span,
.product-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #cfe3f8;
  border-radius: 999px;
  background: #eff8ff;
  color: #0a5f9f;
  font-size: 12px;
  font-weight: 800;
}

.hero-signal span {
  border-color: rgba(120, 240, 255, 0.3);
  background: rgba(3, 22, 40, 0.74);
  color: #dffaff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 6vw, 88px);
}

.reveal-section {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 680ms ease,
    transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-section.is-visible .reveal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-card:hover {
  border-color: rgba(8, 111, 202, 0.3);
  box-shadow: 0 18px 38px rgba(20, 39, 68, 0.1);
  transform: translateY(-2px) scale(1);
}

.split-section,
.secure-protocol,
.invite-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}

.section-copy p,
.section-heading p,
.protocol-copy p,
.invite-copy p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.principles {
  display: grid;
  gap: 14px;
}

.principles article,
.feature-grid article,
.timeline article,
.product-card,
.future-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(20, 39, 68, 0.03);
}

.principles article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 16px;
  padding: 22px;
}

.principles h3,
.principles p {
  grid-column: 2;
}

.principles p,
.feature-grid p,
.timeline p,
.product-card p,
.future-grid p,
.protocol-list span {
  color: var(--muted);
  line-height: 1.5;
}

.principle-icon {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.ecosystem-section,
.roadmap-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 940px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 840px;
}

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

.core-node {
  grid-column: 1 / -1;
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #c8dced;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcff, #eef9fb);
}

.core-node img {
  width: 72px;
  height: 72px;
}

.core-node strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
}

.core-node span {
  color: var(--muted);
  font-size: 18px;
}

.product-card {
  min-height: 250px;
  padding: 24px;
}

.product-card.mail {
  border-top: 5px solid var(--blue);
}

.product-card.app {
  border-top: 5px solid var(--green);
}

.product-card.chat {
  border-top: 5px solid var(--amber);
}

.product-kicker {
  margin-bottom: 18px;
}

.product-section {
  background: var(--page);
}

.feature-grid,
.timeline,
.future-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.timeline article,
.future-grid article {
  padding: 22px;
}

.secure-protocol {
  background: #07152c;
  color: #fff;
}

.secure-protocol .eyebrow {
  color: #8ee7f0;
}

.protocol-copy p {
  color: #c8d4e4;
}

.protocol-list {
  display: grid;
  gap: 12px;
}

.protocol-list div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.protocol-list span {
  color: #c8d4e4;
}

.future-section {
  background: #f8fbf5;
}

.future-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 111, 202, 0.28), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms ease 160ms;
}

.roadmap-section.is-visible .timeline::before {
  transform: scaleX(1);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 900;
}

.choice-line {
  margin-top: 28px;
  color: var(--ink) !important;
  font-size: 22px !important;
  font-weight: 850;
  line-height: 1.35 !important;
}

.invite-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.invite-form label {
  display: grid;
  gap: 8px;
  color: #26374a;
  font-weight: 800;
}

.invite-form .full,
.invite-form button,
.form-note {
  grid-column: 1 / -1;
}

.invite-form input,
.invite-form select,
.invite-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c8d4df;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.invite-form textarea {
  resize: vertical;
}

.captcha-slot {
  min-height: 70px;
  display: flex;
  align-items: center;
}

.turnstile-widget {
  min-height: 65px;
}

.native-captcha {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d7e2ec;
  border-radius: 6px;
  background: #f8fbff;
}

.native-captcha[hidden] {
  display: none;
}

.native-captcha img {
  width: 220px;
  height: 70px;
  border: 1px solid #c8d4df;
  border-radius: 8px;
  background: #fff;
}

.native-captcha label {
  display: grid;
  gap: 8px;
}

.native-captcha .captcha-refresh {
  min-height: 44px;
  padding-inline: 16px;
}

.invite-form input:focus,
.invite-form select:focus,
.invite-form textarea:focus {
  outline: 2px solid rgba(8, 111, 202, 0.22);
  border-color: var(--blue);
}

.invite-form button {
  cursor: pointer;
  font-size: 16px;
}

.invite-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-note.success {
  color: #126a38;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.site-footer img {
  width: 118px;
  height: auto;
}

.site-footer p {
  margin: 4px 0 0;
}

@media (max-width: 1100px) {
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .language-switcher {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 8px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    width: 320px;
    right: -60px;
    top: 110px;
  }

  .split-section,
  .secure-protocol,
  .invite-section {
    grid-template-columns: 1fr;
  }

  .core-map,
  .feature-grid,
  .future-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand-wordmark {
    width: 132px;
  }

  .brand-product {
    display: none;
  }

  .language-switcher {
    order: 3;
    margin-left: 0;
  }

  .nav-toggle {
    order: 2;
  }

  .main-nav {
    order: 4;
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding: 9px 8px;
  }

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

  .hero-geometry::after {
    display: none;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .core-node {
    align-items: flex-start;
    flex-direction: column;
  }

  .core-map,
  .feature-grid,
  .future-grid,
  .timeline,
  .invite-form {
    grid-template-columns: 1fr;
  }

  .native-captcha {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .hero-geometry::before,
  .hero-geometry::after,
  .hero-lines,
  .hero-media::before,
  .hero-media::after,
  .hero-media img,
  .reveal-section,
  .reveal-card,
  .timeline::before {
    animation: none;
    transition: none;
  }

  .reveal-section,
  .reveal-card {
    opacity: 1;
    transform: none;
  }

  .timeline::before {
    transform: scaleX(1);
  }
}
