:root {
  --bg: #07070c;
  --bg-alt: #0e0e16;
  --surface: #14141f;
  --surface-2: #1a1a28;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f2f2f7;
  --text-muted: #8b8b9e;
  --magenta: #ff006e;
  --cyan: #00f5d4;
  --violet: #8338ec;
  --gradient: linear-gradient(135deg, var(--magenta) 0%, var(--violet) 50%, var(--cyan) 100%);
  --gradient-text: linear-gradient(90deg, var(--magenta), var(--cyan));
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

address {
  font-style: normal;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Grid bg */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow--1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 0, 110, 0.12);
  top: -150px;
  right: -100px;
}

.glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 245, 212, 0.08);
  bottom: 10%;
  left: -100px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 7, 12, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.header__actions {
  display: flex;
  gap: 0.65rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle span {
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(255, 0, 110, 0.35);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.92rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}

.hero__wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 212, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 .grad {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Editor mock */
.editor-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.editor-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.editor-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.editor-mock__preview {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1030 0%, #0a2040 50%, #102818 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-mock__preview::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(0, 245, 212, 0.4);
  border-radius: 4px;
}

.editor-mock__label {
  position: relative;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}

.editor-mock__timeline {
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.timeline-track {
  display: flex;
  gap: 3px;
  height: 28px;
  align-items: flex-end;
}

.timeline-clip {
  flex: 1;
  border-radius: 3px;
  min-height: 12px;
}

.timeline-clip--1 {
  background: linear-gradient(90deg, var(--magenta), var(--violet));
  height: 24px;
}

.timeline-clip--2 {
  background: rgba(0, 245, 212, 0.5);
  height: 18px;
  flex: 0.6;
}

.timeline-clip--3 {
  background: rgba(131, 56, 236, 0.5);
  height: 20px;
  flex: 0.8;
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  border-block: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-alt);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 560px;
  margin-bottom: 3rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2,
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-head p,
.page-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.bento-card:hover {
  border-color: rgba(255, 0, 110, 0.35);
  transform: translateY(-3px);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--tall {
  grid-row: span 2;
}

.bento-card__icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bento-card__visual {
  margin-top: 1rem;
  height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2), rgba(255, 0, 110, 0.15));
}

/* Tool cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tool-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tool-card__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stat__val {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Preview links */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.link-card:hover {
  border-color: var(--cyan);
}

.link-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.link-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.link-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--magenta);
}

/* Page head */
.page-head {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.split__box {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-2), rgba(255, 0, 110, 0.1));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.5;
}

.list-check {
  list-style: none;
  margin: 1.25rem 0;
}

.list-check li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.list-check li::before {
  content: "→";
  color: var(--cyan);
  font-weight: 700;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
}

.contact-block h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--magenta);
  margin-bottom: 0.35rem;
}

.contact-block a,
.contact-block p {
  font-size: 0.95rem;
}

.contact-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--magenta);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* CTA */
.cta-box {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer .logo {
  margin-bottom: 0.75rem;
}

.footer__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer__col a,
.footer__col address {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

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

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer__bar p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 1.25rem;
}

.footer__legal a {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__legal a:hover {
  color: var(--text);
}

/* Legal */
.legal-page {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.legal-inner {
  max-width: 700px;
  margin-inline: auto;
}

.legal-inner h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.legal-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-inner h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
}

.legal-inner p,
.legal-inner li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.legal-inner ul {
  padding-left: 1.2rem;
}

/* Cookie */
.cookie-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  width: min(calc(100% - 2rem), 640px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid;
  border-image: var(--gradient) 1;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}

.cookie-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-bar p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.cookie-bar a {
  color: var(--cyan);
}

.cookie-bar__btns {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav--open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero__wrap,
  .split,
  .contact-layout,
  .footer__grid {
    grid-template-columns: 1fr;
  }

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

  .bento-card--wide,
  .bento-card--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .tool-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }

  .header__actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header__actions--show {
    display: flex;
    position: fixed;
    top: calc(var(--header-h) + 180px);
    left: 0;
    right: 0;
    padding: 0 1.5rem;
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cookie-bar {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(120%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .cookie-bar.show {
    transform: translateY(0);
  }

  .cookie-bar__row {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-bar__btns {
    flex-direction: column;
  }
}
