/* Bytwatch marketing site — shared stylesheet
   Design system: dark-native trading-terminal aesthetic, brand teal on near-black.
   No build step. No JS required for any core interaction. */

:root {
  --bg: #0a0a0c;
  --bg-elevated: #131316;
  --bg-elevated-2: #1b1b1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f2f3f2;
  --ink-dim: #a6abb0;
  --ink-faint: #6b7075;
  --accent: #00ddaa;
  --accent-ink: #06251e;
  --accent-soft: rgba(0, 221, 170, 0.12);
  --accent-line: rgba(0, 221, 170, 0.35);
  --warn: #e8a33d;
  --warn-soft: rgba(232, 163, 61, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans SC",
    "Noto Sans JP", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", "Noto Sans Mono", Menlo, monospace;

  --measure: 65ch;
  --container: 1120px;
  --doc-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.doc {
  width: 100%;
  max-width: var(--doc-width);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- eyebrow / labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 7px 14px;
}

.eyebrow.muted {
  color: var(--ink-dim);
  background: transparent;
  border-color: var(--line-strong);
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-dim);
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

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

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

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

.lang-menu summary::marker {
  content: "";
}

.lang-menu summary:hover,
.lang-menu[open] summary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg-elevated);
}

.lang-menu-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 132px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.lang-menu-list a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-menu-list a:hover {
  color: var(--ink);
  background: var(--bg-elevated-2);
}

.lang-menu-list a[aria-current="true"] {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #1ee9bb;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

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

.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: 96px 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero-copy {
  animation: rise 0.7s ease both;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.4vw + 1rem, 4rem);
  line-height: 1.06;
  margin-top: 22px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero h1 .light {
  font-weight: 200;
  color: var(--ink);
}

.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.hero-link {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-link:hover {
  color: var(--accent);
}

.hero-mark {
  justify-self: end;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: rise 0.9s ease 0.1s both, glow 5s ease-in-out infinite;
}

.hero-mark-logo {
  width: 100%;
  height: auto;
}

.hero-mark-tagline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
}

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

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(0, 221, 170, 0));
  }
  50% {
    filter: drop-shadow(0 0 34px rgba(0, 221, 170, 0.28));
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    justify-self: start;
    width: 100%;
    max-width: 200px;
    order: -1;
  }
}

/* ---------- sections ---------- */

section {
  padding-block: 76px;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  border-top: none;
}

.section-head {
  max-width: 58ch;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.375rem);
  margin-top: 14px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 1.0625rem;
}

/* ---------- feature cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}

.card .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h3 {
  margin-top: 12px;
  font-size: 1.25rem;
}

.card p {
  margin-top: 10px;
  color: var(--ink-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card .step {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ---------- product screenshots ---------- */

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .shot-row {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
    margin-top: 28px;
  }
}

.shot {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 14px 16px 18px;
  font-size: 0.8125rem;
  color: var(--ink-dim);
  text-align: center;
}

.shot-note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- principles list ---------- */

.principle-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
}

@media (max-width: 760px) {
  .principle-list {
    grid-template-columns: 1fr;
  }
}

.principle-list li {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.principle-list .mark {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  padding-top: 2px;
}

.principle-list h4 {
  font-size: 1rem;
  font-weight: 700;
}

.principle-list p {
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- plans ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan.featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), transparent 60%);
}

.plan-name {
  font-size: 1.0625rem;
  font-weight: 800;
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--ink-dim);
}

.plan ul li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.plan ul li::before {
  content: "—";
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-note {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: var(--measure);
}

.faq details {
  border-top: 1px solid var(--line);
  padding-block: 18px;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
  font-size: 1rem;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .a {
  margin-top: 12px;
  color: var(--ink-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.footer-brand img {
  height: 24px;
}

.footer-brand p {
  color: var(--ink-faint);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h5 {
  margin: 0 0 14px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ---------- status badge ---------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 9px 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 221, 170, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 221, 170, 0);
  }
}

.status-dot {
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* ---------- legal / doc pages ---------- */

.doc-header {
  padding-block: 64px 32px;
  border-top: none;
}

.doc-header .eyebrow {
  margin-bottom: 18px;
}

.doc-header h1 {
  font-size: clamp(2rem, 2.6vw + 1rem, 2.75rem);
}

.doc-header .meta {
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.doc-body {
  padding-block: 8px 80px;
  border-top: none;
}

.doc-body h2 {
  font-size: 1.25rem;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doc-body section:first-child h2,
.doc-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-body p {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.doc-body ul,
.doc-body ol {
  margin-top: 14px;
  padding-left: 22px;
  color: var(--ink-dim);
  font-size: 0.9375rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-body strong {
  color: var(--ink);
}

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

.callout {
  margin-top: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.callout.warn {
  border-left-color: var(--warn);
}

.callout p {
  margin-top: 0;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

.callout p + p {
  margin-top: 10px;
}

.doc-toc {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.doc-toc a {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  text-decoration: none;
  font-family: var(--font-mono);
}

.doc-toc a:hover {
  color: var(--accent);
}

/* ---------- misc ---------- */

.center {
  text-align: center;
}

.mt-lg {
  margin-top: 44px;
}

.subtle-cta {
  margin-top: 60px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.subtle-cta h3 {
  font-size: 1.125rem;
}

.subtle-cta p {
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

.subtle-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
