:root {
  --orange: #F5A623;
  --orange-dim: #C4841A;
  --bg: #111114;
  --surface: #1C1C21;
  --surface2: #25252C;
  --border: #34343E;
  --text: #E8E8EE;
  --text-dim: #8A8A9C;
  --green: #4CAF82;
  --blue: #5B8DEF;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --baloo: 'Baloo 2', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NOISE TEXTURE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* GRID LINES */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(245,166,35,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,13,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  font-family: var(--baloo);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--text-dim); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover { color: var(--orange); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.hero-content { max-width: 600px; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--orange);
}

h1 {
  font-family: var(--baloo);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

h1 .dot { color: var(--orange); }

.hero-sub {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-desc strong { color: var(--text); font-weight: 500; }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--orange);
  color: #000;
  border: 1px solid var(--orange);
}

.btn-primary:hover {
  background: transparent;
  color: var(--orange);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* DEVICE MOCKUP */
.hero-device {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  opacity: 0;
  animation: fadeSlideIn 1s ease 0.4s forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(calc(-50% + 20px)); }
  to { opacity: 1; transform: translateY(-50%); }
}

.device-frame {
  background: #1A1A1E;
  border: 2px solid #2E2E38;
  border-radius: 16px;
  padding: 1rem;
  position:relative;
  box-shadow: 
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.device-frame img {
  width:100%;
  height:auto;
}

.device-label {
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* STATS BAR */
.stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* SECTIONS */
section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-tag::before {
  content: '//';
  opacity: 0.5;
}

h2 {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

/* APPS GRID */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.app-card {
  background: var(--surface);
  padding: 1.75rem;
  transition: background 0.2s;
  position: relative;
}

.screenshot {
  width:100%;
  height:auto;
  border:1px solid #aaa;
}

.app-card:hover { background: var(--surface2); }

.app-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.app-card h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.app-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.app-card-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* HARDWARE SPECS */
.specs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.spec-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child { border-bottom: none; }

.spec-key {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.9rem 1rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.spec-val {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  padding: 0.9rem 1rem;
  background: var(--surface2);
  display: flex;
  align-items: center;
}

.spec-highlight { color: var(--orange); }

/* CODE BLOCK */
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.code-filename {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.code-dots { display: flex; gap: 6px; }

.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }

pre {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-dim);
  overflow-x: auto;
}

pre .kw { color: var(--blue); }
pre .str { color: var(--green); }
pre .cm { color: #4A4A5A; font-style: italic; }
pre .fn { color: var(--orange); }
pre .var { color: var(--text); }

/* APP FRAMEWORK */
.framework-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.framework-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.framework-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.point-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--orange);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.point-text h4 {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.point-text p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* INSTALL */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.install-step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--orange);
  font-weight: 700;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  color: var(--orange);
}

/* PARTS LIST */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.part-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.part-card:hover { border-color: var(--orange); }

.part-card h4 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.part-card p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.part-note {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.05em;
}

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--baloo);
  font-weight: 800;
  color: var(--orange);
  font-size: 1.1rem;
}

.footer-logo span { color: var(--text-dim); }

.footer-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

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

/* DIVIDER */
.section-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  background: var(--border);
  max-width: 100%;
}

/* ANIMATE IN */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 0.7s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: none; }
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-device { display: none; }
  .specs-layout, .framework-layout { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  nav ul { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
