:root {
  --blue: #2e78b8;
  --red: #d97a45;
  --blue-mid: #3f8ccc;
  --blue-lt: #75acd8;
  --blue-dk: #235c90;
  --red-dk: #b96538;
  --white: #ffffff;
  --off: #f4f8fc;
  --cream: #fcf5ee;
  --text: #223548;
  --muted: #62778b;
  --border: #d4e0ea;
  --accent-soft: #f1c7ad;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--off);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* -- BACKGROUND -- */
.bg-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 20% 110%, rgba(46,120,184,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(63,140,204,0.1) 0%, transparent 60%),
    var(--off);
}

.shape {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
  animation: breathe 10s ease-in-out infinite alternate;
}
.shape-1 {
  width: 600px; height: 400px;
  background: var(--blue-lt);
  opacity: 0.28;
  bottom: -100px; left: -150px;
  animation-duration: 13s;
}
.shape-2 {
  width: 350px; height: 350px;
  background: var(--blue-mid);
  opacity: 0.1;
  top: -80px; right: -80px;
  animation-duration: 9s;
  animation-delay: -3s;
}
.shape-3 {
  width: 220px; height: 220px;
  background: var(--accent-soft);
  opacity: 0.18;
  top: 40%; left: 60%;
  animation-duration: 15s;
  animation-delay: -6s;
}

@keyframes breathe {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(8deg); }
}

/* -- PAGE -- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* -- HEADER -- */
header {
  padding: 30px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeDown 0.7s ease both;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(46,120,184,0.3));
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-name span {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.nav-badge {
  background: rgba(46,120,184,0.12);
  border: 1px solid rgba(46,120,184,0.25);
  color: var(--blue-dk);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}
.nav-badge--mobile { display: none; }
.nav-badge--desktop { display: block; }

.portal-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

/* -- HERO -- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 60px 52px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.portal-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.portal-tag-line {
  width: 32px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.portal-tag-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-dk);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 22px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-title em {
  font-style: italic;
  color: var(--red);
  position: relative;
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* Notify form */
.notify-wrap {
  animation: fadeUp 0.8s 0.4s ease both;
}
.notify-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.notify-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 420px;
}
.notify-input {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(34,53,72,0.06);
}
.notify-input::placeholder { color: var(--muted); }
.notify-input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(46,120,184,0.14);
}
.notify-btn {
  padding: 15px 26px;
  background: linear-gradient(135deg, var(--red), var(--red-dk));
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 22px rgba(217,122,69,0.38);
  white-space: nowrap;
}
.notify-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(217,122,69,0.45); }
.notify-btn:active { transform: translateY(0); }

/* -- RIGHT PANEL -- */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeLeft 0.9s 0.35s ease both;
}

/* Countdown card */
.countdown-card {
  background: var(--white);
  border: 1px solid var(--blue-lt);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(34,53,72,0.09);
}
.cd-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cd-unit {
  background: var(--cream);
  border: 1px solid var(--blue-lt);
  border-radius: 14px;
  padding: 18px 10px 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cd-unit:hover { box-shadow: 0 4px 16px rgba(46,120,184,0.15); }
.cd-unit:hover { transform: translateY(-3px); }
.cd-num {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--blue-dk);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

/* Progress bar */
.progress-card {
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(34,53,72,0.06);
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.progress-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.progress-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dk);
}
.progress-track {
  height: 8px;
  background: var(--off);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
  border-radius: 100px;
  animation: fillBar 1.4s 0.8s ease both;
  transform-origin: left;
  transform: scaleX(0);
}
@keyframes fillBar { to { transform: scaleX(1); } }

/* Features list */
.features-card {
  background: var(--off);
  border: 1px solid var(--blue-lt);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(34,53,72,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feat-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--blue-dk);
  background: var(--white);
  border: 1px solid var(--blue-lt);
  border-radius: 100px;
  padding: 7px 14px;
  font-weight: 400;
}
.feat-tag .fi { font-size: 14px; }

/* -- FOOTER -- */
footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  animation: fadeUp 0.7s 0.7s ease both;
}
footer strong { color: var(--text); font-weight: 500; }

/* -- TOAST -- */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -- ANIMATIONS -- */
@keyframes fadeDown { from { opacity:0; transform:translateY(-14px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(18px);  } to { opacity:1; transform:translateY(0); } }
@keyframes fadeLeft { from { opacity:0; transform:translateX(24px);  } to { opacity:1; transform:translateX(0); } }

/* -- RESPONSIVE -- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 40px 28px 30px; }
  .countdown { grid-template-columns: repeat(4, 1fr); }
  header { padding: 22px 28px; }
  .nav-badge--desktop { display: none; }
  .nav-badge--mobile { display: inline-flex; }
}
@media (max-width: 480px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .cd-num { font-size: 28px; }
  .hero-title { font-size: 34px; }
}
