﻿:root {
  color-scheme: dark;
  --bg: #070c16;
  --panel: rgba(12, 20, 35, 0.86);
  --panel-strong: #111b2d;
  --line: rgba(125, 249, 255, 0.24);
  --text: #eef7ff;
  --muted: #9eb0c2;
  --cyan: #41f8ff;
  --pink: #ff3cf4;
  --green: #5dffb0;
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(65, 248, 255, 0.16), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(255, 60, 244, 0.16), transparent 28%),
    linear-gradient(180deg, #070c16 0%, #0a1020 44%, #070c16 100%);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(65, 248, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 248, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 74%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(7, 12, 22, 0.82);
  border-bottom: 1px solid rgba(65, 248, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(65, 248, 255, 0.22);
}

.top-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a:hover {
  color: var(--cyan);
}

.language-switcher {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.language-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
}

.language-button.active {
  background: rgba(65, 248, 255, 0.16);
  color: var(--cyan);
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 36px;
  min-height: 560px;
  padding: 76px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 0 32px rgba(65, 248, 255, 0.2);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h3 {
  margin-bottom: 10px;
  color: var(--green);
}

.hero-text,
.section-heading p,
.guide p,
.legal-section p,
.site-footer {
  color: var(--muted);
}

.hero-text {
  max-width: 650px;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions,
.toolbar,
.segmented,
.site-footer {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #04101d;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(65, 248, 255, 0.2);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.button.ghost {
  background: transparent;
  border-color: rgba(158, 176, 194, 0.2);
  color: var(--muted);
}

.button.ghost:hover {
  border-color: rgba(255, 60, 244, 0.42);
  color: var(--pink);
}

.hero-panel,
.workspace,
.results,
.comparison,
.schedule-section,
.guide article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 30px;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 8px, rgba(65, 248, 255, 0.05) 9px 10px);
  pointer-events: none;
}

.panel-label {
  position: relative;
  color: var(--muted);
}

.hero-panel strong {
  position: relative;
  display: block;
  margin-top: 54px;
  color: var(--cyan);
  font-size: 3rem;
}

.hero-panel span {
  position: relative;
  color: var(--green);
}

.ad-slot {
  display: grid;
  place-items: center;
  gap: 4px;
  margin: 12px 0 34px;
  min-height: 86px;
  border: 1px dashed rgba(158, 176, 194, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-align: center;
}

.ad-slot span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}


.ad-slot-pending {
  display: none;
}
.ad-slot p {
  margin: 0;
  font-size: 0.9rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.workspace,
.results,
.comparison,
.schedule-section {
  padding: clamp(18px, 3vw, 28px);
}

.card-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

fieldset {
  min-width: 230px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 7px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(158, 176, 194, 0.22);
  border-radius: 8px;
  background: rgba(5, 9, 18, 0.72);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  font-size: 16px;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(65, 248, 255, 0.12);
}

.toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.toolbar > label {
  min-width: 180px;
  flex: 1;
}

.privacy-note {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.segmented {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented label {
  display: block;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  padding: 12px 14px;
  color: var(--muted);
}

.segmented input:checked + span {
  background: rgba(65, 248, 255, 0.14);
  color: var(--cyan);
}

.cards-table-wrap,
.schedule-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(158, 176, 194, 0.14);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  color: var(--text);
}

.remove-card {
  border: 1px solid rgba(255, 60, 244, 0.42);
  border-radius: 8px;
  background: transparent;
  color: var(--pink);
  cursor: pointer;
  padding: 8px 10px;
}

.results {
  position: sticky;
  top: 90px;
}

.metrics {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.metrics div,
.compare-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(65, 248, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.metrics span,
.compare-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.metrics strong,
.compare-grid strong {
  color: var(--cyan);
  font-size: 1.5rem;
}

.insight {
  margin-bottom: 18px;
  padding: 14px;
  border-left: 3px solid var(--green);
  background: rgba(93, 255, 176, 0.08);
  color: #dfffee;
  line-height: 1.55;
}

.statement-box {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.075);
  color: #fff6d9;
}

.statement-title {
  margin-bottom: 8px;
  color: var(--warning);
  font-weight: 900;
}

.statement-box p {
  color: #eadba8;
  line-height: 1.55;
}

.statement-box dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.statement-box dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 209, 102, 0.16);
}

.statement-box dt {
  color: #d7c78b;
}

.statement-box dd {
  margin: 0;
  color: var(--warning);
  font-weight: 900;
  text-align: right;
}

.comparison,
.schedule-section,
.guide,
.legal-section {
  margin-top: 22px;
}

.comparison {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.compare-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ad-slot-inline {
  margin-top: 28px;
}

.guide,
.legal-section {
  padding: 34px 0 48px;
}

.guide article,
.legal-section article {
  padding: 20px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.legal-section article {
  border: 1px solid rgba(158, 176, 194, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.legal-section p {
  line-height: 1.7;
}

.legal-section code {
  color: var(--cyan);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cyan);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(65, 248, 255, 0.14);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .tool-layout,
  .comparison {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .results {
    position: static;
  }

  .card-form,
  .compare-grid,
  .guide-grid,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher {
    width: 100%;
  }

  .language-button {
    flex: 1;
  }

  h1 {
    font-size: 2.85rem;
    line-height: 0.96;
  }

  .card-form,
  .compare-grid,
  .guide-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 210px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .toolbar {
    align-items: stretch;
  }

  .segmented {
    width: 100%;
  }

  .segmented label {
    flex: 1;
    text-align: center;
  }

  th,
  td {
    padding: 12px 8px;
  }

  .statement-box dl div {
    align-items: flex-start;
    flex-direction: column;
  }

  .statement-box dd {
    text-align: left;
  }
}
