@property --theme-reveal-radius {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5e0dc;
  --surface: #1c1c26; 
  --surface-variant: #262638;
  --surface-elevated: rgba(248, 250, 252, 0.05);
  --primary: rgba(72, 73, 105, 1); 
  --primary-container: rgba(72, 73, 105, 0.9);
  --on-primary: #ffffff;
  --secondary: #dcdcdc;
  --secondary-container: #4a3e5c; 
  --on-surface: #f2dfdb;
  --on-surface-variant: #c4b6b6;
  --outline: #8c84b0;
  --page-bg-start: #0e0d14;
  --page-bg-middle: #15131c;
  --page-bg-end: #1e1b26;
  --text-primary: #f5e0dc;
  --text-secondary: #c2cbd6;
  --text-muted: #8d9ba8;
  --heading-color: #ffffff;
  --card-border: rgba(138, 124, 148, 0.16);
  --input-bg: rgba(2, 6, 23, 0.45);
  --input-border: rgba(148, 163, 184, 0.2);
  --chip-bg: rgba(72, 73, 105, 0.12);
  --shadow-color: rgba(10, 8, 16, 0.28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --surface: #ffffff;
  --surface-variant: #f4f2f9; 
  --surface-elevated: rgba(255, 255, 255, 0.85);
  --primary: #575585;
  --primary-container: #656296;
  --on-primary: #ffffff;
  --secondary: #4d4759;
  --secondary-container: #e3ddeb;
  --on-surface: #261e33;
  --on-surface-variant: #524b5e;
  --outline: #8d85b0;
  --page-bg-start: #f6f4fa;
  --page-bg-middle: #eeeaf5;
  --page-bg-end: #e4dee6;
  --text-primary: #261e33;
  --text-secondary: #544e63;
  --text-muted: #6b6475;
  --heading-color: #211838;
  --card-border: rgba(112, 100, 143, 0.18);
  --input-bg: #ffffff;
  --input-border: rgba(110, 98, 143, 0.22);
  --chip-bg: rgba(87, 85, 133, 0.1);
  --shadow-color: rgba(45, 33, 77, 0.12);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--page-bg-start) 0%, var(--page-bg-middle) 45%, var(--page-bg-end) 100%);
  color: var(--on-surface);
  line-height: 1.6;
  transition: color 0.35s ease;
}

.theme-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  --theme-reveal-x: 50%;
  --theme-reveal-y: 0px;
  --theme-reveal-radius: 0px;
  -webkit-mask-image: radial-gradient(
    circle var(--theme-reveal-radius) at var(--theme-reveal-x) var(--theme-reveal-y),
    transparent var(--theme-reveal-radius),
    #000 var(--theme-reveal-radius)
  );
  mask-image: radial-gradient(
    circle var(--theme-reveal-radius) at var(--theme-reveal-x) var(--theme-reveal-y),
    transparent var(--theme-reveal-radius),
    #000 var(--theme-reveal-radius)
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background: linear-gradient(
    135deg,
    var(--overlay-bg-start) 0%,
    var(--overlay-bg-middle) 45%,
    var(--overlay-bg-end) 100%
  );
}

.theme-overlay[data-theme="dark"] {
  --overlay-bg-start: #0e0d14;
  --overlay-bg-middle: #15131c;
  --overlay-bg-end: #1e1b26;
}

.theme-overlay[data-theme="light"] {
  --overlay-bg-start: #f6f4fa;
  --overlay-bg-middle: #eeeaf5;
  --overlay-bg-end: #e4dee6;
}

.theme-overlay.is-revealing {
  opacity: 1;
  visibility: visible;
}

html.theme-transitioning .theme-toggle {
  pointer-events: none;
  opacity: 0.72;
}

html.theme-transitioning,
html.theme-transitioning * {
  transition: none !important;
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary);
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  z-index: 50;
}

.scroll-top::before {
  content: "↑";
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}

.scroll-top:hover {
  transform: translateY(0) scale(1.04);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 2.2rem 0 3.5rem;
}


.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.6rem 0.6rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  margin-bottom: 3rem;
  gap: 1rem;
  box-shadow: 0 8px 24px var(--shadow-color);
  flex-wrap: nowrap; 
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.85;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--surface-elevated);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item:focus-visible {
  outline: 2px solid rgba(78, 79, 116, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-icon {
  display: none;
}

.nav-text {
  display: inline;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle:disabled {
  cursor: wait;
}

.theme-toggle.icon-only {
  padding: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  justify-content: center;
  flex-shrink: 0;
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.icon-sun {
  display: none;
}
.icon-moon {
  display: block;
}


.theme-toggle[aria-pressed="true"] .icon-sun {
  display: block;
}
.theme-toggle[aria-pressed="true"] .icon-moon {
  display: none;
}

html.theme-transitioning .theme-toggle__icon {
  transform: rotate(18deg) scale(1.08);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__icon {
  transform: rotate(20deg) scale(1.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid > div {
  max-width: 740px;
}

.site-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--heading-color);
}

.slogan {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-primary);
  font-weight: 400;
}

.hero-description {
  max-width: 760px;
  margin: 0 0 2rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.primary-btn {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 14px 32px rgba(78, 79, 116, 0.32);
}

.secondary-btn {
  background: rgba(78, 79, 116, 0.16);
  color: var(--secondary);
  border: 1px solid rgba(78, 79, 116, 0.28);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.hero-card,
.section-card,
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 12px 32px var(--shadow-color);
}

.hero-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.countdown-box {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.countdown-box h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.time-block {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(78, 79, 116, 0.12);
}

.time-block span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.time-block small {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.release-note {
  margin: 0;
  color: var(--text-secondary);
}

.section-card {
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.download-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 0;
}

.download-panel p {
  margin: 0;
  color: var(--text-secondary);
}

.section-header {
  margin-bottom: 1.2rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.bento-section {
  margin-bottom: 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bento-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px var(--shadow-color);
  display: flex;
  flex-direction: column;
}

.bento-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.bento-card p {
  margin: 0;
  line-height: 1.75;
  color: var(--text-secondary);
}

.features-status p,
.disclaimer p {
  margin: 0;
  line-height: 1.75;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: transparent;
  color: var(--text-primary);
  border: none;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: rgba(78, 79, 116, 1);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
}

.faq-answer > p {
  overflow: hidden;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--text-secondary);
}

.faq-item.is-open .faq-answer p {
  padding-top: 0.7rem;
}

.cta-panel {
  text-align: center;
  padding: 1.8rem;
  margin-bottom: 2rem;
}

.cta-panel h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.cta-panel p {
  margin: 0;
  line-height: 1.75;
  color: var(--text-secondary);
}

.cta-panel .primary-btn {
  margin-top: 1rem;
}

.site-footer {
  padding: 0 0 2rem;
  color: var(--text-muted);
}

.disclaimer {
  padding: 1.4rem;
  border-radius: 20px;
  margin-bottom: 1.4rem;
  text-align: left;
  background: linear-gradient(135deg, rgba(92, 62, 0, 0.52), rgba(68, 45, 0, 0.44));
  border: 1px solid rgba(255, 196, 84, 0.34);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.disclaimer h3 {
  margin-top: 0;
  color: #ffd978;
  font-weight: 800;
}

.disclaimer p {
  color: #fff0c7;
  font-weight: 500;
}

:root[data-theme="light"] .disclaimer {
  background: linear-gradient(135deg, rgba(255, 222, 116, 0.3), rgba(255, 194, 61, 0.22));
  border: 1px solid rgba(183, 126, 0, 0.35);
  box-shadow: 0 10px 28px rgba(168, 112, 0, 0.16);
}

:root[data-theme="light"] .disclaimer h3 {
  color: #8a4b00;
}

:root[data-theme="light"] .disclaimer p {
  color: #5f4a1f;
  font-weight: 600;
}

:root[data-theme="light"] .disclaimer p strong {
  color: #6b3f00;
}

.application-form {
  display: grid;
  gap: 1rem;
}

.application-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--text-primary);
}

.application-form input,
.application-form textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: var(--input-bg);
  color: var(--text-primary);
  font: inherit;
}

.application-form textarea {
  resize: none;
}

.application-form input:focus,
.application-form textarea:focus {
  outline: 2px solid rgba(78, 79, 116, 0.35);
  border-color: rgba(78, 79, 116, 1);
}

.form-message {
  margin-top: 1rem;
  min-height: 1.5rem;
  color: var(--text-secondary);
}

.form-message.success {
  color: #86efac;
}

.form-message.error {
  color: #fda4af;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .navbar {
    padding: 0.5rem;
    gap: 0.25rem;
  }


  .brand {
    margin-right: auto;
    padding-left: 0.25rem;
  }

  
.brand svg {
  display: none;
}

  .brand txt {
    display: none;
  }

  .nav-links {
    gap: 0.15rem;
  }

  .nav-item {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--text-secondary);
  }

  .nav-item:hover {
    background: var(--surface-elevated);
    color: var(--text-primary);
  }

  .nav-item:active {
    transform: scale(0.95);
  }

  .nav-icon {
    display: block;
  }

  .nav-text {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card,
  .section-card,
  .cta-panel,
  .bento-card {
    padding: 1.25rem;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .countdown {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .time-block {
    padding: 0.85rem;
  }

  .time-block span {
    font-size: 1.5rem;
  }
}
