/*
Theme Name: OnSFX
Theme URI: https://onsfx.lat
Author: OnSFX
Description: Официальная тёмная тема портала закрытой beta OnSFX.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.2
Text Domain: onsfx
*/

:root {
  --onsfx-ink: #f6f8fc;
  --onsfx-muted: #8b97ab;
  --onsfx-dim: #566174;
  --onsfx-line: #202c3d;
  --onsfx-line-bright: #304158;
  --onsfx-panel: #111a28;
  --onsfx-panel-soft: #0d1521;
  --onsfx-base: #080d14;
  --onsfx-blue: #2979ff;
  --onsfx-cyan: #37d7e8;
  --onsfx-warning: #f0b94b;
  --onsfx-danger: #ff6b74;
  --onsfx-success: #52d39a;
  --onsfx-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--onsfx-base);
  color: var(--onsfx-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; top: 12px; left: 12px; width: auto; height: auto;
  padding: 12px 16px; clip: auto; z-index: 100000; background: #fff; color: #05080d;
}

.onsfx-site {
  min-height: 100vh;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(47, 67, 92, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 67, 92, .08) 1px, transparent 1px);
  background-size: 60px 60px;
}
.onsfx-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.onsfx-header {
  width: min(1180px, calc(100% - 40px)); height: 82px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--onsfx-line); position: relative; z-index: 100;
}
.onsfx-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.03em; font-size: 20px; }
.onsfx-brand-mark { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #0d1624; }
.onsfx-brand-mark img { width: 122%; height: 122%; object-fit: cover; }
.onsfx-beta-chip { margin-left: 3px; font-size: 9px; letter-spacing: .14em; color: var(--onsfx-cyan); border: 1px solid rgba(55, 215, 232, .4); border-radius: 999px; padding: 4px 7px; }
.onsfx-nav { display: flex; align-items: center; gap: 30px; color: var(--onsfx-muted); font-size: 13px; }
.onsfx-nav a:hover, .onsfx-nav a:focus-visible { color: var(--onsfx-ink); }
.onsfx-header-cta { font-size: 12px; font-weight: 700; border: 1px solid var(--onsfx-line-bright); padding: 11px 16px; border-radius: 10px; }
.onsfx-header-cta:hover, .onsfx-header-cta:focus-visible { border-color: var(--onsfx-cyan); }
.onsfx-menu-toggle { display: none; border: 1px solid var(--onsfx-line); color: var(--onsfx-ink); background: var(--onsfx-panel-soft); border-radius: 9px; padding: 9px 11px; cursor: pointer; }

.onsfx-hero {
  width: min(1180px, calc(100% - 40px)); min-height: 660px; margin: 0 auto;
  padding: 78px 0 76px; display: grid; grid-template-columns: 1.02fr .98fr;
  align-items: center; gap: 76px; position: relative;
}
.onsfx-hero::before { content: ""; position: absolute; width: 440px; height: 440px; top: -220px; left: -220px; border: 1px solid rgba(55, 215, 232, .08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(41, 121, 255, .025), 0 0 0 160px rgba(41, 121, 255, .018); pointer-events: none; }
.onsfx-kicker { margin: 0 0 25px; text-transform: uppercase; letter-spacing: .13em; color: var(--onsfx-cyan); font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.onsfx-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--onsfx-cyan); box-shadow: 0 0 0 5px rgba(55, 215, 232, .1); }
.onsfx-hero h1 { margin: 0; font-size: clamp(46px, 5.2vw, 73px); line-height: .99; letter-spacing: -.066em; max-width: 720px; }
.onsfx-hero h1 span { color: #748197; }
.onsfx-hero-lead { max-width: 610px; color: var(--onsfx-muted); font-size: 17px; line-height: 1.65; margin: 31px 0; }
.onsfx-actions { display: flex; align-items: center; gap: 13px; }
.onsfx-button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 19px; border-radius: 11px; border: 1px solid transparent; font-size: 13px; font-weight: 750; cursor: pointer; }
.onsfx-button--primary { background: var(--onsfx-blue); color: #fff; box-shadow: 0 12px 32px rgba(41, 121, 255, .2); }
.onsfx-button--primary:hover, .onsfx-button--primary:focus-visible { background: #3a86ff; }
.onsfx-button--ghost { color: var(--onsfx-muted); border-color: var(--onsfx-line); background: rgba(13, 21, 33, .55); }
.onsfx-button--ghost:hover, .onsfx-button--ghost:focus-visible { color: var(--onsfx-ink); border-color: var(--onsfx-line-bright); }
.onsfx-invite-note { color: var(--onsfx-dim); font-size: 12px; margin: 18px 0 0; }

.onsfx-hero-visual { background: #0b131e; border: 1px solid var(--onsfx-line-bright); border-radius: 20px; min-height: 475px; padding: 18px; box-shadow: 0 36px 90px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .025); transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); }
.onsfx-visual-topline { display: flex; justify-content: space-between; color: #5e6b7d; font: 600 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; padding: 2px 2px 13px; }
.onsfx-scene-frame { height: 224px; border-radius: 11px; border: 1px solid #26354a; overflow: hidden; position: relative; background: radial-gradient(circle at 72% 34%, rgba(42, 113, 209, .36), transparent 18%), linear-gradient(140deg, #182639 0%, #111a26 45%, #060a10 46%, #152234 100%); }
.onsfx-frame-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 33.333% 33.333%; opacity: .18; }
.onsfx-scan-line { position: absolute; top: 0; bottom: 0; width: 1px; left: 64%; background: var(--onsfx-cyan); box-shadow: 0 0 18px var(--onsfx-cyan); opacity: .75; }
.onsfx-scene-caption { position: absolute; left: 17px; bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
.onsfx-scene-caption span { color: var(--onsfx-cyan); font: 600 8px/1 ui-monospace, monospace; letter-spacing: .16em; }
.onsfx-scene-caption strong { font-size: 13px; }
.onsfx-waveform { height: 66px; margin: 14px 1px 11px; border-bottom: 1px solid #182335; display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 0 6px; }
.onsfx-waveform i { width: 3px; border-radius: 5px; background: linear-gradient(to bottom, var(--onsfx-cyan), var(--onsfx-blue)); opacity: .85; }
.onsfx-timeline-row { height: 44px; display: grid; grid-template-columns: 58px 1fr .44fr; align-items: center; gap: 7px; border-top: 1px solid #162131; }
.onsfx-track-label { color: #617086; font: 600 8px/1 ui-monospace, monospace; letter-spacing: .12em; }
.onsfx-clip { height: 25px; display: flex; align-items: center; padding: 0 10px; border-radius: 5px; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.onsfx-clip--music { grid-column: 2/4; background: rgba(41, 121, 255, .2); border: 1px solid rgba(41, 121, 255, .45); color: #9dc1ff; }
.onsfx-clip--sfx { background: rgba(55, 215, 232, .16); border: 1px solid rgba(55, 215, 232, .42); color: #8ee8f2; }
.onsfx-clip--short { opacity: .65; }

.onsfx-value-strip { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--onsfx-line); border-radius: var(--onsfx-radius); background: rgba(13, 21, 33, .88); }
.onsfx-value-strip article { min-height: 102px; display: flex; align-items: center; gap: 17px; padding: 0 27px; border-right: 1px solid var(--onsfx-line); }
.onsfx-value-strip article:last-child { border: 0; }
.onsfx-value-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--onsfx-cyan); background: rgba(55, 215, 232, .08); border: 1px solid rgba(55, 215, 232, .15); }
.onsfx-value-strip article div { display: flex; flex-direction: column; gap: 5px; }
.onsfx-value-strip strong { font-size: 13px; }
.onsfx-value-strip article div span { color: var(--onsfx-muted); font-size: 11px; }

.onsfx-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0 0; }
.onsfx-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 42px; }
.onsfx-section-heading > p { max-width: 390px; margin: 0; color: var(--onsfx-muted); font-size: 13px; line-height: 1.65; }
.onsfx-section-number { margin: 0 0 14px; color: var(--onsfx-cyan); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .17em; }
.onsfx-section h2, .onsfx-page-title { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.06; letter-spacing: -.045em; }
.onsfx-download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.onsfx-download-card { min-height: 265px; background: var(--onsfx-panel-soft); border: 1px solid var(--onsfx-line); border-radius: var(--onsfx-radius); padding: 25px; display: grid; grid-template-columns: 60px 1fr auto; gap: 18px; transition: border-color .2s, transform .2s; }
.onsfx-download-card:hover { border-color: var(--onsfx-line-bright); transform: translateY(-2px); }
.onsfx-host-monogram { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.onsfx-host-monogram--premiere { color: #d7c4ff; background: #201445; border: 1px solid #5c45a4; }
.onsfx-host-monogram--resolve { color: #ffb7b4; background: #321718; border: 1px solid #743334; }
.onsfx-download-main p { margin: 4px 0 6px; color: var(--onsfx-muted); font-size: 11px; }
.onsfx-download-main h3 { margin: 0 0 9px; font-size: 22px; letter-spacing: -.025em; }
.onsfx-download-main span { color: var(--onsfx-dim); font-size: 10px; }
.onsfx-download-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--onsfx-dim); font: 600 9px/1 ui-monospace, monospace; }
.onsfx-download-link { grid-column: 1/4; align-self: end; min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--onsfx-line); padding-top: 18px; font-size: 13px; font-weight: 750; }
.onsfx-download-link:hover { color: var(--onsfx-cyan); }
.onsfx-download-arrow { width: 29px; height: 29px; border-radius: 8px; background: var(--onsfx-blue); display: grid; place-items: center; color: #fff; }
.onsfx-beta-warning { margin-top: 16px; border: 1px solid rgba(240, 185, 75, .25); background: rgba(240, 185, 75, .055); border-radius: 13px; padding: 16px 18px; display: flex; align-items: flex-start; gap: 13px; }
.onsfx-beta-warning > span { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--onsfx-warning); border: 1px solid rgba(240, 185, 75, .4); font-size: 11px; font-weight: 800; }
.onsfx-beta-warning p { margin: 1px 0 0; color: #9d927a; font-size: 11px; line-height: 1.55; }
.onsfx-beta-warning strong { color: #d8c590; }

.onsfx-host-tabs { display: flex; background: #0d1521; border: 1px solid var(--onsfx-line); border-radius: 11px; padding: 4px; }
.onsfx-host-tabs button { border: 0; background: transparent; color: var(--onsfx-muted); border-radius: 8px; padding: 10px 15px; font-size: 11px; cursor: pointer; }
.onsfx-host-tabs button[aria-selected="true"] { color: var(--onsfx-ink); background: #1a2637; box-shadow: inset 0 0 0 1px #293a51; }
.onsfx-tab-panel[hidden] { display: none; }
.onsfx-steps { border-top: 1px solid var(--onsfx-line); }
.onsfx-step { min-height: 115px; display: grid; grid-template-columns: 95px 1fr; border-bottom: 1px solid var(--onsfx-line); align-items: center; }
.onsfx-step > span { color: #405069; font: 600 11px/1 ui-monospace, monospace; }
.onsfx-step h3 { margin: 0 0 8px; font-size: 15px; }
.onsfx-step p { margin: 0; max-width: 800px; color: var(--onsfx-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.onsfx-command-box { margin-top: 20px; border-radius: 13px; background: #05080d; border: 1px solid #1d2838; overflow: hidden; }
.onsfx-command-head { min-height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid #172131; color: var(--onsfx-dim); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .12em; }
.onsfx-command-head button { border: 0; background: transparent; color: var(--onsfx-muted); font: inherit; cursor: pointer; }
.onsfx-command-box code { display: block; padding: 16px; color: #8fa0b9; font: 10px/1.8 ui-monospace, Consolas, monospace; overflow-x: auto; }
.onsfx-faq { padding-bottom: 110px; }
.onsfx-faq-list { border-top: 1px solid var(--onsfx-line); }
.onsfx-faq details { border-bottom: 1px solid var(--onsfx-line); }
.onsfx-faq summary { min-height: 75px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; }
.onsfx-faq summary::-webkit-details-marker { display: none; }
.onsfx-faq summary span { color: var(--onsfx-cyan); font-size: 20px; font-weight: 300; transition: transform .2s; }
.onsfx-faq details[open] summary span { transform: rotate(45deg); }
.onsfx-faq details p { margin: -5px 0 25px; color: var(--onsfx-muted); max-width: 800px; font-size: 12px; line-height: 1.7; }

.onsfx-page { width: min(940px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 120px; min-height: calc(100vh - 182px); }
.onsfx-page-head { margin-bottom: 36px; }
.onsfx-page-kicker { color: var(--onsfx-cyan); text-transform: uppercase; letter-spacing: .15em; font: 700 10px/1 ui-monospace, monospace; }
.onsfx-entry { color: var(--onsfx-muted); font-size: 14px; line-height: 1.75; }
.onsfx-entry h2, .onsfx-entry h3 { color: var(--onsfx-ink); line-height: 1.2; }
.onsfx-entry a { color: var(--onsfx-cyan); }

.onsfx-footer { width: min(1180px, calc(100% - 40px)); min-height: 100px; margin: 0 auto; border-top: 1px solid var(--onsfx-line); display: flex; align-items: center; justify-content: space-between; color: var(--onsfx-dim); font-size: 10px; }
.onsfx-footer .onsfx-brand { color: var(--onsfx-ink); }
.onsfx-footer-links { display: flex; gap: 18px; align-items: center; }
.onsfx-footer a:hover { color: var(--onsfx-cyan); }

@media (max-width: 920px) {
  .onsfx-menu-toggle { display: inline-flex; }
  .onsfx-header-cta { display: none; }
  .onsfx-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; padding: 18px; flex-direction: column; align-items: stretch; gap: 0; background: #0b131e; border: 1px solid var(--onsfx-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
  .onsfx-nav.is-open { display: flex; }
  .onsfx-nav a { padding: 11px 7px; }
  .onsfx-hero { grid-template-columns: 1fr; gap: 56px; padding-top: 62px; }
  .onsfx-hero-copy { max-width: 720px; }
  .onsfx-hero-visual { max-width: 650px; width: 100%; transform: none; }
  .onsfx-value-strip { grid-template-columns: 1fr; }
  .onsfx-value-strip article { border-right: 0; border-bottom: 1px solid var(--onsfx-line); }
  .onsfx-download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .onsfx-header, .onsfx-hero, .onsfx-value-strip, .onsfx-section, .onsfx-footer, .onsfx-page { width: min(100% - 28px, 1180px); }
  .onsfx-header { height: 70px; }
  .onsfx-hero { padding: 56px 0 42px; min-height: auto; }
  .onsfx-hero h1 { font-size: 46px; }
  .onsfx-hero-lead { font-size: 15px; }
  .onsfx-actions { align-items: stretch; flex-direction: column; }
  .onsfx-button { width: 100%; }
  .onsfx-hero-visual { min-height: 420px; padding: 12px; }
  .onsfx-scene-frame { height: 190px; }
  .onsfx-value-strip article { min-height: 90px; padding: 0 19px; }
  .onsfx-section { padding-top: 88px; }
  .onsfx-section-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .onsfx-download-card { grid-template-columns: 53px 1fr auto; padding: 19px; }
  .onsfx-host-monogram { width: 51px; height: 51px; }
  .onsfx-host-tabs { width: 100%; }
  .onsfx-host-tabs button { flex: 1; }
  .onsfx-step { grid-template-columns: 42px 1fr; padding: 20px 0; }
  .onsfx-command-box code { font-size: 8px; }
  .onsfx-footer { flex-wrap: wrap; gap: 16px; padding: 25px 0; }
  .onsfx-footer-links { width: 100%; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
