/* Kinrox landing — tokens, layout primitives, navigation, buttons.
   Colors mirror Resources/Branding.xcassets and Figma "Kinrox / Color". */

:root {
  color-scheme: dark;

  --bg-base: #000;
  --bg-canvas: #0e0c0b;
  --bg-elevated: #171412;
  --glass: rgba(255, 246, 236, 0.08);
  --glass-strong: rgba(255, 246, 236, 0.16);
  --hairline: rgba(255, 246, 236, 0.12);
  --stroke-glass: rgba(255, 246, 236, 0.24);
  --text: #f7efe4;
  --text-2: rgba(247, 239, 228, 0.64);
  --text-3: rgba(247, 239, 228, 0.4);
  --ember: #ff5a1f;
  --flame: #ffa23a;
  --crimson: #e8231a;
  --online: #4ade80;
  --fire: linear-gradient(90deg, #e8241a 0%, #ff591f 55%, #ffa33b 100%);
  --fire-diag: linear-gradient(135deg, #ffa33b 0%, #ff591f 45%, #e8241a 100%);
  --ember-glow: 0 8px 28px rgba(255, 89, 31, 0.55);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-card: 28px;
  --section-gap: clamp(88px, 12vw, 160px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Display type — SF Pro Expanded where the system provides it. */
.display {
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
}

.fire-text {
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
}

.section {
  position: relative;
  padding-block: calc(var(--section-gap) / 2);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.06;
}

.section-head .lead {
  margin-top: 18px;
}

/* Icons: Figma SVGs used as masks so they take the current text color. */
.ic {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

.ic-play { --i: url(../img/icons/play.svg); }
.ic-pause { --i: url(../img/icons/pause.svg); }
.ic-previous { --i: url(../img/icons/previous.svg); }
.ic-next { --i: url(../img/icons/next.svg); }
.ic-rotate-back { --i: url(../img/icons/rotate-back.svg); }
.ic-rotate-forward { --i: url(../img/icons/rotate-forward.svg); }
.ic-volume-high { --i: url(../img/icons/volume-high.svg); }
.ic-fullscreen { --i: url(../img/icons/fullscreen.svg); }
.ic-history { --i: url(../img/icons/history.svg); }
.ic-playlist { --i: url(../img/icons/playlist.svg); }
.ic-shield-check { --i: url(../img/icons/shield-check.svg); }
.ic-wifi { --i: url(../img/icons/wifi.svg); }
.ic-lock { --i: url(../img/icons/lock.svg); }
.ic-smartphone { --i: url(../img/icons/smartphone.svg); }
.ic-laptop { --i: url(../img/icons/laptop.svg); }
.ic-monitor-play { --i: url(../img/icons/monitor-play.svg); }
.ic-folder-open { --i: url(../img/icons/folder-open.svg); }
.ic-check { --i: url(../img/icons/check.svg); }

/* Buttons and chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn .ic {
  font-size: 18px;
}

.btn-fire {
  background: var(--fire);
  color: #fff8f0;
  box-shadow: var(--ember-glow);
}

.btn-fire:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(255, 89, 31, 0.7);
}

.btn-glass {
  background: var(--glass);
  border-color: var(--hairline);
  color: var(--text);
}

.btn-glass:hover {
  background: var(--glass-strong);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text);
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.dot.ember {
  background: var(--ember);
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.8);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: 9px;
  background: var(--glass);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: var(--hairline);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  font-size: 15px;
  color: var(--text-2);
}

.nav-links a:hover,
.lang:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.lang {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.nav .btn {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 14px;
}

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

/* Footer */
.footer {
  padding-block: 48px 56px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-left: auto;
  color: var(--text-2);
}

.footer-links a:hover {
  color: var(--text);
}

/* Scroll reveal, enabled only when JavaScript runs. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
