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

:root {
  --bg: #0e1230;
  --bg-elevated: rgba(18, 24, 60, 0.78);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eff4ff;
  --text-muted: #9aa3c8;
  --accent: #1a237e;
  --accent-strong: #131a60;
  --accent-soft: rgba(26, 35, 126, 0.18);
  --teal: #28d6d0;
  --teal-soft: rgba(40, 214, 208, 0.18);
  --red: #ff6f7b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 10px 30px rgba(10, 14, 60, 0.2);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --nav-h: 78px;
  --container: 1180px;
}

body[data-theme="light"] {
  --bg: #f5f6ff;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --border: rgba(26, 35, 126, 0.13);
  --text: #0d1033;
  --text-muted: #5a6494;
  --accent: #1a237e;
  --accent-strong: #131a60;
  --accent-soft: rgba(26, 35, 126, 0.1);
  --teal: #1ab9b2;
  --teal-soft: rgba(26, 185, 178, 0.14);
  --shadow: 0 22px 60px rgba(26, 35, 126, 0.12);
  --shadow-soft: 0 12px 28px rgba(26, 35, 126, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 18%, rgba(26, 35, 126, 0.45), transparent 38%),
    radial-gradient(circle at 78% 22%, rgba(40, 214, 208, 0.18), transparent 32%),
    radial-gradient(circle at 50% 80%, rgba(26, 35, 126, 0.25), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  z-index: 2;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: currentColor;
  mask: url("assets/darsgoh-logo.svg") center / contain no-repeat;
  -webkit-mask: url("assets/darsgoh-logo.svg") center / contain no-repeat;
}

.logo-mark-sm {
  width: 28px;
  height: 28px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-name-sm {
  font-size: 1rem;
}

.brand-accent {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.lang-btn {
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(26, 35, 126, 0.18);
}

.theme-toggle,
.nav-cta-btn,
.hamburger,
.lang-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.theme-icon-light {
  display: none;
}

body[data-theme="light"] .theme-icon-dark {
  display: none;
}

body[data-theme="light"] .theme-icon-light {
  display: inline;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(26, 35, 126, 0.24);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }

body.nav-open .hamburger span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

body.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .hamburger span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 72px;
  text-align: center;
}

.hero-content {
  max-width: 860px;
}

.hero-badge,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(40, 214, 208, 0.65);
}

.hero-title {
  margin: 26px 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.gradient-text {
  display: block;
  background: linear-gradient(120deg, var(--accent), var(--teal), var(--accent));
  background-size: 180% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero-sub {
  max-width: 700px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 18px;
}

.countdown-item {
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.countdown-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.countdown-label {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.countdown-note {
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.waitlist-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.waitlist-form input,
.form-select {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.98rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.waitlist-form input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-muted);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 24px, calc(100% - 14px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-select:valid {
  color: var(--text);
}

.waitlist-form input:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface-strong);
}

.submit-btn {
  width: 100%;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(26, 35, 126, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(26, 35, 126, 0.3);
}

.submit-btn:disabled {
  opacity: 0.76;
  cursor: not-allowed;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.submit-btn:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

.submit-btn-lg {
  height: 60px;
}

.form-hint {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-hint a,
.footer-links a {
  color: var(--text);
}

.form-feedback {
  display: none;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.feedback-success,
.feedback-error {
  display: block;
}

.feedback-success {
  background: rgba(40, 214, 208, 0.12);
  border: 1px solid rgba(40, 214, 208, 0.22);
}

.feedback-error {
  background: rgba(255, 111, 123, 0.12);
  border: 1px solid rgba(255, 111, 123, 0.2);
}

.feedback-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.feedback-copy {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.coupon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero-count {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.count-icon {
  color: var(--teal);
  margin-right: 8px;
}

.section-label {
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 42px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-pretitle {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.features {
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 28px;
  text-align: left;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(40, 214, 208, 0.12);
  color: var(--teal);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-body {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1rem;
}

.about-card-stack {
  position: relative;
  width: 320px;
  height: 240px;
  margin-inline: auto;
}

.about-card {
  position: absolute;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px) !important;
}

.about-card span {
  font-weight: 700;
}

.about-card small {
  margin-left: auto;
  color: var(--text-muted);
}

.about-card-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-blue { background: var(--accent); }
.dot-teal { background: var(--teal); }
.dot-red { background: var(--red); }

.about-card-1 {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}

.about-card-2 {
  top: 80px;
  left: 36px;
  transform: rotate(2deg);
}

.about-card-3 {
  top: 160px;
  left: 10px;
  transform: rotate(-2deg);
}

.cta-section {
  text-align: center;
}

.cta-box {
  padding: 56px 40px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-title {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.cta-sub {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-muted);
}

.footer {
  padding: 30px 0 36px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .about-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 18px;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    left: 18px;
    right: 18px;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link,
  .nav-cta-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-links .theme-toggle {
    display: none;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .stats-grid,
  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-visual {
    display: none;
  }

  .cta-box {
    padding: 36px 20px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: calc(var(--nav-h) + 24px) 0 54px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .countdown {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .countdown-item {
    padding: 16px 10px;
  }

  .waitlist-form input,
  .form-select,
  .submit-btn {
    height: 54px;
  }

  .section {
    padding: 72px 0;
  }

  .section-pretitle {
    font-size: 1.35rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
