:root {
  --bg: #131016;
  --bg-2: #0e0b12;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.05);
  --text: #ece9f1;
  --muted: #9d95a8;
  --muted-2: #6f6879;
  --accent: #ff6a4d;
  --accent-hi: #ff8a63;
  --accent-soft: rgba(255, 106, 77, 0.12);
  --accent-line: rgba(255, 106, 77, 0.42);
  --stroke: rgba(236, 233, 241, 0.1);
  --stroke-strong: rgba(236, 233, 241, 0.17);
  --radius: 16px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --font: 'Instrument Sans', system-ui, sans-serif;
  --display: 'Syne', 'Instrument Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Warm graphite base — no corner glows. One soft top vignette + fine grain. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, #17131d 0%, var(--bg) 34%, var(--bg-2) 100%);
}

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  max-width: 1160px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--accent-hi), var(--accent));
  box-shadow: 0 6px 18px rgba(255, 106, 77, 0.32);
  position: relative;
}

.mark::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 2.5px solid #140f14;
  border-radius: 3px;
}

.mark::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #140f14;
  z-index: 2;
}

.name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
}

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

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

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

.language-menu {
  position: relative;
  z-index: 20;
}

.language-menu summary {
  min-width: 48px;
  padding: 7px 11px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel-2);
  cursor: pointer;
  list-style: none;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: '⌄';
  margin-left: 6px;
  color: var(--accent);
}

.language-menu[open] summary {
  border-color: var(--accent-line);
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 7px;
  display: grid;
  border: 1px solid var(--stroke-strong);
  border-radius: 14px;
  background: #191420;
  box-shadow: var(--shadow);
}

.language-options a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.language-options a:hover,
.language-options a[aria-current='page'] {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-cta {
  color: var(--accent) !important;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
}

.nav-cta:hover {
  background: var(--accent-soft);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5vw 84px;
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: rise 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

h1.headline {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-bottom: 20px;
}

h1.headline em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  max-width: 33rem;
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.96rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--accent);
  color: #1a0d09;
  box-shadow: 0 10px 26px rgba(255, 106, 77, 0.32);
}

.btn.primary:hover {
  background: var(--accent-hi);
  box-shadow: 0 12px 32px rgba(255, 106, 77, 0.42);
}

.btn.ghost {
  border: 1px solid var(--stroke-strong);
  color: var(--text);
  background: var(--panel-2);
}

.btn.ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* Hero visual — real product shot floating over a hinted desktop */
.hero-visual {
  position: relative;
  z-index: 1;
  animation: rise 0.8s ease 0.1s both;
}

.hero-stage {
  position: relative;
  padding: 26px 10px 34px;
}

.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(255, 106, 77, 0.1), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--stroke);
}

.hero-shot {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow);
  z-index: 2;
}

.hero-tag {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  background: #1c1622;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-tag::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 3px;
}

/* Crisp HTML recreation of the app window — vector-sharp, on-brand */
.app-mock {
  position: relative;
  z-index: 2;
  border-radius: 14px;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, #1b1620, #161119);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.82rem;
}

.app-mock-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}

.app-mock-bar .app-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--accent-hi), var(--accent));
  box-shadow: 0 3px 10px rgba(255, 106, 77, 0.4);
}

.app-mock-bar .app-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
}

.app-mock-bar .app-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}

.app-mock-bar .app-actions i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1px solid var(--stroke-strong);
}

.app-mock-body {
  padding: 18px 16px;
  display: grid;
  gap: 14px;
}

.app-mock .msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  line-height: 1.5;
}

.app-mock .msg.user {
  margin-left: auto;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: #ffd6c9;
  border-bottom-right-radius: 4px;
}

.app-mock .msg.ai {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  color: var(--muted);
  border-bottom-left-radius: 4px;
  display: grid;
  gap: 5px;
}

.app-mock .ai-h {
  color: var(--text);
  font-weight: 700;
  font-size: 0.84rem;
  margin-top: 3px;
}

.app-mock .ai-h:first-child {
  margin-top: 0;
}

.app-mock .msg.ai p {
  margin: 0;
}

.app-mock .msg.ai code {
  background: var(--panel-2);
  color: #ffb9a6;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.84em;
}

.app-mock .msg.ai pre {
  margin: 3px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #100c14;
  border: 1px solid var(--stroke);
  font-family: ui-monospace, monospace;
  font-size: 0.82em;
  color: #ecd6ca;
  overflow-x: auto;
}

.app-mock-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-2);
}

.app-mock-input span {
  flex: 1;
}

.app-mock-input .app-send {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #1a0d09;
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  cursor: default;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 76px 6vw;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  line-height: 1.1;
}

.section-lead {
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.02rem;
  margin-bottom: 34px;
}

/* Providers — thin editorial band, breaks the section rhythm */
.providers {
  max-width: none;
  padding: 34px 6vw;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.012);
}

.providers .band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px 34px;
  flex-wrap: wrap;
}

.providers .band-label {
  color: var(--muted-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

.provider-list span {
  color: var(--accent);
}

/* How it works — numbered, asymmetric */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps li {
  display: grid;
  gap: 8px;
  padding: 26px 22px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--panel);
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: var(--accent-soft);
  margin-bottom: 4px;
}

.steps strong {
  font-size: 1.05rem;
}

.steps span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Product tour */
.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: stretch;
}

.product-shot {
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  background: #14101a;
}

.product-shot figcaption {
  padding: 13px 8px 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Pricing comparison table */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare th,
.compare td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.95rem;
}

.compare thead th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.02);
}

.compare thead th:first-child {
  color: var(--muted);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.85rem;
}

.compare thead th.pro-col {
  color: var(--accent);
  border-left: 1px solid var(--accent-line);
  border-right: 1px solid var(--accent-line);
  border-top: 1px solid var(--accent-line);
}

.compare td.pro-col {
  border-left: 1px solid var(--accent-line);
  border-right: 1px solid var(--accent-line);
  background: var(--accent-soft);
}

.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare td.feature {
  color: var(--muted);
}

.compare .yes {
  color: var(--accent);
  font-weight: 700;
}

.compare .no {
  color: var(--muted-2);
}

.price-note {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Author / human note */
.author {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 6vw 76px;
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--panel);
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--accent-hi), var(--accent));
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: #1a0d09;
  font-size: 1.3rem;
}

.author-card p {
  color: var(--muted);
  max-width: 46rem;
}

.author-card p strong {
  color: var(--text);
  font-weight: 600;
}

.author-card .sign {
  margin-top: 12px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
}

.download-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.download-meta a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

.faq-grid details {
  padding: 18px 20px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.15s;
}

.faq-grid details[open] {
  border-color: var(--accent-line);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-grid details[open] summary::after {
  content: '–';
}

.faq-grid p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 48rem;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 6px;
}

kbd {
  font-family: var(--font);
  font-size: 0.85em;
  font-weight: 600;
  padding: 2px 8px;
  border: 1px solid var(--stroke-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 6vw 52px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--stroke);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

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

/* Legal pages */
.legal {
  width: min(760px, 88vw);
  margin: 0 auto;
  padding: 56px 0 96px;
}

.legal-back {
  color: var(--accent);
  text-decoration: none;
}

.legal h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 32px 0 8px;
  letter-spacing: -0.03em;
}

.legal-date {
  color: var(--muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

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

.legal a {
  color: var(--accent);
}

/* 404 */
.error-page {
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 80vh;
}

.error-card {
  width: min(680px, 100%);
  padding: clamp(30px, 7vw, 70px);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.error-code {
  margin-top: 44px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.error-card h1 {
  margin: 8px 0 14px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.error-card > p:not(.error-code) {
  max-width: 30rem;
  color: var(--muted);
}

.error-card .cta-row {
  margin: 28px 0 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy {
    max-width: 44rem;
  }

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

  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-shot img,
  .product-shot.wide img {
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 640px) {
  .top {
    padding-inline: 5vw;
  }
  nav {
    gap: 10px;
  }
  nav > a:not(.nav-cta) {
    display: none;
  }
  .language-options {
    position: fixed;
    top: 72px;
    right: 5vw;
    left: 5vw;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding-top: 30px;
  }
  .author-card {
    grid-template-columns: 1fr;
  }
  .compare th,
  .compare td {
    padding: 13px 14px;
    font-size: 0.88rem;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

:where(a, summary, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
