:root {
  --bg-color: #080b11;
  --nav-bg: rgba(8, 11, 17, 0.85);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --card-bg: #0d121f;
  --card-border: #182033;
  --gold: #f5a623;
  --gold-glow: rgba(245, 166, 35, 0.25);
  --border-color: #151c2e;
}

body.light-mode {
  --bg-color: #f8fafc;
  --nav-bg: rgba(255, 255, 255, 0.90);
  --text-main: #0f172a;
  --text-muted: #475569;
  --card-bg: #ffffff;
  --card-border: #cbd5e1;
  --gold: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.2);
  --border-color: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 60px;
  width: 100vw;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════
   LOGO ENTRY ANIMATION
══════════════════════════════════════════════════ */
@keyframes logoEntry {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.82);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.logo-container.logo-entered {
  animation: logoEntry 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ══════════════════════════════════════════════════
   HERO STAGGER ANIMATION
══════════════════════════════════════════════════ */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stagger {
  opacity: 0;
  animation: heroFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4%;
  width: 100%;
  background-color: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.logo-img {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

.logo-text-box {
  display: flex;
  flex-direction: column;
}

.logo-main-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: 0.5px;
  font-family: serif;
}

.logo-sub-title {
  font-size: 10px;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 2px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-btn {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.sign-in {
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sign-in:hover {
  color: var(--gold);
}

.btn-get-started {
  background-color: var(--gold);
  color: #000000;
  padding: 10px 22px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-get-started:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--gold-glow);
}

/* ══════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════ */
.hero {
  text-align: center;
  width: 92%;
  margin: 70px auto 44px auto;
  padding: 0 20px;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px #10b981; }
  50% { box-shadow: 0 0 14px #10b981, 0 0 24px rgba(16,185,129,0.4); }
}

.announcement-text {
  color: var(--text-muted);
}

.announcement-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.announcement-link:hover {
  text-decoration: underline;
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.highlight-yellow {
  color: var(--gold) !important;
  display: block;
}

.hero-subtext {
  color: var(--text-main);
  display: block;
  margin-top: 6px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 920px;
  margin: 0 auto 32px auto;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-cta-btn {
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 24px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--card-border);
  padding: 14px 28px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 18px var(--gold-glow);
}

/* ══════════════════════════════════════════════════
   HIGHLIGHTS BANNER
══════════════════════════════════════════════════ */
.highlights-banner {
  width: 92%;
  margin: 50px auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px 30px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.highlight-item h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.highlight-item p {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════
   FEATURES GRID
══════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
  width: 100%;
}

.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 220px;
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--card-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.card-icon.yellow { color: var(--gold); }
.card-icon.blue { color: #3b82f6; }
.card-icon.green { color: #10b981; }

.feature-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
}

.feature-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════
   INFO CARDS
══════════════════════════════════════════════════ */
.info-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 38px 34px;
}

.interactive-card {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.interactive-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18), 0 0 20px var(--gold-glow);
}

.info-card h3 {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 14px;
}

.info-card p, .info-card li {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.75;
}

.info-card ul {
  padding-left: 20px;
  margin-top: 12px;
}

.arch-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.arch-link:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════════ */
.stats-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 42px 4%;
  margin: 50px 0;
  width: 100%;
}

.stats-grid {
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  width: 100%;
}

.stat-item {
  padding: 0 24px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════
   SECTION CONTAINERS
══════════════════════════════════════════════════ */
.section-container {
  width: 92%;
  margin: 70px auto;
  padding: 0 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.features-header {
  margin-bottom: 36px;
  text-align: center;
}

.features-header h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.features-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ══════════════════════════════════════════════════
   TERMS & PRIVACY GRID
══════════════════════════════════════════════════ */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ══════════════════════════════════════════════════
   ARCHITECTURE IMAGE
══════════════════════════════════════════════════ */
.arch-img-wrapper {
  width: 100%;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.arch-img-wrapper:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.16), 0 0 24px var(--gold-glow);
}

.arch-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.main-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 70px;
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ══════════════════════════════════════════════════
   SCROLL ANIMATION
══════════════════════════════════════════════════ */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .highlights-grid, .features-grid, .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title { font-size: 40px; }
  .terms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .nav-links { display: none; }
  .highlights-grid, .stats-grid, .features-grid, .grid-2, .terms-grid {
    grid-template-columns: 1fr;
  }
  .hero-title { font-size: 28px; }
  .hero-cta-row { flex-direction: column; align-items: center; }
}
