:root {
  --cyan: #17ccec;
  --blue: #3887b3;
  --cyan-hover: #14b8d4;
  --blue-hover: #2d6d92;
  --bg: #f0f6f9;
  --bg-accent: #e8f1f5;
  --surface: #fafcfd;
  --text: #0a0f14;
  --muted: #3d4f5c;
  --subtle: #5a6c7a;
  --gradient: linear-gradient(135deg, #17ccec 0%, #3887b3 100%);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background mesh ── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(23, 204, 236, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(56, 135, 179, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(23, 204, 236, 0.05) 0%, transparent 70%);
}

.bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(56, 135, 179, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Floating orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: drift 20s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--blue);
  bottom: -100px;
  right: -80px;
  animation-delay: -7s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--cyan);
  top: 50%;
  left: 50%;
  animation-delay: -14s;
  opacity: 0.12;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 clamp(4rem, 10vw, 10rem);
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  animation: fadeDown 0.8s ease both;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-badge {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--blue);
  background: rgba(56, 135, 179, 0.1);
  border: 1px solid rgba(56, 135, 179, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 3rem 0 4rem;
  gap: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.eyebrow-accent {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gradient);
  flex-shrink: 0;
}

h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 900px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.35s ease both;
}

h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.8s 0.5s ease both;
}

/* ── Countdown ── */
.countdown-wrap {
  animation: fadeUp 0.8s 0.65s ease both;
  margin-bottom: 3.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 3vw, 2rem);
  justify-content: center;
  flex-wrap: wrap;
}

.unit-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 90px;
}

.unit-card {
  background: var(--surface);
  border: 1px solid rgba(23, 204, 236, 0.18);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.6rem) clamp(1.2rem, 3vw, 2rem);
  box-shadow:
    0 2px 20px rgba(23, 204, 236, 0.08),
    0 1px 4px rgba(10, 15, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 100px;
}

.unit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(23, 204, 236, 0.15), 0 2px 8px rgba(10, 15, 20, 0.08);
}

.unit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.6;
}

.unit-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-align: center;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.unit-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: center;
}

.colon {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.5;
  margin-top: clamp(0.8rem, 2vw, 1.4rem);
  animation: blink 1s ease-in-out infinite;
  user-select: none;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.15;
  }
}

/* ── Email form ── */
.notify-form {
  animation: fadeUp 0.8s 0.8s ease both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 480px;
  align-self: center;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(23, 204, 236, 0.22);
  border-radius: 14px;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  box-shadow: 0 2px 16px rgba(23, 204, 236, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(23, 204, 236, 0.12), 0 2px 16px rgba(23, 204, 236, 0.1);
}

.form-row.input-error {
  border-color: #e05c5c;
  box-shadow: 0 0 0 2px rgba(224, 92, 92, 0.2);
}

.form-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  padding: 0.5rem 0;
  min-width: 0;
}

.form-row input::placeholder {
  color: var(--subtle);
}

.btn-notify {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: white;
  background: var(--blue);
  border: none;
  cursor: pointer;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(56, 135, 179, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.btn-notify:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 135, 179, 0.4);
}

.btn-notify:active {
  transform: translateY(0);
}

.btn-notify:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 0.78rem;
  color: var(--subtle);
  text-align: center;
}

.form-note span {
  color: var(--cyan);
}

.survey-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px dashed rgba(56, 135, 179, 0.4);
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.survey-link:hover {
  color: var(--blue-hover);
  border-color: var(--blue);
  background: rgba(56, 135, 179, 0.08);
}

.form-error {
  display: none;
  font-size: 0.85rem;
  color: #c44;
  text-align: center;
  margin-top: -0.5rem;
  margin-bottom: 0;
}

.form-error.show {
  display: block;
  animation: fadeUp 0.3s ease both;
}

/* ── Modules strip ── */
.modules-section {
  animation: fadeUp 0.8s 1s ease both;
  width: 100%;
  max-width: 860px;
  align-self: center;
}

.modules-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: center;
  margin-bottom: 1.2rem;
}

.modules-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.module-pill-wrap {
  position: relative;
}

.module-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid rgba(56, 135, 179, 0.14);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  box-shadow: 0 1px 4px rgba(10, 15, 20, 0.05);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}

.module-pill:hover,
.module-pill:focus,
.module-pill-wrap.active .module-pill {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 2px 12px rgba(56, 135, 179, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.module-pill .icon {
  width: 18px;
  height: 18px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-pill .icon svg {
  width: 10px;
  height: 10px;
}

.module-tooltip {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 240px;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(56, 135, 179, 0.2);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(10, 15, 20, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 10;
}

.module-pill-wrap:hover .module-tooltip,
.module-pill-wrap:focus-within .module-tooltip,
.module-pill-wrap.active .module-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.module-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--surface);
}

/* ── Footer ── */
footer {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-top: 1px solid rgba(56, 135, 179, 0.1);
  animation: fadeUp 0.8s 1.1s ease both;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--subtle);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-email {
  font-size: 0.8rem;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--cyan);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-socials a {
  color: var(--subtle);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success / message states */
.success-msg {
  display: none;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeUp 0.4s ease both;
}

.success-msg svg {
  color: var(--cyan);
}

.success-msg.show {
  display: flex;
}

.success-msg.error {
  color: #c44;
}

.success-msg.error svg {
  color: #e05c5c;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .page {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .countdown {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: center;
  }

  .colon {
    display: none;
  }

  .unit-block {
    min-width: 0;
    flex: 1;
    max-width: 72px;
  }

  .unit-card {
    min-width: 0;
    padding: 0.5rem 0.35rem;
  }

  .unit-num {
    font-size: 1.4rem;
  }

  .unit-label {
    font-size: 0.6rem;
  }

  .form-row {
    flex-direction: column;
    padding: 0.5rem;
  }

  .btn-notify {
    width: 100%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}