:root {
  --bg: #050507;
  --bg-elevated: rgba(18, 18, 24, 0.55);
  --bg-tile: rgba(22, 22, 30, 0.72);
  --text: #ffffff;
  --text-muted: rgba(220, 220, 230, 0.72);
  --accent: #ff3b3f;
  --accent-soft: rgba(255, 59, 63, 0.4);
  --accent-glow: rgba(255, 59, 63, 0.55);
  --glass-border: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Whole-page 80% scale (rem + px + vw). Prefer over font-size: 80% —
     hero clamps use vw, so root font-size alone would leave brand/layout oversized. */
  zoom: 0.8;
}

body {
  margin: 0;
  /* 100/0.8 so after zoom the page still fills the viewport */
  min-height: 125vh;
  font-family: var(--font-body);
  color: var(--text-muted);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 59, 63, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(255, 255, 255, 0.04), transparent 50%),
    radial-gradient(ellipse 45% 35% at 10% 80%, rgba(255, 59, 63, 0.06), transparent 50%),
    linear-gradient(180deg, #0a0a0e 0%, #050507 100%);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lang-switch {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lang-switch__btn {
  padding: 0;
  border: 0;
  background: none;
  color: #6a6a74;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  color: #d0d0d8;
  outline: none;
}

.lang-switch__btn.is-active {
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.lang-switch__sep {
  color: #3f3f48;
  font-size: 0.78rem;
  line-height: 1;
  user-select: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 3rem));
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(4.75rem, 12vh, 7rem) 0 4rem;
}

.glass {
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(255, 59, 63, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  max-width: 100%;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.glass:hover {
  border-color: rgba(255, 59, 63, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 59, 63, 0.1),
    0 0 40px rgba(255, 59, 63, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero {
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-soft);
}

.brand {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  /* 14-char brand: scale with usable width (page margins + hero padding) */
  font-size: clamp(1.35rem, calc((100vw - 5.5rem) / 8.1), 3.75rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  white-space: nowrap;
}

.brand__glow {
  display: inline-block;
  max-width: 100%;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, #ff8a8c 50%, #fff 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 28px rgba(255, 59, 63, 0.25));
  animation: shimmer 5.5s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 36rem;
  min-height: 3.2em;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.typed-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 36rem;
  display: grid;
  gap: 0.7rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

.hero-apex {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  max-width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 0.65rem;
  border: 1px solid rgba(255, 59, 63, 0.28);
  border-radius: 0.7rem;
  background: rgba(255, 59, 63, 0.06);
  color: #e8e8ee;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(255, 59, 63, 0.1);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.hero-apex__mark {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(255, 59, 63, 0.55));
}

.hero-apex:hover,
.hero-apex:focus-visible {
  color: var(--text);
  border-color: rgba(255, 59, 63, 0.5);
  background: rgba(255, 59, 63, 0.1);
  box-shadow: 0 0 26px rgba(255, 59, 63, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.social-panel {
  padding: clamp(2rem, 4.5vw, 3rem);
  max-width: 100%;
}

.social-panel__head {
  margin-bottom: clamp(2.5rem, 6vh, 3.75rem);
  max-width: 40rem;
}

.social-panel__head .eyebrow {
  margin-bottom: 0.85rem;
}

.social-panel__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.feature-stack {
  display: grid;
  gap: clamp(3.5rem, 8vh, 5.5rem);
}

.feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.1fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

.feature--flip .feature-icons {
  order: 2;
}

.feature--flip .feature-copy {
  order: 1;
}

.feature-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 160px;
  padding: 0.5rem 0;
}

.icon-tile {
  --float-y: 0px;
  width: clamp(88px, 10vw, 112px);
  height: clamp(88px, 10vw, 112px);
  display: grid;
  place-items: center;
  border-radius: 1.25rem;
  background: #16161c;
  border: 1px solid rgba(255, 59, 63, 0.22);
  color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(255, 59, 63, 0.06),
    0 0 32px var(--accent-soft),
    0 14px 32px rgba(0, 0, 0, 0.4);
  animation: floaty 4.8s ease-in-out infinite;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    filter 0.35s var(--ease);
}

.icon-tile svg {
  width: 44%;
  height: 44%;
  filter: drop-shadow(0 0 8px rgba(255, 59, 63, 0.55));
}

.icon-tile--up {
  --float-y: -22px;
  animation-delay: -1.2s;
}

.icon-tile--down {
  --float-y: 22px;
  animation-delay: -2.4s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(var(--float-y, 0));
  }
  50% {
    transform: translateY(calc(var(--float-y, 0px) - 10px));
  }
}

.feature:hover .icon-tile {
  animation-play-state: paused;
  border-color: rgba(255, 59, 63, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 59, 63, 0.12),
    0 0 44px var(--accent-glow),
    0 16px 36px rgba(0, 0, 0, 0.45);
  filter: brightness(1.08);
}

.feature:hover .icon-tile:nth-child(1) {
  transform: translateY(calc(var(--float-y, 0px) - 6px)) scale(1.06);
}

.feature:hover .icon-tile:nth-child(2) {
  transform: translateY(calc(var(--float-y, 0px) - 10px)) scale(1.1);
}

.feature:hover .icon-tile:nth-child(3) {
  transform: translateY(calc(var(--float-y, 0px) - 6px)) scale(1.06);
}

.feature-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.feature-copy > p {
  margin: 0.95rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.feature-copy ul {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-copy li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

.feature-copy strong {
  color: #ececf2;
  font-weight: 600;
}

.feature-copy a,
.text-link {
  color: #f0f0f4;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 59, 63, 0.55);
  text-shadow: 0 0 12px rgba(255, 59, 63, 0.25);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    text-shadow 0.2s var(--ease);
}

.feature-copy a:hover,
.feature-copy a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 59, 63, 0.55);
  outline: none;
}

.footer {
  margin-top: clamp(2.5rem, 7vh, 4rem);
  padding: 1.5rem clamp(1.2rem, 3vw, 1.8rem) 1.2rem;
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 100%;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
}

.footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.footer__tag {
  margin: 0.55rem 0 0;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
}

.footer__nav a,
.footer__copy {
  padding: 0;
  border: 0;
  background: none;
  color: #9a9aa3;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease),
    text-shadow 0.25s var(--ease);
}

.footer__nav a:hover,
.footer__nav a:focus-visible,
.footer__copy:hover,
.footer__copy:focus-visible {
  color: var(--text);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  outline: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #5c5c66;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 20;
  transform: translateX(-50%);
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(255, 59, 63, 0.35);
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: 0 0 28px var(--accent-soft);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.toast[hidden] {
  display: block;
  opacity: 0;
  transform: translateX(-50%) translateY(0.7rem);
  pointer-events: none;
}

[data-animate] {
  opacity: 0;
  transform: translateY(1.4rem) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s var(--ease);
}

[data-animate="brand"] {
  transform: translateY(1.8rem) scale(0.97);
}

.is-visible[data-animate] {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@media (max-width: 860px) {
  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .feature--flip .feature-icons,
  .feature--flip .feature-copy {
    order: initial;
  }

  .feature-stack {
    gap: clamp(2.75rem, 7vh, 4rem);
  }

  .feature-icons {
    justify-content: center;
    gap: clamp(0.75rem, 3vw, 1.1rem);
    min-height: 148px;
    padding: 0.75rem 0 0.25rem;
  }

  .icon-tile {
    flex-shrink: 0;
    width: clamp(72px, 18vw, 100px);
    height: clamp(72px, 18vw, 100px);
  }

  .icon-tile--up {
    --float-y: -14px;
  }

  .icon-tile--down {
    --float-y: 14px;
  }

  .feature-copy > p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .lang-switch {
    top: 0.7rem;
    right: 0.7rem;
    padding: 0.38rem 0.58rem;
    gap: 0.28rem;
  }

  .lang-switch__btn,
  .lang-switch__sep {
    font-size: 0.72rem;
  }

  .page {
    width: min(100% - 1.25rem, 1100px);
    padding-top: 4.25rem;
    padding-bottom: 3rem;
  }

  .hero,
  .social-panel,
  .footer {
    overflow-x: clip;
  }

  .hero {
    padding: 1.35rem 1.15rem;
  }

  .brand {
    font-size: clamp(1.2rem, calc((100vw - 4.25rem) / 7.85), 2.35rem);
  }

  .lede {
    min-height: 0;
    font-size: 1rem;
  }

  .hero-points li {
    font-size: 0.92rem;
  }

  .hero-apex {
    margin-top: 1.15rem;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  }

  .social-panel {
    padding: 1.35rem 1.1rem 1.6rem;
  }

  .social-panel__head {
    margin-bottom: 2rem;
  }

  .social-panel__head h2 {
    font-size: clamp(1.3rem, 5.5vw, 1.7rem);
  }

  .feature-stack {
    gap: 2.75rem;
  }

  .feature,
  .feature--flip {
    gap: 1.35rem;
  }

  .feature-icons {
    justify-content: center;
    gap: 0.65rem;
    min-height: 112px;
    padding: 0.5rem 0 0.15rem;
  }

  .icon-tile {
    width: clamp(64px, 19vw, 78px);
    height: clamp(64px, 19vw, 78px);
    border-radius: 1.05rem;
  }

  .icon-tile--up {
    --float-y: -8px;
  }

  .icon-tile--down {
    --float-y: 8px;
  }

  .feature:hover .icon-tile:nth-child(1),
  .feature:hover .icon-tile:nth-child(2),
  .feature:hover .icon-tile:nth-child(3) {
    transform: translateY(var(--float-y, 0px)) scale(1.04);
  }

  .feature-copy h3 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .feature-copy > p,
  .feature-copy li {
    font-size: 0.95rem;
  }

  .footer {
    padding: 1.25rem 1.05rem 1.05rem;
  }

  .footer__top {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer__nav {
    gap: 0.75rem 1.1rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 1.35rem;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: clamp(1.1rem, calc((100vw - 3.5rem) / 7.6), 1.85rem);
  }

  .feature-icons {
    gap: 0.5rem;
  }

  .icon-tile {
    width: 60px;
    height: 60px;
    border-radius: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand__glow,
  .typed-caret,
  .icon-tile,
  [data-animate] {
    animation: none;
    transition: none;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .brand__glow {
    color: var(--text);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}
