/* =========================================================
   Drakaris-it.com – Global Stylesheet
   Tema: Dark + Green accents
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #07100a;
  --bg-2: #0b1810;
  --surface: #101e15;
  --surface-2: #15291c;
  --surface-3: #1c3825;
  --border: rgba(46, 231, 135, 0.18);
  --border-strong: rgba(46, 231, 135, 0.45);

  --text: #e8f3ea;
  --text-muted: #9fb6a4;
  --text-soft: #c5d6c8;

  --green: #2ee787;
  --green-2: #19c46a;
  --green-3: #0e8d4d;
  --green-soft: #a5f3c5;
  --green-glow: rgba(46, 231, 135, 0.35);

  --danger: #ff6b6b;

  --max: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --transition: 220ms ease;

  --shadow-soft: 0 12px 40px -18px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(46, 231, 135, 0.35),
                 0 10px 40px -10px rgba(46, 231, 135, 0.45);

  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 231, 135, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(46, 231, 135, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover,
a:focus-visible {
  color: var(--green-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul,
ol {
  color: var(--text-soft);
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}
li {
  margin-bottom: 0.4em;
}
ul li::marker {
  color: var(--green);
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 2.5rem 0;
}

::selection {
  background: var(--green);
  color: #051a0e;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Headings ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  color: var(--green);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  text-shadow: 0 0 30px rgba(46, 231, 135, 0.25);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
  padding-bottom: 0.5rem;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--green-soft);
}
h4 {
  font-size: 1.15rem;
  color: var(--green-soft);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}
.section--tight {
  padding: 40px 0;
}
.section--lg {
  padding: 96px 0;
}

main {
  display: block;
}

.page-content {
  padding: 56px 0 80px;
}
.page-content article {
  background: linear-gradient(180deg, rgba(46, 231, 135, 0.04), transparent 40%),
              var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-soft);
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 70ch;
}

.muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 16, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand:hover {
  color: var(--green);
  text-decoration: none;
}
.brand img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(46, 231, 135, 0.35));
}

.nav {
  display: flex;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nav__list li {
  margin: 0;
}
.nav__link {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text-soft);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--green);
  background: rgba(46, 231, 135, 0.08);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile burger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--green);
  position: relative;
  display: block;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--green);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #04140a;
  box-shadow: 0 8px 24px -8px rgba(46, 231, 135, 0.55);
}
.btn--primary:hover {
  color: #04140a;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(46, 231, 135, 0.08);
  color: var(--green);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  color: #04140a;
  background: var(--green);
  border-color: var(--green);
}

.btn--lg {
  padding: 16px 30px;
  font-size: 1.05rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 24px;
}
.hero__title {
  margin: 0 0 32px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero__content h1 {
  margin-bottom: 18px;
}
.hero__content .lead {
  font-size: 1.18rem;
  margin-bottom: 28px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}
.hero__perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.95rem;
}
.hero__perks li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  aspect-ratio: 16 / 11;
  background: var(--surface);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Secondary banner block */
.promo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  isolation: isolate;
}
.promo__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.promo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,16,10,0.92) 0%, rgba(7,16,10,0.55) 60%, rgba(7,16,10,0.2) 100%);
  z-index: 1;
}
.promo__content {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 6vw, 72px);
  max-width: 640px;
}
.promo__content h2 {
  margin-bottom: 12px;
}
.promo__content p {
  color: var(--text);
  margin-bottom: 22px;
}

/* ---------- Cards / Features ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(46, 231, 135, 0.05), transparent 60%),
              var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  font-size: 0.97rem;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 231, 135, 0.12);
  color: var(--green);
  font-size: 1.4rem;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 1.6rem 0 2rem;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.97rem;
  color: var(--text-soft);
}
table caption {
  text-align: left;
  padding: 14px 18px;
  color: var(--green-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: rgba(46, 231, 135, 0.04);
}
thead th {
  text-align: left;
  font-weight: 700;
  color: var(--green);
  background: rgba(46, 231, 135, 0.08);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-strong);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(46, 231, 135, 0.08);
  vertical-align: top;
}
tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}
tbody tr:hover td {
  background: rgba(46, 231, 135, 0.06);
  color: var(--text);
}
tbody tr:last-child td {
  border-bottom: none;
}
table th:first-child,
table td:first-child {
  padding-left: 22px;
}
table th:last-child,
table td:last-child {
  padding-right: 22px;
}

/* ---------- FAQ Accordion ---------- */
.faq {
  display: grid;
  gap: 12px;
  margin: 1.5rem 0;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq__item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  font-size: 1.02rem;
  transition: color var(--transition), background var(--transition);
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary:hover {
  color: var(--green);
  background: rgba(46, 231, 135, 0.04);
}
.faq__item > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition);
}
.faq__item[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq__body {
  padding: 0 22px 20px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 16px;
}
.faq__body > *:last-child { margin-bottom: 0; }

/* ---------- Callout / Notice ---------- */
.callout {
  background: linear-gradient(135deg, rgba(46, 231, 135, 0.08), rgba(46, 231, 135, 0.02));
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.6rem 0;
  color: var(--text);
}
.callout strong { color: var(--green); }

/* ---------- TOC for legal pages ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 2rem;
}
.toc__title {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.toc ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-soft);
}
.toc li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(46, 231, 135, 0.04));
}
.site-footer__top {
  padding: 56px 0 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}
.site-footer__brand p {
  color: var(--text-muted);
  margin-top: 14px;
}
.site-footer__col {
  text-align: right;
}
.site-footer__col h4 {
  color: var(--green);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a {
  color: var(--text-soft);
  font-weight: 500;
}
.site-footer__col a:hover { color: var(--green); text-decoration: none; }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0;
  box-sizing: border-box;
  box-shadow: 0 0 14px var(--green-glow);
}

.site-footer__legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.site-footer__legal p { margin: 0; color: var(--text-muted); }

/* ---------- 404 page ---------- */
.error-page {
  text-align: center;
  padding: 40px 0 24px;
  max-width: 760px;
  margin: 0 auto;
}
.error-page__code {
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 8px;
  color: transparent;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-3) 60%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -0.04em;
  text-shadow: 0 0 60px rgba(46, 231, 135, 0.35);
  filter: drop-shadow(0 8px 30px rgba(46, 231, 135, 0.25));
}
.error-page__title {
  margin: 0 0 18px;
  text-align: center;
}
.error-page__title::after { display: none; }
.error-page__lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 56ch;
  margin: 0 auto 32px;
}
.error-page__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.error-page__links {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 8px;
}
.error-page__links h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  text-align: center;
}
.error-page__links h2::after { display: none; }
.error-page__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
.error-page__links li { margin: 0; }
.error-page__links a {
  color: var(--text-soft);
  font-weight: 500;
}
.error-page__links a:hover { color: var(--green); text-decoration: none; }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 9; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         background: var(--bg-2); border-bottom: 1px solid var(--border);
         padding: 14px 24px; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { padding: 10px 14px; font-size: 0.9rem; }
  .header-actions .btn--ghost { display: none; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 48px 0; }
  .page-content { padding: 36px 0 56px; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}
