/* Smartivi landing. Colors and type: brand/README.md */
:root {
  --night: #0B0B0C;
  --on-air: #FFA41B;
  --paper: #F6F1E7;
  --graphite: #2A2A2E;
  --surface: #161618;
  --stone: #A39E93;
  --line: rgba(246, 241, 231, 0.12);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--paper); }
a:hover { color: var(--on-air); }

:focus-visible { outline: 3px solid var(--on-air); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 12, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 26px; letter-spacing: -0.8px; line-height: 1; }
.brand img { width: 34px; height: 34px; }
.light { font-weight: 300; }
.heavy { font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 999px; }
.nav .lang { border: 1px solid var(--line); }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -2px; font-weight: 800; margin: 0 0 20px; }
.hero h1 .accent { color: var(--on-air); }
.lead { font-size: 19px; color: var(--stone); margin: 0 0 32px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--on-air); color: var(--night); font-weight: 800; padding: 14px 22px; border-radius: 999px; min-height: 48px; }
.badge svg { flex: none; }
.button-ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.fine { font-size: 14px; color: var(--stone); margin: 18px 0 0; }

/* Guide mockup */
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; position: relative; overflow: hidden; }
.guide-head { display: grid; grid-template-columns: 110px repeat(3, minmax(0, 1fr)); font-size: 13px; color: var(--stone); margin-bottom: 10px; }
.guide-head span:first-child { color: var(--paper); font-weight: 700; }
.guide-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0; margin-bottom: 8px; }
.guide-row:last-child { margin-bottom: 0; }
.channel { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding-right: 8px; min-width: 0; }
.channel .num { color: var(--stone); font-weight: 600; width: 18px; text-align: right; flex: none; }
.channel .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slots { display: flex; gap: 6px; min-width: 0; }
.slot { background: var(--graphite); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.slot small { display: block; font-weight: 500; color: var(--stone); font-size: 12px; }
.slot.live { background: var(--on-air); color: var(--night); }
.slot.live small { color: rgba(11, 11, 12, 0.72); }
.now { position: absolute; top: 40px; bottom: 14px; width: 3px; background: var(--paper); border-radius: 2px; left: calc(130px + (100% - 150px) * 0.38); }
.now::before { content: ""; position: absolute; top: -6px; left: -4.5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -1.2px; font-weight: 800; margin: 0 0 12px; }
.section-lead { color: var(--stone); font-size: 18px; margin: 0 0 40px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card svg { color: var(--on-air); margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.4px; font-weight: 800; }
.card p { margin: 0; color: var(--stone); font-size: 16px; }

.byo { background: var(--paper); color: var(--night); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.byo .section-title { color: var(--night); }
.byo p { margin: 0; font-size: 18px; color: #3F3B34; }
.byo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.byo li { display: flex; gap: 12px; align-items: center; font-weight: 700; background: #FFFFFF; border-radius: 14px; padding: 14px 16px; }
.byo li span { width: 10px; height: 10px; border-radius: 50%; background: var(--night); flex: none; }

.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.device { border-top: 1px solid var(--line); padding-top: 20px; }
.device h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.device p { margin: 0; color: var(--stone); font-size: 16px; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--on-air); font-weight: 800; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--stone); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--stone); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0 0 6px; }

/* Phones and small tablets */
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero .wrap, .byo { grid-template-columns: minmax(0, 1fr); }
  .features, .devices { grid-template-columns: minmax(0, 1fr); }
  .byo { padding: 32px 24px; }
  section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .guide { padding: 14px; }
  .guide-head, .guide-row { grid-template-columns: 84px minmax(0, 1fr); }
  .guide-head span:nth-child(n+3) { display: none; }
  .guide-head span:nth-child(2) { grid-column: 2; }
  .channel .num { display: none; }
  .slot.extra { display: none; }
  .now { left: calc(98px + (100% - 112px) * 0.38); top: 34px; }
  .nav a:not(.lang) { display: none; }
}
