:root {
  --bg: #0b1014;
  --bg-alt: #101820;
  --panel: #151f27;
  --panel-2: #1d2b35;
  --line: #31424c;
  --text: #f3f8fa;
  --muted: #b1c0c7;
  --soft: #7e929d;
  --green: #2ed17c;
  --green-dark: #0d2a1c;
  --cyan: #58c7df;
  --amber: #e8bf4a;
  --red: #ef6461;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(11, 16, 20, .94);
  backdrop-filter: blur(16px);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 180px;
}

.brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  background: rgba(46, 209, 124, .12);
  color: var(--green);
}

.nav .nav-login {
  border: 1px solid rgba(46, 209, 124, .5);
  color: var(--text);
}

.menu-button {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.route-section {
  display: none;
}

.route-section.active {
  display: block;
}

.hero {
  min-height: calc(100vh - 74px);
  padding: 74px 0 48px;
  background:
    linear-gradient(120deg, rgba(17, 29, 38, .98), rgba(12, 42, 31, .88)),
    url("../../tizen/img/logo13.png");
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.lead,
.section-head p,
.doc-card p,
.editable-grid p,
.steps p,
.capability-grid p,
.dash-header p {
  color: var(--muted);
  line-height: 1.62;
}

.lead {
  max-width: 620px;
  font-size: 16px;
}

.content-notice {
  max-width: 700px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(46, 209, 124, .4);
  border-radius: var(--radius);
  background: rgba(46, 209, 124, .1);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.button span {
  margin-right: 8px;
  color: currentColor;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #07100b;
}

.button.secondary:hover,
.button.primary:hover {
  filter: brightness(1.08);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.quick-facts div {
  min-height: 106px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: rgba(11, 16, 20, .54);
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bridge-preview {
  position: relative;
  padding-bottom: 92px;
}

.screen-shell {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: #0b1117;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.screen-top img {
  width: 190px;
  height: auto;
}

.screen-top span {
  color: var(--soft);
  font-size: 13px;
}

.screen-main {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 320px;
}

.screen-main aside {
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #121b22;
}

.screen-main aside b,
.screen-main aside span {
  display: block;
}

.screen-main aside b {
  margin-bottom: 14px;
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

.screen-main aside span {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
}

.screen-main aside .selected {
  background: var(--green);
  color: #07100b;
  font-weight: 800;
}

.screen-list {
  padding: 24px;
}

.screen-list div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: #17232c;
}

.screen-list strong {
  color: var(--green);
}

.screen-list em {
  color: var(--cyan);
  font-size: 13px;
  font-style: normal;
}

.api-card {
  position: absolute;
  right: 30px;
  bottom: 0;
  width: min(360px, calc(100% - 60px));
  padding: 20px;
  border: 1px solid rgba(46, 209, 124, .42);
  border-radius: var(--radius);
  background: #10261b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.api-card span,
.api-card strong,
.api-card small {
  display: block;
}

.api-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.api-card strong {
  margin: 8px 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.api-card small {
  color: var(--muted);
  line-height: 1.45;
}

.content-band,
.docs,
.samples,
.dashboard {
  padding: 66px 0;
}

.content-band.alt,
.samples {
  background: var(--bg-alt);
}

.section-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-head.compact {
  margin-bottom: 0;
}

.capability-grid,
.editable-grid,
.partner-grid,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.source-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.source-grid h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.capability-grid article,
.editable-grid article,
.partner-grid article,
.platform-grid article,
.steps article,
.doc-card,
.sample-view,
.table-card,
.stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.capability-grid article,
.editable-grid article,
.partner-grid article,
.platform-grid article {
  padding: 22px;
}

.partner-grid article,
.platform-grid article {
  position: relative;
  min-height: 210px;
}

.partner-grid span,
.platform-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  padding: 0 10px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: rgba(46, 209, 124, .12);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.partner-grid p,
.platform-grid p {
  color: var(--muted);
  line-height: 1.58;
}

.partner-grid small,
.platform-grid small {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: rgba(88, 199, 223, .13);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.setup-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px;
}

.steps article > :not(b) {
  grid-column: 2;
  min-width: 0;
}

.steps b {
  display: flex;
  grid-row: span 3;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #07100b;
}

.steps code {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 6px;
  background: #091017;
  color: var(--cyan);
}

.overview-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 22px;
}

.overview-screen,
.overview-notes {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.overview-screen {
  overflow: hidden;
}

.overview-screen-top {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #0c1319;
}

.overview-screen-top img {
  width: 138px;
  height: auto;
}

.overview-screen-top span {
  color: var(--muted);
  font-weight: 800;
}

.overview-screen-body {
  padding: 18px;
}

.overview-channel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 5px solid transparent;
  border-radius: var(--radius);
  background: #111b23;
}

.overview-channel.active {
  border-left-color: var(--green);
}

.overview-channel b {
  grid-row: span 2;
  color: var(--green);
}

.overview-channel span {
  font-weight: 800;
}

.overview-channel em {
  color: var(--muted);
  font-style: normal;
}

.overview-notes {
  padding: 22px;
}

.overview-notes p {
  color: var(--muted);
  line-height: 1.6;
}

.overview-notes div {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.overview-notes code {
  display: block;
  overflow-x: auto;
  padding: 10px 12px;
  border-radius: 6px;
  background: #091017;
  color: var(--cyan);
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
}

.docs-nav {
  position: sticky;
  top: 94px;
  align-self: start;
}

.docs-nav h2 {
  font-size: 28px;
}

.docs-nav a {
  display: block;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-left: 4px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
}

.docs-nav a:hover {
  border-left-color: var(--green);
  color: var(--text);
}

.doc-card {
  margin-bottom: 16px;
  padding: 24px;
}

pre {
  overflow: auto;
  margin: 18px 0 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #071015;
  color: #d7edf3;
  font-size: 13px;
  line-height: 1.55;
}

code {
  font-family: Consolas, Monaco, "Courier New", monospace;
}

.sample-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
}

.sample-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.sample-tab {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.sample-tab:hover,
.sample-tab.active {
  border-color: rgba(46, 209, 124, .55);
  background: rgba(46, 209, 124, .12);
  color: var(--green);
}

.sample-view {
  overflow: hidden;
}

.sample-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.sample-view pre {
  max-height: 620px;
  margin: 0;
  border-radius: 0;
}

.dash-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.dash-header div {
  max-width: 740px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.provider-demo-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  width: min(620px, 100%);
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.provider-demo-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.provider-demo-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.provider-demo-card dt {
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.provider-demo-card dd {
  margin: 0;
  color: var(--text);
}

.provider-demo-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 8px 14px;
  border: 1px solid rgba(46, 209, 124, .6);
  border-radius: 999px;
  background: rgba(46, 209, 124, .14);
  color: var(--green);
  font-weight: 800;
}

.stats div {
  padding: 20px;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--green);
  font-size: 34px;
}

.stats span {
  color: var(--muted);
}

.stats small {
  display: block;
  margin-top: 2px;
  color: var(--soft);
}

.table-card {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid #253740;
  text-align: left;
}

th {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 72px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #27343d;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-pill.online {
  background: rgba(46, 209, 124, .17);
  color: var(--green);
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: #070c10;
  color: var(--soft);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid img {
  width: 170px;
  height: auto;
}

.footer-grid span {
  text-align: right;
}

.guide-page {
  background: #0b1014;
}

.guide-hero {
  padding: 70px 0 58px;
  background:
    linear-gradient(120deg, rgba(12, 18, 23, .98), rgba(12, 42, 31, .84)),
    url("../img/logo.png");
  background-size: cover;
  background-position: center;
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.guide-tv,
.guide-shot {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: #060a0d;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .34);
}

.guide-tv {
  overflow: hidden;
}

.guide-tv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: #0d151b;
  color: var(--muted);
}

.guide-tv-top img {
  width: 190px;
  height: auto;
}

.guide-tv-screen {
  display: grid;
  gap: 14px;
  padding: 42px;
}

.guide-field,
.guide-button,
.input-preview,
.remote-button {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #121b22;
  color: var(--muted);
}

.guide-field.active,
.input-preview {
  border-color: rgba(46, 209, 124, .68);
  color: var(--text);
}

.guide-button,
.remote-button {
  border-color: var(--green);
  background: var(--green);
  color: #06100b;
  text-align: center;
  font-weight: 800;
}

.guide-section {
  padding: 70px 0;
}

.guide-section.alt {
  background: var(--bg-alt);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-steps article,
.help-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.guide-shot {
  display: grid;
  min-height: 250px;
  margin-bottom: 18px;
  padding: 22px;
  place-items: center;
}

.store-card,
.tv-login-card,
.mini-player {
  width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e151b;
}

.store-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 28px 20px;
  text-align: center;
}

.store-card img,
.tv-login-card img {
  width: 170px;
  height: auto;
}

.store-card span,
.store-card small,
.tv-login-card label,
.guide-steps p,
.guide-help p {
  color: var(--muted);
}

.store-card small {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--green);
  color: #07100b;
  font-weight: 800;
}

.tv-login-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.tv-login-card img {
  justify-self: center;
  margin-bottom: 8px;
}

.password {
  letter-spacing: .12em;
}

.mini-player {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 170px;
  overflow: hidden;
}

.mini-menu {
  padding: 22px;
  border-right: 1px solid var(--line);
  color: var(--green);
  font-weight: 800;
  line-height: 2.1;
}

.mini-list {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.mini-list span {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: #18242c;
  color: var(--text);
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #07100b;
  font-weight: 900;
}

.guide-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: start;
}

.help-card {
  border-color: rgba(46, 209, 124, .38);
  background: rgba(46, 209, 124, .09);
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .header-wrap {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    padding: 0 0 16px;
  }

  .nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .setup-layout,
  .docs-layout,
  .sample-layout,
  .overview-showcase {
    grid-template-columns: 1fr;
  }

  .guide-hero-grid,
  .guide-help {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .quick-facts,
  .capability-grid,
  .editable-grid,
  .partner-grid,
  .platform-grid,
  .source-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .docs-nav {
    position: static;
  }

  .provider-demo-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 166px;
  }

  .nav.open,
  .quick-facts,
  .capability-grid,
  .editable-grid,
  .partner-grid,
  .platform-grid,
  .source-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .screen-main {
    grid-template-columns: 1fr;
  }

  .screen-main aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .screen-list div {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .screen-list em {
    grid-column: 2;
  }

  .api-card {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .bridge-preview {
    padding-bottom: 0;
  }

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

  .steps article > :not(b) {
    grid-column: 1;
  }

  .steps b {
    grid-row: auto;
    margin-bottom: 14px;
  }

  .overview-screen-top {
    grid-template-columns: 1fr;
  }

  .dash-header,
  .footer-grid,
  .sample-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid span {
    text-align: left;
  }

  .guide-tv-screen,
  .guide-shot {
    padding: 18px;
  }

  .mini-player {
    grid-template-columns: 1fr;
  }

  .mini-menu {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
