:root {
  --bg: #0d0d0d;
  --olive: #3d4a2c;
  --olive-deep: #252b1c;
  --gold: #d4a82a;
  --gold-dim: #a8841c;
  --paper: #faf9f6;
  --muted: #b8b4a8;
  --line: rgba(212, 168, 42, 0.28);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font);
  line-height: 1.5;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #f0d56a; }

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 28px;
  background: var(--olive);
  font-size: 13px;
}
.topbar a { color: var(--paper); }
.topbar-sep { width: 1px; height: 12px; background: rgba(250, 249, 246, 0.3); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--paper); }
.nav-cta { display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: #1a1608; }
.btn-gold:hover { background: #e6be3a; color: #1a1608; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn.is-active-plan {
  background: rgba(212, 168, 42, 0.16);
  color: var(--gold);
  border-color: var(--gold);
}
.btn.is-buy-plan {
  border-color: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 32px 28px;
  max-width: 1120px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.hero-sub {
  margin: 0 0 10px;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  color: var(--gold);
}
.lede { color: var(--muted); font-size: 16px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.fine { color: #8a867c; font-size: 13px; }
.hero > .fine { grid-column: 1 / -1; margin: 0; }

.hero-play {
  position: relative;
  display: grid;
  place-items: center;
  width: min(320px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: #1a1a12;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.45);
}
.play-logo {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}
.play-ring {
  position: absolute;
  inset: 1.5%;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
}
.play-icon {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--gold);
  transform: translateX(10%);
}

section { padding: 28px 28px 32px; max-width: 1120px; margin: 0 auto; }
section h2 { font-size: 36px; margin: 0 0 8px; letter-spacing: -0.02em; }
.section-lead { color: var(--muted); max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.card {
  background: var(--olive-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card-featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.card h3 { margin: 0 0 4px; font-size: 22px; }
.card-tag { color: var(--gold); font-size: 13px; margin: 0 0 14px; }
.card ul { margin: 0 0 22px; padding-left: 18px; color: var(--muted); flex: 1; }
.card li { margin: 8px 0; }

.pricing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.currency { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.currency-btn {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
}
.currency-btn.is-on { background: var(--gold); color: #1a1608; }

.price-table { width: 100%; border-collapse: collapse; margin: 28px 0 12px; }
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.price-table th { color: var(--muted); font-weight: 600; font-size: 13px; }

.enterprise { margin-top: 28px; }
.enterprise .section-lead { margin-bottom: 10px; }
.enterprise-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--olive-deep);
}
.enterprise-form[hidden] { display: none; }
.enterprise-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.enterprise-form input,
.enterprise-form select,
.enterprise-form textarea {
  background: #111;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
}
.enterprise-form input:focus,
.enterprise-form select:focus,
.enterprise-form textarea:focus {
  outline: 2px solid rgba(212, 168, 42, 0.45);
  border-color: var(--gold);
}
.enterprise-full { grid-column: 1 / -1; }
.enterprise-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.enterprise-actions .btn { cursor: pointer; }

.mcp-url { font-size: 14px; }
.mcp-url code { color: var(--gold); word-break: break-all; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.video-grid-single { grid-template-columns: minmax(0, 720px); }
.video-card { margin: 0; }
.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--olive-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  cursor: pointer;
}
.video-frame::after { content: "▶"; font-size: 28px; }
.video-embed {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-card figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

.channel-embed {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}
.channel-embed iframe { width: 100%; height: 100%; border: 0; }

.android-card {
  background: linear-gradient(135deg, var(--olive-deep), #1a1f14);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 640px;
}
.android-card h3 { margin-top: 0; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer > div { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 40; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.modal-panel {
  position: relative;
  width: min(960px, 92vw);
  margin: 8vh auto;
  background: #111;
  border-radius: 12px;
  padding: 40px 12px 12px;
  border: 1px solid var(--line);
}
.modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: 28px;
  cursor: pointer;
}
.modal-frame { aspect-ratio: 16 / 9; }
.modal-panel.is-short {
  width: min(420px, 92vw);
}
.modal-panel.is-short .modal-frame {
  aspect-ratio: 9 / 16;
  max-height: 78vh;
}
.modal-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 880px) {
  .nav { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding: 28px 16px 32px; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); }
  section { padding: 28px 16px 32px; }
  .cards, .video-grid, .enterprise-form { grid-template-columns: 1fr; }
  .price-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-table { font-size: 14px; min-width: 480px; }
  .footer { padding: 20px 16px; }
  .topbar { padding: 8px 16px; }
}

@media (max-width: 480px) {
  .brand span { max-width: 11.5em; overflow: hidden; text-overflow: ellipsis; }
  .nav-cta .btn { padding: 8px 12px; font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-play { width: min(240px, 78vw); }
}
