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

:root {
  --black: #080808;
  --white: #f2f2f0;
  --dim: #555;
  --line: #1a1a1a;
  --mono: 'DM Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
}

@font-face {
  font-family: 'Slope Opera';
  src: url('./public/slope-opera.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  cursor: crosshair;
}

a {
  color: inherit;
  text-decoration: none;
}
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: #222;
}

.slope-font {
  font-family: 'Slope Opera', sans-serif;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--black);
  z-index: 100;
}

.nav-logo {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.4;
}
.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(242, 242, 240, 0.25);
  padding: 7px 18px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-cta:hover {
  background: var(--white);
  color: var(--black);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 56px);
  border-bottom: 1px solid var(--line);
}

.hero-left {
  padding: 72px 48px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.28;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(5rem, 9vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
}
.hero-dt89 {
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
}
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}

.hero-desc {
  font-size: 12px;
  line-height: 1.9;
  opacity: 0.42;
  max-width: 400px;
  margin-top: 36px;
}
.hero-desc code {
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 5px;
}

.hero-stats {
  display: flex;
  border: 1px solid var(--line);
  margin-top: 64px;
}
.stat {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  flex: 1;
}
.stat:last-child {
  border-right: none;
}
.stat-num {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.28;
  margin-top: 5px;
  display: block;
}

.hero-right {
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-bottom: none;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #222;
}
.terminal-name {
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.22;
  margin-left: 8px;
}

.code-block {
  background: #0c0c0c;
  border: 1px solid var(--line);
  padding: 24px 20px;
  font-size: 12.5px;
  line-height: 2.1;
}
.ln {
  opacity: 0.15;
  user-select: none;
  display: inline-block;
  width: 22px;
  text-align: right;
  margin-right: 16px;
}
.tag {
  color: #444;
}
.attr {
  color: #777;
}
.val {
  color: var(--white);
}
.hl {
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 3px;
}
.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--white);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.f1 {
  animation: fadeUp 0.5s ease both;
}
.f2 {
  animation: fadeUp 0.5s 0.08s ease both;
}
.f3 {
  animation: fadeUp 0.5s 0.16s ease both;
}
.f4 {
  animation: fadeUp 0.5s 0.24s ease both;
}

/* SECTION HEADER */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 26px 40px;
  border-bottom: 1px solid var(--line);
}
.sec-num {
  font-size: 10px;
  opacity: 0.18;
  letter-spacing: 0.1em;
}
.sec-title {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.03em;
}

/* LIVE DEMO */
#demo {
  border-bottom: 1px solid var(--line);
}

.demo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
}

.utility-list {
  border-right: 1px solid var(--line);
  overflow-y: auto;
  height: 680px;
}

.group-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.2;
  padding: 13px 22px 5px;
  border-bottom: 1px solid #111;
  position: sticky;
  top: 0;
  background: var(--black);
}

.util-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-bottom: 1px solid #0e0e0e;
  cursor: crosshair;
  transition: background 0.08s;
  border-left: 2px solid transparent;
}
.util-row:hover {
  background: #101010;
}
.util-row.active {
  background: #111;
  border-left-color: var(--white);
  padding-left: 20px;
}
.util-name {
  font-size: 12px;
  opacity: 0.65;
  transition: opacity 0.1s;
}
.util-row:hover .util-name,
.util-row.active .util-name {
  opacity: 1;
}
.util-val {
  font-size: 10px;
  opacity: 0.2;
}

/* PREVIEW PANE */
.preview-pane {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 56px;
  height: 680px;
}

.preview-canvas {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#141414 1px, transparent 1px),
    linear-gradient(90deg, #141414 1px, transparent 1px);
  background-size: 32px 32px;
}

/* spacing shell */
#preview-shell {
  position: relative;
  z-index: 1;
  display: none;
}

.shell-outer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: padding 0.25s ease;
  position: relative;
}

.shell-inner {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* dimension ticks */
.tick {
  position: absolute;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  pointer-events: none;
}

/* generic preview box */
#preview-inner {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 13px;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 32px;
  color: var(--white);
}

/* css output */
.preview-output {
  height: 148px;
  padding: 18px 28px;
  background: #060606;
  border-top: 1px solid var(--line);
}
.output-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.18;
  margin-bottom: 10px;
}
#css-output {
  font-size: 12px;
  line-height: 2;
}
.css-p {
  color: #555;
}
.css-c {
  color: #333;
}
.css-v {
  color: var(--white);
}
.css-s {
  color: #333;
}
.css-hint {
  color: #2a2a2a;
  font-style: italic;
  font-size: 11px;
}

/* HOW IT WORKS */
#how {
  border-bottom: 1px solid var(--line);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.flow-step {
  padding: 44px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.flow-step:last-child {
  border-right: none;
}

.flow-n {
  font-family: var(--display);
  font-size: 5rem;
  color: transparent;
  -webkit-text-stroke: 1px #1e1e1e;
  line-height: 1;
  margin-bottom: 20px;
}
.flow-badge {
  display: inline-block;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  opacity: 0.35;
  margin-bottom: 14px;
}
.flow-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}
.flow-body {
  font-size: 11.5px;
  line-height: 1.8;
  opacity: 0.35;
}
.flow-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  opacity: 1;
  color: rgba(255, 255, 255, 0.7);
}
.flow-arrow {
  position: absolute;
  right: -9px;
  top: 44px;
  font-size: 14px;
  opacity: 0.1;
  z-index: 2;
}

/* INSTALL */
#install {
  border-bottom: 1px solid var(--line);
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.install-left {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
}
.install-right {
  padding: 56px 48px;
}

.step {
  display: flex;
  gap: 22px;
  margin-bottom: 38px;
}
.step:last-child {
  margin-bottom: 0;
}
.step-n {
  font-family: var(--display);
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1px #2a2a2a;
  line-height: 1;
  min-width: 28px;
}
.step-body {
  flex: 1;
}
.step-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.step-code {
  background: #0a0a0a;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  overflow-x: auto;
  white-space: nowrap;
}
.step-note {
  font-size: 11px;
  opacity: 0.25;
  margin-top: 6px;
}

.file-tree {
  font-size: 12.5px;
  line-height: 2.3;
  opacity: 0.45;
}
.file-tree .file {
  color: var(--white);
  opacity: 1;
}
.file-tree .note {
  opacity: 0.2;
  font-size: 11px;
}

.ctas {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.btn-p {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: opacity 0.15s;
}
.btn-p:hover {
  opacity: 0.85;
}
.btn-s {
  display: inline-block;
  border: 1px solid var(--line);
  color: rgba(242, 242, 240, 0.3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.btn-s:hover {
  border-color: rgba(242, 242, 240, 0.35);
  color: var(--white);
}

/* FOOTER */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}
.foot-logo {
  font-family: var(--display);
  font-size: 1.3rem;
  opacity: 0.18;
}
.foot-links {
  display: flex;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.2;
}
.foot-links a:hover {
  opacity: 1;
  color: var(--white);
}
.foot-copy {
  font-size: 11px;
  opacity: 0.14;
}
