:root {
  --bg-main: #0b0d17;
  --bg-card: #131627;
  --bg-alt: #0f1220;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, .brand-name {
  font-family: "Outfit", "Inter", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}

/* Hero */
.hero {
  padding: 84px 0 44px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18), transparent 60%);
}

.hero-inner {
  max-width: 820px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(to right, #818cf8, #c084fc, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Showcase Slider */
.showcase-section {
  padding: 12px 0 56px;
}

.slider-wrapper {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, 0.25);
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.slider-track {
  position: relative;
}

.slide {
  display: none;
  margin: 0;
  animation: fadeInSlide 0.35s ease;
}

.slide.active {
  display: block;
}

@keyframes fadeInSlide {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.slide img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: contain;
  object-position: center;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.14) 0%, rgba(11, 13, 23, 0.96) 80%);
}

.slide figcaption {
  min-height: 88px;
  padding: 18px 24px 36px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  background: linear-gradient(to top, rgba(11, 13, 23, 0.96), rgba(19, 22, 39, 0.9));
  border-top: 1px solid var(--border-color);
}

.slide figcaption strong {
  color: var(--text-primary);
}

.slider-btn {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 13, 23, 0.72);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.slider-btn:hover {
  background: rgba(99, 102, 241, 0.85);
}

.slider-btn.prev {
  left: 14px;
}

.slider-btn.next {
  right: 14px;
}

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.slider-dots .dot.active {
  width: 24px;
  background: #818cf8;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 30px;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 44px;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Changelog */
.changelog-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px 24px;
}

.changelog-date {
  font-size: 12px;
  font-weight: 600;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.changelog-item h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.changelog-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Contact CTA */
.contact-box {
  text-align: center;
  max-width: 680px;
}

.contact-box h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Beta Signup Form (SRS-101) */
.beta-form {
  margin-top: 8px;
}

.beta-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.beta-input {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.beta-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.beta-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.beta-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.beta-turnstile {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.beta-turnstile:empty {
  display: none;
  margin-top: 0;
}

/* Language Switcher (WEB-SRS-002) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.lang-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  background: var(--accent-primary, #6366f1);
  color: #ffffff;
}

.beta-feedback {
  margin-top: 12px;
  min-height: 20px;
  font-size: 14px;
  font-weight: 500;
}

.beta-feedback.is-success {
  color: #4ade80;
}

.beta-feedback.is-error {
  color: #fca5a5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .slide img {
    height: 360px;
  }
  .slide figcaption {
    min-height: 104px;
    padding: 12px 16px 34px;
  }
  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 15px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .lang-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
  .slide img {
    height: 240px;
  }
}
