:root {
  --ink: #0d0f14;
  --paper: #f0f3f8;
  --accent: #2a6dd9;
  --accent2: #1a4fa8;
  --gold: #7aaef5;
  --muted: #707a8a;
  --border: rgba(240, 243, 248, 0.1);
  --card-bg: rgba(240, 243, 248, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 243, 248, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 243, 248, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.glow {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(42, 109, 217, 0.1) 0%,
    transparent 65%
  );
  pointer-events: none;
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.6;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAV */
nav#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: rgba(240, 243, 248, 0.92);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

.nav-tools-trigger {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.45);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.nav-tools-trigger:hover {
  color: rgba(240, 243, 248, 0.88);
}

.nav-tools-trigger .chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: transform 0.25s;
}

.nav-tools-trigger.open .chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(64px + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(680px, 95vw);
  background: rgba(13, 16, 23, 0.98);
  border: 1px solid rgba(42, 109, 217, 0.2);
  border-radius: 10px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 400;
}

.nav-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0.875rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.dd-item:hover {
  background: rgba(42, 109, 217, 0.08);
}

.dd-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dd-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dd-info {
  flex: 1;
  min-width: 0;
}

.dd-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(240, 243, 248, 0.85);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd-desc {
  font-size: 0.75rem;
  color: rgba(240, 243, 248, 0.35);
  display: block;
  margin-top: 0.1rem;
}

.dd-footer {
  grid-column: 1/-1;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.dd-all-btn {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 4px;
  border: 1px solid rgba(42, 109, 217, 0.25);
  transition: all 0.2s;
}

.dd-all-btn:hover {
  background: rgba(42, 109, 217, 0.1);
  border-color: rgba(42, 109, 217, 0.5);
}

.dd-all-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.btn-login {
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border-radius: 3px;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-login:hover {
  color: rgba(240, 243, 248, 0.9);
}

.btn-register {
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: none;
  cursor: pointer;
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.1s;
}

.btn-register:hover {
  background: #3a7de9;
}

.btn-register:active {
  transform: scale(0.97);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
  flex-shrink: 0;
}

.menu-btn:hover {
  border-color: rgba(42, 109, 217, 0.4);
  background: rgba(42, 109, 217, 0.06);
}

.menu-btn-inner {
  width: 18px;
  height: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.bar {
  display: block;
  height: 1.5px;
  background: rgba(240, 243, 248, 0.7);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    width 0.3s ease;
  transform-origin: center;
}

.bar:nth-child(1) {
  width: 18px;
}

.bar:nth-child(2) {
  width: 12px;
}

.bar:nth-child(3) {
  width: 18px;
}

.menu-btn.open .bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-btn.open .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}

.menu-btn.open .bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* DRAWER */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 280;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(2px);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100dvh;
  background: #0e1118;
  border-left: 1px solid rgba(42, 109, 217, 0.18);
  z-index: 290;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #0e1118;
  z-index: 1;
}

.drawer-logo {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: rgba(240, 243, 248, 0.85);
  text-decoration: none;
}

.drawer-logo span {
  color: var(--accent);
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 243, 248, 0.5);
  transition: all 0.2s;
}

.drawer-close:hover {
  border-color: rgba(240, 243, 248, 0.3);
  color: rgba(240, 243, 248, 0.9);
}

.drawer-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.drawer-auth {
  display: flex;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.drawer-auth a {
  flex: 1;
  text-align: center;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
}

.d-login {
  color: rgba(240, 243, 248, 0.55);
  border: 1px solid var(--border);
}

.d-login:hover {
  color: rgba(240, 243, 248, 0.88);
  border-color: rgba(240, 243, 248, 0.25);
}

.d-register {
  color: #fff;
  background: var(--accent);
}

.d-register:hover {
  background: #3a7de9;
}

.drawer-section-label {
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.22);
  padding: 1.1rem 1.25rem 0.5rem;
}

.drawer-tools-list {
  padding: 0 0.75rem 0.5rem;
}

.drawer-tool-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.drawer-tool-item:hover {
  background: rgba(42, 109, 217, 0.07);
}

.dt-icon {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dt-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dt-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(240, 243, 248, 0.8);
  flex: 1;
}

.dt-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: rgba(42, 109, 217, 0.1);
  color: var(--gold);
  border: 1px solid rgba(42, 109, 217, 0.18);
  flex-shrink: 0;
}

.drawer-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 1.25rem 1.5rem;
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid rgba(42, 109, 217, 0.22);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s;
}

.drawer-all-link:hover {
  background: rgba(42, 109, 217, 0.08);
  border-color: rgba(42, 109, 217, 0.45);
}

.drawer-all-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.mono-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s ease forwards;
}

.mono-tag::before,
.mono-tag::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  color: rgba(240, 243, 248, 0.45);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 auto 2.75rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.3s ease forwards;
}

.hero-badges {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s ease forwards;
}

.badge {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: rgba(240, 243, 248, 0.45);
  background: var(--card-bg);
}

.badge.accent {
  border-color: rgba(42, 109, 217, 0.35);
  color: var(--gold);
  background: rgba(42, 109, 217, 0.08);
}

.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.6s 0.55s ease forwards;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.35);
  display: block;
  margin-top: 0.25rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.9s ease forwards;
}

.hero-scroll span {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.25);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(42, 109, 217, 0.5), transparent);
  animation: scrollAnim 1.8s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
}

/* SECTIONS */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: 0.9rem;
  color: rgba(240, 243, 248, 0.4);
  font-weight: 300;
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 3rem;
}

/* TOOLS GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.tool-card {
  background: var(--ink);
  padding: 2rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.tool-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tool-card:hover {
  background: rgba(42, 109, 217, 0.05);
}

.tool-card:hover::after {
  transform: scaleX(1);
}

.tool-card:hover .tool-arrow {
  transform: translate(4px, -4px);
  opacity: 1;
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tool-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-arrow {
  opacity: 0.3;
  transition: all 0.25s;
}

.tool-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--paper);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.tool-name {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tool-desc {
  font-size: 0.875rem;
  color: rgba(240, 243, 248, 0.45);
  font-weight: 300;
  line-height: 1.6;
  flex: 1;
}

.tool-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tool-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  background: rgba(42, 109, 217, 0.1);
  color: var(--gold);
  border: 1px solid rgba(42, 109, 217, 0.2);
}

.tool-tag.free {
  background: rgba(34, 197, 94, 0.08);
  color: #6ee7a0;
  border-color: rgba(34, 197, 94, 0.2);
}

/* HOW IT WORKS */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.how-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
}

.how-num {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(42, 109, 217, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.how-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.how-desc {
  font-size: 0.85rem;
  color: rgba(240, 243, 248, 0.4);
  line-height: 1.6;
}

/* DIVIDER / FOOTER */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

footer {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: rgba(240, 243, 248, 0.6);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-logo span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(240, 243, 248, 0.7);
}

.footer-copy {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(240, 243, 248, 0.2);
  width: 100%;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: min(680px, calc(100vw - 2rem));
  background: rgba(18, 21, 28, 0.97);
  border: 1px solid rgba(42, 109, 217, 0.3);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  transform: translateX(-50%) translateY(16px);
}

#cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.cookie-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
}

.cookie-text strong {
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--paper);
}

.cookie-text p {
  font-size: 0.78rem;
  color: rgba(240, 243, 248, 0.45);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-cookie {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cookie.accept {
  background: var(--accent);
  color: #fff;
}

.btn-cookie.accept:hover {
  background: var(--accent2);
}

.btn-cookie.reject {
  background: transparent;
  border: 1px solid rgba(240, 243, 248, 0.15);
  color: rgba(240, 243, 248, 0.4);
}

.btn-cookie.reject:hover {
  border-color: rgba(240, 243, 248, 0.3);
  color: rgba(240, 243, 248, 0.7);
}

/* COOKIE MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #13161e;
  border: 1px solid rgba(42, 109, 217, 0.25);
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-box h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-box h2 em {
  color: var(--accent);
  font-style: italic;
}

.modal-box > p {
  font-size: 0.85rem;
  color: rgba(240, 243, 248, 0.45);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.cookie-option-info strong {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.cookie-option-info small {
  font-size: 0.78rem;
  color: rgba(240, 243, 248, 0.35);
  line-height: 1.5;
}

.toggle-wrap {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(240, 243, 248, 0.12);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: rgba(240, 243, 248, 0.5);
  border-radius: 50%;
  transition:
    transform 0.2s,
    background 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: #fff;
}

.toggle input:disabled + .toggle-slider {
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.btn-modal {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 120px;
}

.btn-modal.primary {
  background: var(--accent);
  color: #fff;
}

.btn-modal.primary:hover {
  background: var(--accent2);
}

.btn-modal.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: rgba(240, 243, 248, 0.5);
}

.btn-modal.secondary:hover {
  border-color: rgba(240, 243, 248, 0.3);
  color: rgba(240, 243, 248, 0.8);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .nav-tools-trigger,
  .btn-login,
  .btn-register {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

@media (max-width: 700px) {
  nav#main-nav {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 6rem 1.25rem 4rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  section {
    padding: 4rem 1.25rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: row;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1rem;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
  }

  #cookie-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .btn-cookie {
    flex: 1;
    text-align: center;
  }
}
