:root {
  --bg: #0b0f1a;
  --bg-alt: #0f172a;
  --panel: rgba(17, 24, 39, 0.7);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.12);
  --green: #22c55e;
  --blue: #0ea5e9;
  --neon-green: 0 0 15px rgba(34, 197, 94, 0.4);
  --neon-blue: 0 0 15px rgba(14, 165, 233, 0.4);
  --glass: blur(16px);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --r: 12px;
  --r2: 24px;
  --c: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(34, 197, 94, 0.1) 0px, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--blue);
}

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

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav__link.is-active {
  color: var(--blue);
  background: rgba(14, 165, 233, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 10px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 2px 0;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #0b0f1a;
  border: none;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
  color: #0b0f1a;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--muted);
}

/* Base Layout */
main {
  padding: 40px 0 80px;
}

.section {
  padding: 40px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards & Glassmorphism */
.card {
  background: var(--panel);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  border-color: rgba(14, 165, 233, 0.3);
}

.card__body {
  padding: 30px;
}

.card__media {
  overflow: hidden;
}

.card__media img {
  width: 100%;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.card:hover .card__media img {
  transform: scale(1.05);
}

/* Typography */
.h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(to bottom right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  /* Prevent descender clipping */
  overflow-wrap: break-word;
  /* Ensure long words break */
}

@media (min-width: 768px) {
  .h1 {
    font-size: 3.5rem;
  }
}

.h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.badge {
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--blue);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: var(--glass);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.table th,
.table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.table th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rank {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--blue);
}

/* FAQ */
.faq {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-q {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
}

.faq-q .ico {
  width: 32px;
  height: 32px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: transform 0.3s ease;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-a__inner {
  padding: 0 24px 24px;
  color: var(--muted);
}

.faq-item.is-open .faq-a {
  max-height: 500px;
}

.faq-item.is-open .ico {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}

/* Forms */
.form {
  display: grid;
  gap: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: #060912;
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  gap: 20px;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer__brand p {
  margin: 10px 0;
}

.footer__title {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__list a {
  color: var(--muted);
}

.footer__list a:hover {
  color: var(--blue);
}

.footer__bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.cookie-banner__inner {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  max-width: 800px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal__header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__body {
  padding: 24px;
}

.modal__footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.toggle-row:last-child {
  border-bottom: none;
}

/* Switches & Toggles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__ui {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
}

.switch__ui:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.switch__ui {
  background-color: var(--blue);
}

input:checked+.switch__ui:before {
  transform: translateX(20px);
}

/* Mobile Nav */
@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    font-size: 1.1rem;
    padding: 12px;
  }

  .header__inner .btn {
    display: none;
  }

  .nav .btn {
    display: flex;
    margin-top: 12px;
  }
}

/* Steps (How to Register) */
.steps {
  display: grid;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.step__n {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: #0b0f1a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .h1 {
    font-size: 2.25rem;
  }

  .card__body {
    padding: 20px;
  }

  .section {
    padding: 30px 0;
  }
}

/* Global Hidden Helper */
[hidden] {
  display: none !important;
}