:root {
  --yellow: #facc15;
  --yellow-dark: #eab308;
  --bg: #020617;
  --bg-elevated: #020819;
  --card: #020b1f;
  --border: #1f2933;
  --text: #f9fafb;
  --muted: #9ca3af;
  --danger: #ef4444;
  --success: #22c55e;
}

html[data-theme="light"] {
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #020617;
  --muted: #4b5563;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* TOP BAR */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #000;
}

.brand-name {
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.8rem;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.topbar-nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.topbar-nav a:hover {
  text-decoration: underline;
}

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.material-symbols {
  font-family: system-ui;
  font-weight: 700;
}

/* BADGE */
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  padding: 0 0.3rem;
}
.badge.hidden { display: none; }

/* HERO */
main {
  padding-top: 64px;
}

.hero {
  position: relative;
  height: 80vh;
  min-height: 480px;
  overflow: hidden;
  color: #f9fafb;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.35)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 4.5rem 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-sub {
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.9rem;
}

.hero .link {
  text-decoration: underline;
  cursor: pointer;
}

/* BUTTONS */
.btn {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #111827;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background: #d4d4d8;
}

/* SECTIONS */
.section {
  padding: 3.5rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* FEATURE GRID */
.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: var(--bg-elevated);
  border-radius: 1rem;
  padding: 1.7rem;
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

/* PLANS */
.plan-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plan-card {
  border-radius: 1.3rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.plan-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 700;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
}

.plan-btn {
  margin-top: 0.3rem;
}

/* STEPS */
.steps {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
  background: var(--bg-elevated);
  padding: 1.7rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

/* CTA */
.cta {
  background: var(--yellow);
  color: #000;
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.cta p {
  margin-bottom: 1.5rem;
}

/* CONTACT */
.contact-layout {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.8rem 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.status-text {
  font-size: 0.85rem;
  color: var(--success);
}

/* FOOTER */
.footer {
  padding: 2.5rem 1.5rem 1.5rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer-columns {
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* CART DRAWER */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  z-index: 60;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.cart-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.cart-body {
  padding: 1rem 1.2rem;
  overflow-y: auto;
  flex: 1;
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  margin-top: 3rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

/* CHAT WIDGET */
.chat-widget {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 55;
}

.chat-toggle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.chat-window {
  position: absolute;
  bottom: 56px;
  right: 0;
  width: 320px;
  max-height: 420px;
  background: var(--bg-elevated);
  border-radius: 1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.hidden { display: none; }

.chat-header {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  padding: 0.8rem;
  flex: 1;
  overflow-y: auto;
  font-size: 0.9rem;
}

.chat-message {
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  margin-bottom: 0.4rem;
  max-width: 80%;
}

.chat-message.bot {
  background: var(--card);
}

.chat-message.user {
  background: var(--yellow);
  color: #000;
  margin-left: auto;
}

.chat-input-row {
  display: flex;
  padding: 0.6rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.chat-input-row input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.45rem 0.8rem;
  background: var(--bg-elevated);
  color: var(--text);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content {
    padding: 4rem 1rem;
  }
  .hero {
    height: auto;
    min-height: 480px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
