:root {
  --bg: #010a13;
  --bg-2: #06101d;
  --panel: #091428;
  --panel-hi: #0f1f3a;
  --discord-bg: #313338;
  --discord-embed: #2b2d31;
  --gold-dark: #785a28;
  --gold: #c89b3c;
  --gold-mid: #c8aa6e;
  --gold-light: #f0e6d2;
  --teal: #0ac8b9;
  --teal-dark: #0397ab;
  --red: #e84057;
  --green: #2ee59d;
  --text: #f0e6d2;
  --muted: #a09b8c;
  --border: rgba(200, 170, 110, 0.24);
  --border-hi: rgba(200, 170, 110, 0.62);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .brand-name, .serif {
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.04em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* Hextech ornamental divider */
.hex-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 28px; max-width: 300px;
}
.hex-divider::before, .hex-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hex-diamond {
  width: 9px; height: 9px; background: var(--teal);
  border: 1.5px solid var(--gold-light); transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(10, 200, 185, 0.75);
}

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(1, 10, 19, 0.88);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 11px; flex-shrink: 0; white-space: nowrap;
}
.brand-name { font-weight: 800; font-size: 1.12rem; color: var(--gold-light); text-transform: uppercase; }
.brand-crest {
  width: 38px; height: 38px; border-radius: 6px; object-fit: cover;
  border: 1.5px solid var(--gold); box-shadow: 0 0 14px rgba(10, 200, 185, 0.25);
}
.nav-links {
  display: flex; gap: 26px; color: var(--muted); font-size: 0.84rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hextech Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; font-weight: 700; font-size: 0.84rem; letter-spacing: 0.07em; text-transform: uppercase;
  white-space: nowrap; border: 1.5px solid var(--gold-dark); cursor: pointer;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold-light); }
.btn-primary {
  background: linear-gradient(180deg, #0e4a56 0%, #072630 100%);
  color: var(--gold-light); border-color: var(--teal);
  box-shadow: inset 0 0 18px rgba(10, 200, 185, 0.25), 0 8px 26px rgba(10, 200, 185, 0.22);
}
.btn-primary:hover { box-shadow: inset 0 0 26px rgba(10, 200, 185, 0.45), 0 12px 32px rgba(10, 200, 185, 0.35); }
.btn-gold {
  background: linear-gradient(180deg, #ecd08b 0%, #b4852d 100%);
  color: #0d0802; border-color: #fff2cc;
  box-shadow: 0 8px 26px rgba(200, 155, 60, 0.36);
}
.btn-gold:hover { box-shadow: 0 12px 34px rgba(200, 155, 60, 0.55); }
.btn-ghost { background: rgba(9, 20, 40, 0.78); border-color: var(--border-hi); color: var(--gold-light); }
.btn-ghost:hover { background: rgba(200, 170, 110, 0.14); }
.btn-lg { padding: 14px 28px; font-size: 0.9rem; }
.lang-btn {
  padding: 8px 11px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em;
  background: rgba(9, 20, 40, 0.85); border: 1px solid var(--border); color: var(--gold-mid); cursor: pointer;
}
.lang-btn:hover { color: var(--gold-light); border-color: var(--gold); }

/* Hero */
.hero {
  position: relative; padding: 86px 0 78px;
  background:
    radial-gradient(800px 420px at 72% 45%, rgba(10, 200, 185, 0.16), transparent 65%),
    linear-gradient(180deg, rgba(1, 10, 19, 0.52) 0%, rgba(1, 10, 19, 0.74) 70%, var(--bg) 100%),
    url('./assets/hextech-hero.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); background: rgba(1, 10, 19, 0.82); border: 1px solid rgba(10, 200, 185, 0.42);
  margin-bottom: 20px; white-space: nowrap;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
h1 {
  font-size: clamp(2.15rem, 4vw, 3.25rem); line-height: 1.12;
  font-weight: 800; margin-bottom: 18px; text-transform: uppercase;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.85);
}
.grad-text {
  background: linear-gradient(180deg, #fff6d9 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.06rem; color: #d8d2c3; max-width: 550px; margin-bottom: 28px; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 22px;
  padding-top: 20px; border-top: 1px solid rgba(200, 170, 110, 0.2);
}
.proof-num { font-family: 'Cinzel', serif; font-size: 1.35rem; font-weight: 800; color: var(--gold-light); line-height: 1.1; }
.proof-lbl { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.hero-cards { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.hero-card { width: 270px; filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.85)); transition: transform .32s ease; }
.hero-card.main { position: relative; z-index: 2; transform: rotate(-3deg); }
.hero-card.back { position: absolute; right: 0; top: 44px; width: 226px; opacity: 0.94; transform: rotate(8deg); }
.hero-cards:hover .hero-card.main { transform: rotate(-1deg) translateY(-8px); }
.hero-cards:hover .hero-card.back { transform: rotate(10deg) translateY(-5px); }

/* Sections */
section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, rgba(9, 20, 40, 0.45), rgba(1, 10, 19, 0.2)); border-top: 1px solid rgba(200,170,110,0.12); border-bottom: 1px solid rgba(200,170,110,0.12); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* Hextech Panel with corner accents */
.hex-box {
  background: linear-gradient(180deg, rgba(15, 31, 58, 0.9), rgba(9, 20, 40, 0.96));
  border: 1px solid var(--border); position: relative;
}
.hex-box::before, .hex-box::after {
  content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none;
  border-color: var(--gold); border-style: solid;
}
.hex-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hex-box::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Interactive Discord Preview */
.demo-shell { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
.demo-tabs { display: flex; flex-direction: column; gap: 10px; }
.demo-tab {
  text-align: left; padding: 16px 18px; cursor: pointer;
  background: rgba(9, 20, 40, 0.72); border: 1px solid var(--border); color: var(--muted);
  transition: border-color .16s, background .16s, color .16s;
}
.demo-tab strong { display: block; color: var(--gold-light); font-size: 0.95rem; margin-bottom: 3px; }
.demo-tab span { font-size: 0.82rem; }
.demo-tab:hover { border-color: var(--gold-mid); }
.demo-tab.active {
  background: linear-gradient(90deg, rgba(10, 200, 185, 0.14), rgba(9, 20, 40, 0.95));
  border-color: var(--teal); color: var(--text);
}
.discord-window {
  background: var(--discord-bg); border: 1px solid var(--border-hi);
  border-radius: 12px; overflow: hidden; box-shadow: 0 26px 64px rgba(0, 0, 0, 0.65);
}
.discord-bar {
  background: #2b2d31; padding: 12px 18px; border-bottom: 1px solid rgba(0,0,0,0.28);
  display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; font-weight: 700; color: #f2f3f5;
}
.discord-bar span { color: #949ba4; font-weight: 500; font-size: 0.8rem; }
.discord-body { padding: 20px; }
.d-msg { display: flex; gap: 14px; }
.d-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); flex-shrink: 0; }
.d-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.d-name { font-weight: 700; color: #f2f3f5; font-size: 0.95rem; }
.d-app { background: #5865f2; color: #fff; font-size: 0.68rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.04em; }
.d-time { color: #949ba4; font-size: 0.74rem; }
.d-content { color: #dbdee1; font-size: 0.92rem; margin-bottom: 10px; }
.d-embed {
  background: var(--discord-embed); border-left: 4px solid var(--teal);
  border-radius: 5px; padding: 14px 16px; max-width: 560px;
}
.d-embed.loss { border-left-color: var(--red); }
.d-embed.gold { border-left-color: var(--gold); }
.d-embed h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; color: #fff; margin-bottom: 8px; }
.d-embed p, .d-embed li { color: #dbdee1; font-size: 0.88rem; margin-bottom: 5px; }
.d-embed ul { padding-left: 18px; margin: 6px 0 10px; }
.d-alert { background: rgba(232, 64, 87, 0.14); border: 1px solid rgba(232, 64, 87, 0.45); border-radius: 6px; padding: 8px 10px; color: #ffd7dc; font-size: 0.85rem; margin: 8px 0; }
.d-roast { border-left: 3px solid #6d737d; padding-left: 10px; color: #e2e5e9; font-style: italic; margin: 8px 0; font-size: 0.88rem; }
.d-foot { color: #949ba4; font-size: 0.74rem; margin-top: 10px; }
.d-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.d-btn { background: #4e5058; color: #fff; font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 4px; }
.d-btn.blurple { background: #5865f2; }
.demo-pane { display: none; }
.demo-pane.active { display: block; }

/* Visual Showcase */
.showcase-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 26px; align-items: stretch; }
.showcase-card { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.showcase-card h3 { font-family: 'Cinzel', serif; font-size: 1.08rem; font-weight: 700; color: var(--gold-light); text-transform: uppercase; }
.showcase-card p { color: var(--muted); font-size: 0.93rem; }
.showcase-img { border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); width: 100%; height: auto; }
.showcase-stack { display: flex; flex-direction: column; gap: 26px; }

/* Steps 1-2-3 */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { padding: 28px 24px; }
.step-num { font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.step-card h3 { font-size: 1.06rem; font-weight: 800; color: var(--gold-light); margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.92rem; }

/* Comparison Table */
.compare-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse; min-width: 640px;
  background: var(--panel); border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
  padding: 15px 18px; text-align: left; border-bottom: 1px solid rgba(200,170,110,0.14); font-size: 0.93rem;
}
.compare-table th {
  font-family: 'Cinzel', serif; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.07em;
  background: rgba(1, 10, 19, 0.65); color: var(--gold-mid);
}
.compare-table th.hl, .compare-table td.hl {
  background: rgba(10, 200, 185, 0.08); color: var(--gold-light); font-weight: 700;
}
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.yes { color: var(--green); font-weight: 800; }
.no { color: #6e737c; }

/* 3-Tier Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { padding: 32px 26px; display: flex; flex-direction: column; }
.plan.pro {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(200, 155, 60, 0.16), var(--panel) 42%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); transform: translateY(-6px);
}
.plan.commu {
  border-color: rgba(10, 200, 185, 0.55);
  background: linear-gradient(180deg, rgba(10, 200, 185, 0.12), var(--panel) 42%);
}
.badge {
  position: absolute; top: -13px; right: 20px; padding: 5px 13px;
  background: linear-gradient(180deg, #ecd08b, var(--gold));
  color: #0b0701; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
}
.badge.teal { background: linear-gradient(180deg, #3df0e1, var(--teal-dark)); color: #021518; }
.plan h3 { font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 800; color: var(--gold-light); text-transform: uppercase; margin-bottom: 6px; }
.plan-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; min-height: 44px; }
.price { font-size: 2.35rem; font-weight: 900; color: var(--gold-light); margin-bottom: 6px; }
.price span { font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.plan-quota { font-size: 0.8rem; font-weight: 700; color: var(--teal); margin-bottom: 20px; letter-spacing: 0.03em; }
.plan.pro .plan-quota { color: var(--gold-mid); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan li { font-size: 0.9rem; color: #e2dac9; display: flex; gap: 9px; }
.plan li::before { content: "◆"; color: var(--teal); font-size: 0.7rem; margin-top: 4px; flex-shrink: 0; }
.plan.pro li::before { color: var(--gold); }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 26px; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details { padding: 18px 22px; background: var(--panel); border: 1px solid var(--border); }
summary { font-weight: 700; color: var(--gold-light); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--gold); }
details[open] summary::after { content: "−"; }
details p { margin-top: 12px; color: var(--muted); font-size: 0.93rem; }

/* CTA Banner */
.cta-box {
  background:
    linear-gradient(135deg, rgba(1, 10, 19, 0.84), rgba(9, 20, 40, 0.88)),
    url('./assets/hextech-hero.jpg') center/cover no-repeat;
  border: 1.5px solid var(--gold); padding: 58px 32px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--gold-light); text-transform: uppercase; margin-bottom: 12px; }
.cta-box p { color: #d8d2c3; max-width: 580px; margin: 0 auto 28px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 44px 0 56px; color: var(--muted); font-size: 0.85rem; background: #01070e; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; }
.footer-links a:hover { color: var(--gold-light); }
.legal { font-size: 0.77rem; color: #6f6c63; line-height: 1.6; }

/* Legal subpages */
.legal-page { max-width: 780px; margin: 0 auto; padding: 64px 0 88px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 10px; }
.legal-page h2 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--gold-mid); text-transform: uppercase; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 10px; }
.legal-page ul { padding-left: 20px; }

@media (max-width: 960px) {
  .hero-grid, .showcase-grid, .demo-shell, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .plan.pro { transform: none; }
  .nav-links { display: none; }
  .pill { white-space: normal; }
  .hero { padding: 54px 0 48px; }
  .hero-cards { min-height: 360px; margin-top: 12px; }
  .hero-card { width: 224px; }
  .hero-card.back { width: 192px; }
}
