:root {
  --bg-main: #020617;
  --bg-alt: #02091b;
  --bg-card: #020617;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-strong: #f9fafb;
  --radius-xl: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
}

body {
  min-height: 100vh;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name-small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-soft);
}

.brand-name-main {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-strong);
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.main-nav a:hover {
  color: var(--text-strong);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  font-size: 0.75rem;
  padding: 4px 10px;
  cursor: pointer;
}

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

.lang-btn.lang-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
}

/* Subscription banner */
.subscription-banner {
  background: #0f172a;
  color: var(--text-soft);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* HERO */
.hero {
  padding: 56px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 2.8rem);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text-strong);
}

.hero-text p {
  margin: 0 0 20px;
  color: var(--text-soft);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--border-subtle);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.8);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.btn-secondary {
  border-color: var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.hero-subtext {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  padding: 20px 22px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.16), transparent 55%), #020617;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* SECTION base */
.section {
  padding: 40px 0;
}

.section-alt {
  background: radial-gradient(circle at top, #02091b 0, #020617 55%);
}

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 10px;
  color: var(--text-strong);
}

.section-lead {
  margin: 0 0 26px;
  max-width: 40rem;
  color: var(--text-soft);
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 16px 18px;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--text-strong);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* VISUAL TRAINING */
.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
}

.list-check {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.visual-panel {
  display: flex;
  justify-content: flex-end;
}

.visual-card {
  width: 100%;
  max-width: 320px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.visual-card .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.visual-title {
  margin: 10px 0 12px;
  font-weight: 600;
  color: var(--text-strong);
}

.visual-timeline {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: 10px;
}

.visual-timeline span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 4px 0;
  border-radius: 999px;
}

.visual-timeline span:nth-child(1),
.visual-timeline span:nth-child(5) {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.visual-caption {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-card-highlight {
  border-color: var(--accent);
  box-shadow: 0 20px 55px rgba(249, 115, 22, 0.35);
  position: relative;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-strong);
}

.price {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}

.pricing-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.pricing-card ul {
  margin: 4px 0 10px;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.pricing-badge {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.pricing-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.paypal-btn {
  margin-top: 6px;
}

/* Pay options wrapper */
.pay-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.faq-item {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: var(--text-strong);
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* CONTACT */
.contact-block {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contact-block p {
  margin: 0 0 10px;
}

.contact-block a {
  color: var(--accent);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* Practice widget / portal */
.practice-widget {
  background: rgba(15,23,42,0.96);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 16px 18px;
  max-width: 420px;
}

.practice-time {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.practice-controls {
  display: flex;
  gap: 10px;
}

.achievements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.achievements-list li {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trophy {
  font-size: 1.1rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 0 18px;
  background: #020617;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-right a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 880px) {
  .hero-inner,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .visual-panel {
    justify-content: flex-start;
  }

  .main-nav {
    display: none;
  }

  .site-header {
    padding-bottom: 4px;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 32px;
  }

  .hero-card,
  .visual-card {
    max-width: 100%;
  }

  .header-inner {
    align-items: flex-start;
  }

  .lang-switcher {
    margin-top: 2px;
  }
}


/* === Global background with logo watermark === */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.9) 0, rgba(2, 6, 23, 0.98) 55%),
    url("../img/logo-bg-gold.jpg") no-repeat center center;
  background-size: clamp(220px, 40vw, 420px);
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: -1;
}

/* DEMO MODAL */

.demo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.demo-modal.demo-open {
  display: flex;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

.demo-dialog {
  position: relative;
  max-width: 720px;
  width: 100%;
  margin: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 24px 24px 28px;
  z-index: 1;
}

.demo-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 24px;
  cursor: pointer;
}

.demo-video-wrapper {
  margin: 16px 0 20px;
}

.demo-video-wrapper video {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.demo-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.demo-steps h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.demo-steps p {
  margin: 0;
  color: var(--text-soft);
}

/* AI feedback panel in portal */

.ai-panel {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: flex-start;
}

@media (max-width: 768px) {
  .ai-panel {
    grid-template-columns: 1fr;
  }
}

.ai-video-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #020617;
  min-height: 260px;
}

.ai-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-indicator {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle, #fbbf24 0, #b45309 70%);
  opacity: 0.2;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.ai-indicator.ai-active {
  opacity: 1;
  transform: scale(1.2);
}

.ai-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-status-text {
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* PayPal highlight around selected button */
.paypal-highlight {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 10px;
}
