/* =========================================================
   Metin2 Bot Hub — landing page styles
   Plain CSS, no framework. Dark gaming theme.
   ========================================================= */

:root {
  --bg: #0a0e17;
  --bg-2: #0f1623;
  --bg-3: #141d2e;
  --surface: #16203200;
  --card: #131b2b;
  --card-hover: #18233700;
  --border: #233047;
  --border-soft: #1b2538;
  --text: #e9eef7;
  --text-dim: #9fb0c9;
  --text-mute: #6c7d99;
  --brand: #ffb52e;        /* gold */
  --brand-2: #ff8a00;      /* orange */
  --accent: #3b82f6;       /* blue */
  --accent-2: #22d3ee;     /* cyan */
  --good: #34d399;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .55);
  --shadow-brand: 0 12px 36px -10px rgba(255, 138, 0, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 138, 0, .10), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(59, 130, 246, .10), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--text-dim); }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }
ul { color: var(--text-dim); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section { padding: 84px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--border-soft); }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head p { font-size: 1.08rem; }

.gradient-text {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, #ffd479);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: .98rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  color: #1a1205;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { color: #1a1205; box-shadow: 0 16px 42px -10px rgba(255, 138, 0, .6); }
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: var(--text); border-color: var(--text-mute); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 23, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.header.is-stuck { border-bottom-color: var(--border); background: rgba(10, 14, 23, .9); }
.nav { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand__logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #1a1205; font-weight: 900; font-size: 1.1rem;
  box-shadow: var(--shadow-brand);
}
.brand__logo span { transform: translateY(-1px); }
.nav__links { display: flex; gap: 26px; margin-left: 26px; }
.nav__links a { color: var(--text-dim); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--text); }
.nav__spacer { margin-left: auto; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: .82rem;
  font-weight: 700;
}
.lang a { padding: 7px 11px; color: var(--text-mute); }
.lang a.is-active { background: rgba(255, 181, 46, .14); color: var(--brand); }
.lang a:hover { color: var(--text); }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; width: 42px; height: 42px; cursor: pointer; color: var(--text);
}
.nav__toggle svg { margin: auto; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 64px; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3);
  color: var(--good); padding: 6px 14px; border-radius: 100px; font-size: .82rem; font-weight: 700;
  margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero h1 { margin-bottom: 18px; }
.hero__sub { font-size: 1.18rem; max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat__num { font-size: 1.7rem; font-weight: 900; color: var(--text); }
.stat__num .gradient-text { font-weight: 900; }
.stat__label { font-size: .85rem; color: var(--text-mute); }

/* Hero visual mock window */
.hero__visual { position: relative; }
.mock {
  background: linear-gradient(180deg, var(--bg-3), var(--card));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,.02); }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mock__bar i:nth-child(1){ background:#ff5f57 } .mock__bar i:nth-child(2){ background:#febc2e } .mock__bar i:nth-child(3){ background:#28c840 }
.mock__title { margin-left: 10px; font-size: .8rem; color: var(--text-mute); font-weight: 600; }
.mock__body { padding: 18px; display: grid; gap: 12px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(255,255,255,.02); }
.mock__row span { font-size: .9rem; color: var(--text-dim); font-weight: 600; }
.mock__row .on { font-size: .72rem; font-weight: 800; color: var(--good); display:inline-flex; align-items:center; gap:6px; }
.mock__row .on::before { content:''; width:7px; height:7px; border-radius:50%; background: var(--good); box-shadow:0 0 8px var(--good); }
.toggle { width: 40px; height: 22px; border-radius: 100px; background: rgba(52,211,153,.25); position: relative; }
.toggle::after { content:''; position:absolute; right:3px; top:3px; width:16px; height:16px; border-radius:50%; background: var(--good); }
.toggle.off { background: rgba(108,125,153,.25); }
.toggle.off::after { left:3px; right:auto; background: var(--text-mute); }
.hero__glow { position:absolute; inset:-40px; background: radial-gradient(closest-side, rgba(255,138,0,.18), transparent); filter: blur(20px); z-index:-1; }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--border-soft); background: var(--bg-2); }
.trustbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding: 22px 0; }
.trustbar__item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-weight: 600; font-size: .92rem; }
.trustbar__item svg { color: var(--brand); flex: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .18s ease, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border); background: var(--card-hover); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255, 181, 46, .12); color: var(--brand);
  border: 1px solid rgba(255, 181, 46, .2);
}
.card h3 { margin-bottom: 8px; color: var(--text); }
.card p { margin: 0; font-size: .96rem; }

.value .card__icon { background: rgba(59,130,246,.12); color: var(--accent); border-color: rgba(59,130,246,.25); }

/* ---------- Servers callout ---------- */
.servers { text-align: center; }
.servers__big { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 900; letter-spacing: -.04em; }
.servers__pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 28px 0 8px; }
.pill { padding: 8px 16px; border: 1px solid var(--border); border-radius: 100px; font-size: .88rem; color: var(--text-dim); font-weight: 600; background: rgba(255,255,255,.02); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 12px; }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 900; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1205; margin-bottom: 16px; box-shadow: var(--shadow-brand);
}
.step h3 { color: var(--text); }

/* ---------- Pricing ---------- */
.price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 30px 26px;
  position: relative;
}
.price.is-featured { border-color: var(--brand); box-shadow: var(--shadow-brand); background: linear-gradient(180deg, rgba(255,181,46,.06), var(--card)); }
.price__tag { position:absolute; top:-12px; right: 22px; background: linear-gradient(100deg,var(--brand),var(--brand-2)); color:#1a1205; font-size:.72rem; font-weight:800; padding:5px 12px; border-radius:100px; letter-spacing:.05em; text-transform:uppercase; }
.price h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 4px; }
.price__desc { font-size: .9rem; color: var(--text-mute); margin-bottom: 18px; }
.price__amount { font-size: 2.4rem; font-weight: 900; color: var(--text); letter-spacing: -.03em; }
.price__amount small { font-size: .95rem; font-weight: 600; color: var(--text-mute); }
.price__period { font-size: .85rem; color: var(--text-mute); margin-bottom: 22px; }
.price__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.price__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--text-dim); }
.price__list svg { color: var(--good); flex: none; margin-top: 3px; }
.price .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--text-mute); font-size: .9rem; margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 22px; font-size: 1.04rem; font-weight: 700; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit;
}
.faq__q svg { flex: none; transition: transform .25s ease; color: var(--brand); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 22px 20px; color: var(--text-dim); }
.faq__a-inner p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band__box {
  background: linear-gradient(120deg, rgba(255,138,0,.14), rgba(59,130,246,.12));
  border: 1px solid var(--border);
  border-radius: 22px; padding: 56px 30px;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-band .hero__cta { justify-content: center; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding: 56px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.footer__about p { font-size: .92rem; max-width: 320px; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-dim); font-weight: 500; font-size: .94rem; margin-bottom: 10px; }
.footer__col a:hover { color: var(--brand); }
.footer__disclaimer {
  border-top: 1px solid var(--border-soft); padding-top: 24px;
  font-size: .82rem; color: var(--text-mute); line-height: 1.7;
}
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 22px; font-size: .85rem; color: var(--text-mute); }

/* ---------- Mobile nav drawer ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px 20px 18px; transform: translateY(-130%); transition: transform .28s ease; z-index: 40;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border-soft); width: 100%; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__cta-desktop { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band__box { padding: 40px 22px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Skip link for a11y */
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color:#000; padding:10px 16px; border-radius:0 0 8px 0; z-index:100; font-weight:700; }
.skip:focus { left: 0; }

/* =========================================================
   Inner pages: page hero, breadcrumbs, prose, guide cards
   ========================================================= */

/* Compact hero for landing & article pages */
.page-hero { padding: 56px 0 26px; }
.page-hero .container { max-width: 860px; }
.page-hero h1 { margin: 10px 0 14px; }
.page-hero__lead { font-size: 1.18rem; color: var(--text-dim); max-width: 720px; }
.page-hero .hero__cta { margin-top: 26px; }

/* Breadcrumbs */
.breadcrumb { font-size: .85rem; color: var(--text-mute); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--text-mute); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--border); }
.breadcrumb .current { color: var(--text-dim); }

/* Article prose */
.prose { max-width: 800px; margin: 0 auto; font-size: 1.05rem; }
.prose > h2 { margin-top: 2.2em; font-size: 1.7rem; scroll-margin-top: 90px; }
.prose > h3 { margin-top: 1.6em; font-size: 1.25rem; color: var(--text); }
.prose p { color: var(--text-dim); }
.prose ul, .prose ol { color: var(--text-dim); padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--text); }
.prose a { color: var(--brand); font-weight: 600; }
.prose a:hover { color: var(--text); text-decoration: underline; }
.prose img { border-radius: var(--radius); border: 1px solid var(--border-soft); margin: 1.4em 0; }

/* Lead paragraph */
.prose .lead { font-size: 1.18rem; color: var(--text); }

/* Callout box */
.callout {
  border: 1px solid var(--border); border-left: 4px solid var(--brand);
  background: rgba(255, 181, 46, .06); border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 1.6em 0;
}
.callout p { margin: 0; color: var(--text-dim); }
.callout strong { color: var(--brand); }

/* Table of contents */
.toc { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 20px 22px; margin: 0 0 36px; }
.toc h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.1em; color: var(--text-dim); }
.toc a { color: var(--text-dim); font-weight: 600; }
.toc a:hover { color: var(--brand); }

/* Pretty content table */
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.prose th { color: var(--text); font-weight: 700; background: rgba(255,255,255,.02); }
.prose td { color: var(--text-dim); }

/* Guide/post cards (whole card clickable) */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: rgba(255,181,46,.1); border: 1px solid rgba(255,181,46,.2); padding: 4px 10px; border-radius: 100px; margin-bottom: 14px; }
.post-card h3 { color: var(--text); margin-bottom: 8px; }
.post-card h3 a { color: var(--text); }
.post-card:hover h3 a { color: var(--brand); }
.post-card p { font-size: .96rem; margin-bottom: 16px; }
.post-card .post-card__more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }

.post-meta { color: var(--text-mute); font-size: .88rem; margin-bottom: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Internal link list / related */
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.linklist a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--card); color: var(--text-dim); font-weight: 600; }
.linklist a:hover { border-color: var(--border); color: var(--text); }
.linklist a::after { content: "→"; color: var(--brand); }
