/* ============================================================
   ASPHome.ru — landing styles
   Direction: Graphite + warm amber · industrial engineering
   Type: Geologica (display) · Onest (text) · JetBrains Mono (labels)
   ============================================================ */

:root {
  --bg:        #14130f;
  --bg-2:      #100f0c;
  --surface:   #1b1a14;
  --surface-2: #211f18;
  --surface-3: #2a2820;
  --border:    rgba(255,255,255,.085);
  --border-2:  rgba(255,255,255,.14);
  --txt:       #f4f1ec;
  --txt-2:     #cdc6bb;
  --muted:     #9b9387;
  --muted-2:   #6f6a60;
  --accent:    #ff9d42;
  --accent-2:  #ffb96e;
  --accent-ink:#1a1206;
  --accent-glow: rgba(255,157,66,.14);

  --maxw: 1200px;
  --pad: 56px;
  --radius: 16px;

  --f-display: 'Geologica', sans-serif;
  --f-text: 'Onest', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg:        #f3f1ec;
  --bg-2:      #eae7e0;
  --surface:   #ffffff;
  --surface-2: #f6f4ef;
  --surface-3: #ece8e0;
  --border:    rgba(20,18,12,.1);
  --border-2:  rgba(20,18,12,.16);
  --txt:       #16140f;
  --txt-2:     #3c382f;
  --muted:     #6b6557;
  --muted-2:   #989183;
  --accent-glow: rgba(255,157,66,.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-text);
  background: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* shared bits ------------------------------------------------ */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.eyebrow.plain { color: var(--muted); }
.eyebrow.plain .dot { background: var(--accent); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
}
.section-head h2 .hl { color: var(--accent); }

section.block { padding: 72px 0; position: relative; }
.divider { height: 1px; background: var(--border); }

.btn {
  font-family: var(--f-text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: none;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--txt); border: 1px solid var(--border-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-left { display: flex; align-items: center; gap: 44px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.logo .mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--txt-2); transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-mail { font-size: 14.5px; font-weight: 500; color: var(--txt-2); transition: color .15s ease; }
.nav-mail:hover { color: var(--accent); }
@media (max-width: 720px) { .nav-mail { display: none; } }
.nav-cta { font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; transition: background .15s ease; }
.nav-cta:hover { background: var(--accent-2); }
.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content:''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(820px 460px at 18% -4%, var(--accent-glow), transparent 58%);
  pointer-events: none;
}
.hero::after {
  content:''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(760px 540px at 72% 36%, #000 28%, transparent 76%);
  -webkit-mask-image: radial-gradient(760px 540px at 72% 36%, #000 28%, transparent 76%);
  opacity: .7;
  pointer-events: none;
}
.hero.no-grid::after { display: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
  padding: 72px 0 96px;
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 60px;
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); }
.hero .eyebrow { margin-bottom: 26px; }
.hero .sub { margin-top: 26px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 470px; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 46px; }
.chip {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 13px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.chip .cdot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* device (hero + specs) — bezel-framed screen, same style as gallery */
.device-stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-device {
  position: relative;
  width: 330px;
  max-width: 78vw;
  filter: drop-shadow(0 50px 80px rgba(0,0,0,.55));
}
.hero-device .screen-frame { border-radius: 28px; padding: 18px; }
.hero-device .screen-img { border-radius: 16px; }
.hero-device .ph-dim.caption {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.spec-device { position: relative; width: 280px; max-width: 80vw; }
.panel {
  position: relative;
  width: 330px;
  aspect-ratio: 1 / 1.05;
  border-radius: 28px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: linear-gradient(155deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border-2);
  box-shadow: 0 50px 90px -34px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
.panel-screen {
  width: 100%; height: 100%;
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, var(--bg-2), #0c0b08);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
}
[data-theme="light"] .panel-screen { background: linear-gradient(170deg, #1a1813, #0e0d0a); }
.ph-icon { width: 42px; height: 42px; opacity: .55; }
.ph-text { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: .6; }
.ph-dim { position: absolute; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.05em; opacity: .55; color: var(--muted); }
.ph-dim.bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }

.tick { position: absolute; width: 14px; height: 14px; color: var(--muted); }
.tick::before, .tick::after { content:''; position:absolute; background: currentColor; opacity:.4; }
.tick::before { width: 14px; height: 1.5px; top: 0; }
.tick::after { width: 1.5px; height: 14px; left: 0; }
.tick.tl { top: -24px; left: -24px; }
.tick.tr { top: -24px; right: -24px; transform: scaleX(-1); }
.tick.bl { bottom: -24px; left: -24px; transform: scaleY(-1); }
.tick.br { bottom: -24px; right: -24px; transform: scale(-1); }

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.fcard:hover { border-color: var(--border-2); transform: translateY(-3px); }
.fcard .ficon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 22px;
}
.fcard .ficon svg { width: 23px; height: 23px; }
.fcard h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; margin-bottom: 10px; }
.fcard p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.fcard .fnum { font-family: var(--f-mono); font-size: 11px; color: var(--muted-2); float: right; letter-spacing: .05em; }

/* ============================================================
   SPECS
   ============================================================ */
.specs { background: var(--bg-2); }
.spec-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.spec-aside .panel { width: 280px; margin: 0; }
.spec-aside { display: flex; flex-direction: column; align-items: stretch; gap: 26px; position: sticky; top: 96px; }
.spec-aside .spec-device { margin: 0 auto; }
.spec-price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
}
.spec-price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.spec-price-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.spec-price-val { font-family: var(--f-display); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; color: var(--txt); }
.spec-price-note { margin: 14px 0 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.spec-price-note .acc { color: var(--accent); }
.spec-price-soon {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--accent-2);
  background: var(--accent-glow);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 20px;
}
.soon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex: none; box-shadow: 0 0 8px var(--accent); }
.spec-price-btn { width: 100%; justify-content: center; }
.spec-list { border-top: 1px solid var(--border); }
.spec-row {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 24px; padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.spec-row dt { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.spec-row dd { font-size: 17px; color: var(--txt); font-weight: 500; }
.spec-row dd small { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.spec-note { margin-top: 22px; font-size: 13px; color: var(--muted-2); font-family: var(--f-mono); letter-spacing: .02em; }

/* ============================================================
   USE CASES
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.case:hover { border-color: var(--border-2); transform: translateY(-3px); }
.case-img {
  aspect-ratio: 16 / 11;
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, var(--border) 13px 14px),
    var(--surface-2);
  position: relative;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--border);
}
.case-img .ph-text { color: var(--muted-2); }
.case-img svg { width: 34px; height: 34px; color: var(--muted-2); opacity: .7; }
.case-body { padding: 26px 26px 28px; flex: 1; }
.case-body .ctag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.case-body h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; margin: 12px 0 14px; }
.case-body p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.case-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.case-list li { font-size: 14px; color: var(--txt-2); display: flex; align-items: center; gap: 10px; }
.case-list li::before { content:''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* ============================================================
   DISPLAY GALLERY
   ============================================================ */
.gallery-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 52px; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.screen-card { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.screen-frame {
  width: 100%;
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(155deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
}
.screen-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 13px;
  background: #14110e;
  border: 1px solid rgba(255,255,255,.06);
}
.screen-glass {
  width: 100%; height: 100%;
  border-radius: 12px;
  background: radial-gradient(130% 130% at 50% 0%, #181712, #0c0b08);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  position: relative;
  color: #f4f1ec;
  display: flex; flex-direction: column;
}
.screen-cap { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }

/* mini UI bits inside screens */
.sc-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 0; font-family: var(--f-mono); font-size: 10px; color: rgba(244,241,236,.6); }
.sc-pad { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.sc-clock { font-family: var(--f-display); font-weight: 300; font-size: 46px; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
.sc-sub { font-size: 12px; color: rgba(244,241,236,.6); margin-top: 6px; }
.sc-temp { font-family: var(--f-display); font-weight: 300; font-size: 52px; letter-spacing: -0.04em; line-height: 1; }
.sc-deg { color: var(--accent); }
.sc-ring { width: 96px; height: 96px; margin: 6px auto; border-radius: 50%; background: conic-gradient(var(--accent) 0 62%, rgba(255,255,255,.08) 62% 100%); display: grid; place-items: center; }
.sc-ring .inner { width: 74px; height: 74px; border-radius: 50%; background: #0c0b08; display: grid; place-items: center; font-family: var(--f-display); font-weight: 300; font-size: 26px; }
.sc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.sc-tile { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.sc-tile.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.sc-tile .tlabel { font-size: 11px; font-weight: 600; }
.sc-tile .ticon { width: 18px; height: 18px; }
.sc-tile .tstate { font-size: 9px; opacity: .7; font-family: var(--f-mono); }
.sc-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.sc-row:last-child { border-bottom: none; }
.sc-row .sw { width: 34px; height: 19px; border-radius: 12px; background: rgba(255,255,255,.14); position: relative; }
.sc-row .sw.on { background: var(--accent); }
.sc-row .sw::after { content:''; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .2s; }
.sc-row .sw.on::after { left: 17px; }
.sc-list-h { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,241,236,.5); margin: 10px 0 4px; }
.sc-scene { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; }
.sc-scene .sdot { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: var(--accent); }
.sc-scene .sdot svg { width: 14px; height: 14px; }

/* custom-design callout */
.gallery-note {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px; color: var(--muted);
}
.gallery-note svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.gallery-note strong { color: var(--txt); font-weight: 600; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-lead { font-family: var(--f-display); font-weight: 300; font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; }
.about-lead .hl { color: var(--accent); }
.about-points { display: flex; flex-direction: column; gap: 4px; }
.apoint { padding: 22px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.apoint:last-child { border-bottom: 1px solid var(--border); }
.apoint .aicon { width: 44px; height: 44px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.apoint .aicon svg { width: 22px; height: 22px; }
.apoint h4 { font-family: var(--f-display); font-weight: 500; font-size: 18px; margin-bottom: 6px; }
.apoint p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ============================================================
   CTA BAND + FOOTER
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 64px 64px;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 88% 0%, var(--accent-glow), transparent 60%);
}
.cta-content { position: relative; z-index: 1; max-width: 640px; }
.cta-content h2 { font-family: var(--f-display); font-weight: 600; font-size: 40px; line-height: 1.06; letter-spacing: -0.03em; }
.cta-content h2 .hl { color: var(--accent); }
.cta-content p { margin-top: 16px; font-size: 18px; color: var(--muted); line-height: 1.5; }
.cta-content .cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.site-footer { padding: 64px 0 44px; border-top: 1px solid var(--border); margin-top: 72px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 280px; }
.fcol h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.fcol a, .fcol span { display: block; font-size: 14.5px; color: var(--txt-2); margin-bottom: 11px; transition: color .15s; }
.fcol a:hover { color: var(--accent); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted-2); font-family: var(--f-mono); letter-spacing: .02em; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .nav-links { display: none; }
}
@media (max-width: 1080px) {
  .feature-grid, .screens { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  :root { --pad: 28px; }
  .hero-grid, .spec-layout, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .spec-aside { position: static; }
  .hero h1 { font-size: 44px; }
  .section-head h2 { font-size: 32px; }
  .cta-content h2 { font-size: 30px; }
  .cta-inner { padding: 40px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .feature-grid, .screens { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .chips { gap: 7px; }
}
