:root {
  --navy: #071f2d;
  --navy-2: #092d3d;
  --navy-3: #041722;
  --blue: #24aee6;
  --blue-dark: #0b75b8;
  --green: #7ac943;
  --white: #ffffff;
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.14);
  --glass: rgba(255,255,255,.08);
  --shadow: 0 34px 120px rgba(0,0,0,.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Figtree", Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 16%, rgba(36,174,230,.24), transparent 30%),
    radial-gradient(circle at 86% 72%, rgba(122,201,67,.17), transparent 31%),
    linear-gradient(135deg, var(--navy), var(--navy-2) 54%, var(--navy-3));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,.33) 100%),
    linear-gradient(90deg, rgba(36,174,230,.08), transparent 22%, transparent 78%, rgba(122,201,67,.07));
}

/* Better snowflakes */
.snowflakes {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.snowflakes span {
  position: absolute;
  top: -12vh;
  display: block;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(36,174,230,.65);
  opacity: 0;
  animation-name: snowDrop, snowSway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

.snowflakes span:nth-child(1)  { left: 3%;  font-size: 12px; animation-duration: 14s, 4s;  animation-delay: -1s, 0s; }
.snowflakes span:nth-child(2)  { left: 9%;  font-size: 18px; animation-duration: 19s, 5s;  animation-delay: -7s, -1s; }
.snowflakes span:nth-child(3)  { left: 15%; font-size: 11px; animation-duration: 13s, 4.6s; animation-delay: -4s, -2s; }
.snowflakes span:nth-child(4)  { left: 21%; font-size: 16px; animation-duration: 20s, 5.4s; animation-delay: -9s, -1s; }
.snowflakes span:nth-child(5)  { left: 27%; font-size: 10px; animation-duration: 12s, 4.2s; animation-delay: -6s, -3s; }
.snowflakes span:nth-child(6)  { left: 33%; font-size: 18px; animation-duration: 22s, 5.8s; animation-delay: -3s, -2s; }
.snowflakes span:nth-child(7)  { left: 39%; font-size: 12px; animation-duration: 15s, 4.8s; animation-delay: -11s, -1s; }
.snowflakes span:nth-child(8)  { left: 45%; font-size: 20px; animation-duration: 24s, 6s;  animation-delay: -8s, -4s; }
.snowflakes span:nth-child(9)  { left: 51%; font-size: 13px; animation-duration: 16s, 4.5s; animation-delay: -2s, -1s; }
.snowflakes span:nth-child(10) { left: 57%; font-size: 9px;  animation-duration: 11s, 3.8s; animation-delay: -5s, -2s; }
.snowflakes span:nth-child(11) { left: 63%; font-size: 17px; animation-duration: 21s, 5.4s; animation-delay: -12s, -1s; }
.snowflakes span:nth-child(12) { left: 69%; font-size: 11px; animation-duration: 14s, 4.3s; animation-delay: -6s, -3s; }
.snowflakes span:nth-child(13) { left: 75%; font-size: 18px; animation-duration: 23s, 6.2s; animation-delay: -10s, -4s; }
.snowflakes span:nth-child(14) { left: 81%; font-size: 14px; animation-duration: 17s, 4.8s; animation-delay: -3s, -2s; }
.snowflakes span:nth-child(15) { left: 87%; font-size: 10px; animation-duration: 12s, 3.9s; animation-delay: -7s, -1s; }
.snowflakes span:nth-child(16) { left: 93%; font-size: 19px; animation-duration: 25s, 6.4s; animation-delay: -13s, -3s; }
.snowflakes span:nth-child(17) { left: 18%; font-size: 9px;  animation-duration: 10s, 4s;  animation-delay: -8s, -2s; }
.snowflakes span:nth-child(18) { left: 72%; font-size: 12px; animation-duration: 15s, 5s;  animation-delay: -1s, -3s; }

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 46px);
}

.hero-shell {
  position: relative;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  padding: clamp(22px, 4.5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.135), rgba(255,255,255,.045)),
    rgba(4,23,35,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: heroIn .9s ease both;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
}

.hero-shell::after {
  content: "";
  position: absolute;
  top: -55%;
  left: -40%;
  width: 42%;
  height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.20), transparent);
  transform: rotate(19deg);
  animation: shine 5.8s ease-in-out infinite;
  pointer-events: none;
}

.logo-side,
.content-side {
  position: relative;
  z-index: 2;
}

.logo-side {
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.logo-glow {
  position: absolute;
  inset: 9% 7%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(36,174,230,.30), transparent 60%),
    radial-gradient(circle, rgba(122,201,67,.18), transparent 68%);
  filter: blur(18px);
  animation: glowPulse 4s ease-in-out infinite;
}

.logo-card {
  position: relative;
  width: min(440px, 100%);
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.15);
  background:
    linear-gradient(145deg, rgba(36,174,230,.16), rgba(122,201,67,.09)),
    rgba(255,255,255,.055);
  box-shadow:
    0 28px 70px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.06);
  animation: floatLogo 5s ease-in-out infinite;
  overflow: hidden;
}

.logo-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 25px;
  background: rgba(3,20,30,.72);
  box-shadow: inset 0 0 44px rgba(36,174,230,.10);
}

.logo-card img {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.30));
}

.mini-cards {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-cards div {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  animation: cardFloat 4.5s ease-in-out infinite;
}

.mini-cards div:nth-child(2) {
  animation-delay: -1.2s;
}

.mini-cards strong,
.mini-cards small {
  display: block;
}

.mini-cards strong {
  margin-bottom: 4px;
  font-size: .98rem;
  font-weight: 900;
}

.mini-cards small {
  color: var(--muted);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .035em;
  margin-bottom: 18px;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: .88;
  font-weight: 900;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

.headline span {
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #d8f8ff 32%, var(--blue) 68%, var(--green) 116%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 26px rgba(36,174,230,.16));
  animation: letterWave 2.7s ease-in-out infinite;
}

.headline b {
  width: .26em;
}

.headline span:nth-child(1) { animation-delay: .02s; }
.headline span:nth-child(2) { animation-delay: .08s; }
.headline span:nth-child(3) { animation-delay: .14s; }
.headline span:nth-child(4) { animation-delay: .20s; }
.headline span:nth-child(5) { animation-delay: .26s; }
.headline span:nth-child(6) { animation-delay: .32s; }
.headline span:nth-child(8) { animation-delay: .38s; }
.headline span:nth-child(9) { animation-delay: .44s; }
.headline span:nth-child(10) { animation-delay: .50s; }
.headline span:nth-child(11) { animation-delay: .56s; }

.lead {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.72;
}

.lead strong {
  color: var(--white);
  font-weight: 900;
}

.mobile-animation {
  position: relative;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #dcfaff;
  font-weight: 900;
}

.mobile-animation span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--green);
  animation: typing 4.8s steps(38, end) infinite, caret .8s step-end infinite;
}

.pulse-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(122,201,67,.88);
  animation: dotPulse 1.35s ease-in-out infinite;
}

.pulse-ring {
  position: absolute;
  left: -6px;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(122,201,67,.45);
  border-radius: 50%;
  animation: ringPulse 1.8s ease-out infinite;
}

.progress-card {
  width: min(620px, 100%);
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.045)),
    rgba(255,255,255,.04);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 13px;
}

.progress-top small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.62);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.progress-top strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
}

.progress-top em {
  color: #dffbff;
  font-size: 1.5rem;
  font-style: normal;
  line-height: 1;
  font-weight: 900;
}

.progress-bar {
  width: 100%;
  height: 12px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 88%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--green));
  background-size: 220% 100%;
  box-shadow: 0 0 26px rgba(36,174,230,.55);
  animation: progressFlow 2.6s ease-in-out infinite;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tags span {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.065);
  font-size: .88rem;
  font-weight: 800;
  animation: tagIn .75s ease both;
}

.tags span:nth-child(1) { animation-delay: .1s; }
.tags span:nth-child(2) { animation-delay: .18s; }
.tags span:nth-child(3) { animation-delay: .26s; }
.tags span:nth-child(4) { animation-delay: .34s; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--green));
  box-shadow: 0 18px 36px rgba(36,174,230,.28);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowPulse {
  0%, 100% { opacity: .55; transform: scale(.95); }
  50% { opacity: .95; transform: scale(1.06); }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-12px) rotate(.6deg); }
}

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

@keyframes shine {
  0%, 58% { opacity: 0; transform: translateX(-90%) rotate(19deg); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translateX(340%) rotate(19deg); }
}

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

@keyframes typing {
  0%, 12% { width: 0; }
  46%, 78% { width: 100%; }
  100% { width: 0; }
}

@keyframes caret {
  50% { border-color: transparent; }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(.78); opacity: .78; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes ringPulse {
  0% { transform: scale(.55); opacity: .80; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes progressFlow {
  0%, 100% {
    background-position: 0% 50%;
    transform: scaleX(.965);
    transform-origin: left;
  }
  50% {
    background-position: 100% 50%;
    transform: scaleX(1);
  }
}

@keyframes tagIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes snowDrop {
  0% { top: -12vh; opacity: 0; transform: rotate(0deg); }
  10% { opacity: .9; }
  92% { opacity: .75; }
  100% { top: 112vh; opacity: 0; transform: rotate(360deg); }
}

@keyframes snowSway {
  0%, 100% { margin-left: -16px; }
  50% { margin-left: 24px; }
}

/* Tablet */
@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
    max-width: 760px;
    text-align: center;
  }

  .logo-side {
    min-height: auto;
    justify-items: center;
  }

  .logo-card {
    width: min(520px, 100%);
    min-height: 190px;
  }

  .eyebrow,
  .headline,
  .tags,
  .actions {
    justify-content: center;
  }

  .lead,
  .progress-card {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Phone layout with animations retained */
@media (max-width: 680px) {
  .page {
    min-height: 100svh;
    padding: 12px;
  }

  .hero-shell {
    width: 100%;
    max-width: 430px;
    gap: 14px;
    padding: 16px 13px;
    border-radius: 28px;
  }

  .hero-shell::before {
    inset: 8px;
    border-radius: 22px;
  }

  .logo-side {
    gap: 10px;
  }

  .logo-card {
    width: 100%;
    min-height: 106px;
    padding: 16px;
    border-radius: 22px;
    animation: mobileLogoFloat 3.6s ease-in-out infinite;
  }

  .logo-card::before {
    inset: 8px;
    border-radius: 17px;
  }

  .logo-card img {
    width: min(100%, 310px);
  }

  .mini-cards {
    display: none;
  }

  .eyebrow {
    gap: 8px;
    margin-bottom: 8px;
    font-size: .56rem;
    letter-spacing: .11em;
    line-height: 1.3;
  }

  .eyebrow i {
    width: 24px;
  }

  .headline {
    margin-bottom: 9px;
    font-size: clamp(2.55rem, 15.5vw, 3.95rem);
    line-height: .90;
  }

  .headline b {
    width: 100%;
    height: 0;
  }

  .lead {
    max-width: 335px;
    margin-bottom: 10px;
    font-size: .84rem;
    line-height: 1.45;
  }

  .mobile-animation {
    margin-bottom: 11px;
    font-size: .78rem;
    line-height: 1.35;
  }

  .mobile-animation span {
    white-space: normal;
    border-right: 0;
    animation: mobileTextGlow 2.2s ease-in-out infinite;
  }

  .progress-card {
    padding: 12px;
    margin-bottom: 11px;
    border-radius: 18px;
    text-align: left;
  }

  .progress-top {
    margin-bottom: 9px;
  }

  .progress-top small {
    font-size: .61rem;
  }

  .progress-top strong {
    font-size: .90rem;
  }

  .progress-top em {
    font-size: 1.10rem;
  }

  .progress-bar {
    height: 10px;
  }

  .tags {
    gap: 6px;
    margin-bottom: 12px;
  }

  .tags span {
    padding: 6px 9px;
    font-size: .66rem;
  }

  .actions {
    gap: 8px;
  }

  .btn {
    flex: 1 1 130px;
    min-width: 0;
    min-height: 40px;
    padding: 9px 12px;
    font-size: .78rem;
  }

  .snowflakes span {
    /* More visible on phone */
    opacity: .95;
    font-size: 13px;
    animation-duration: 9s, 3.4s;
  }
}

/* iPhone SE / small phone */
@media (max-width: 390px) {
  .page {
    padding: 9px;
  }

  .hero-shell {
    gap: 10px;
    padding: 13px 11px;
    border-radius: 24px;
  }

  .logo-card {
    min-height: 88px;
    padding: 12px;
  }

  .headline {
    font-size: clamp(2.20rem, 14.4vw, 3.05rem);
    margin-bottom: 8px;
  }

  .lead {
    font-size: .76rem;
    margin-bottom: 8px;
  }

  .mobile-animation {
    font-size: .71rem;
    margin-bottom: 9px;
  }

  .progress-card {
    padding: 10px;
    margin-bottom: 9px;
  }

  .tags span {
    font-size: .61rem;
    padding: 5px 7px;
  }

  .btn {
    min-height: 38px;
    font-size: .74rem;
  }
}

/* Very short phone screens: keep animation, remove only non-essential chips/buttons */
@media (max-height: 690px) and (max-width: 680px) {
  .tags,
  .actions {
    display: none;
  }

  .logo-card {
    min-height: 82px;
  }

  .headline {
    font-size: clamp(2rem, 13.2vw, 2.85rem);
  }

  .lead {
    font-size: .72rem;
  }

  .progress-card {
    margin-bottom: 0;
  }

  .snowflakes span {
    animation-duration: 7.5s, 3s;
  }
}

@keyframes mobileLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 50px rgba(0,0,0,.30), 0 0 0 rgba(36,174,230,0);
  }
  50% {
    transform: translateY(-7px) scale(1.012);
    box-shadow: 0 24px 62px rgba(0,0,0,.34), 0 0 34px rgba(36,174,230,.18);
  }
}

@keyframes mobileTextGlow {
  0%, 100% {
    opacity: .68;
    transform: translateY(1px);
    text-shadow: 0 0 0 rgba(36,174,230,0);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 18px rgba(36,174,230,.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
