/* ---- Fonts ---- */
@font-face {
  font-family: "JetBrainsMonoNL";
  src: url("assets/fonts/JetBrainsMonoNLNerdFontMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrainsMonoNL";
  src: url("assets/fonts/JetBrainsMonoNLNerdFontMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrainsMonoNL";
  src: url("assets/fonts/JetBrainsMonoNLNerdFontMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrainsMonoNL";
  src: url("assets/fonts/JetBrainsMonoNLNerdFontMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrainsMonoNL";
  src: url("assets/fonts/JetBrainsMonoNLNerdFontMono-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-alt: #111114;
  --border: #1e1e24;
  --text: #e8e8ee;
  --muted: #666;
  --orange: #ff8c00;
  --blue: #0064ff;
  --green: #00ff00;
  --card-bg: #111114;
  --radius: 10px;
  --font: "JetBrainsMonoNL", monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: #1a1a20;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-size: 0.88em;
  color: #aaa;
  border: 1px solid #2a2a30;
}

/* ---- Nav ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 52px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}
.nav-logo:hover { text-decoration: none; color: var(--orange); }

.nav-logo-icon {
  height: 1.2em;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  width: min(640px, 92vw);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 60px rgba(255, 140, 0, 0.3));
}

.hero h1 {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 30%, #ffaa33 65%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #888;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: #d97757;
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: opacity 0.15s, transform 0.1s;
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: #000;
  border: 1px solid #2a2a2a;
  color: #ececec;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn-secondary:hover { border-color: #444; color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ---- Sections ---- */
.section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  max-width: 100%;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
}

.section-alt > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

/* ---- Feature Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 3rem;
}

.card {
  background: var(--card-bg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.2s linear;
  cursor: default;
}

/* Top accent bar — sweeps in from left on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { background: #15151a; transform: scale(1.17); z-index: 2; }

/* Per-card accent colors */
.card:nth-child(1)::before { background: var(--orange); }
.card:nth-child(2)::before { background: var(--blue); }
.card:nth-child(3)::before { background: #8b5cf6; }
.card:nth-child(4)::before { background: #00d4ff; }
.card:nth-child(5)::before { background: var(--green); }
.card:nth-child(6)::before { background: #f59e0b; }

/* Card 1: Keystrokes — title highlights orange */
.card:nth-child(1):hover h3 { color: var(--orange); }

/* Card 2: AI Awareness — background pulses like lightbar working state */
@keyframes card-ai-pulse {
  0%, 100% { background: #15151a; }
  50%       { background: #0a1428; }
}
.card:nth-child(2):hover { animation: card-ai-pulse 2s ease-in-out infinite; }

/* Card 5: tmux — title highlights terminal green */
.card:nth-child(5):hover h3 { color: var(--green); }

/* Card 6: Haptic — rumble vibration on hover */
@keyframes rumble {
  0%, 100% { transform: scale(1.17) translateX(0); }
  15%       { transform: scale(1.17) translateX(-3px); }
  30%       { transform: scale(1.17) translateX(3px); }
  45%       { transform: scale(1.17) translateX(-2px); }
  60%       { transform: scale(1.17) translateX(2px); }
  75%       { transform: scale(1.17) translateX(-1px); }
  90%       { transform: scale(1.17) translateX(1px); }
}
.card:nth-child(6):hover { animation: rumble 0.45s ease both; }

.card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.2s;
}

.card p {
  color: #777;
  font-size: 0.83rem;
  line-height: 1.75;
}

.card a { color: var(--orange); }

/* ---- AI Awareness ---- */
.ai-layout {
  max-width: 640px;
  margin: 0 auto;
}

.ai-layout h2 {
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.ai-layout > .ai-text > p {
  color: #777;
  font-size: 0.88rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.state-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.state-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mirrors lightbar: rgb(0,100,255), sinusoidal 2 s, brightness 0.30 → 1.0 */
@keyframes pulse-blue {
  0%, 100% { background: rgb(0, 30, 77);   box-shadow: 0 0 4px  rgba(0, 100, 255, 0.3); }
  50%       { background: rgb(0, 100, 255); box-shadow: 0 0 14px rgba(0, 100, 255, 0.9); }
}
.dot-blue  { background: rgb(0, 100, 255); box-shadow: 0 0 8px rgba(0, 100, 255, 0.7);
             animation: pulse-blue 2s ease-in-out infinite; }
.dot-green { background: var(--green);  box-shadow: 0 0 8px rgba(0, 255, 0, 0.7); }
.dot-orange{ background: var(--orange); box-shadow: 0 0 8px rgba(255, 140, 0, 0.7); }

.state-item div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.state-item strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.state-item span {
  font-size: 0.78rem;
  color: var(--muted);
}

.ai-tools {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.75rem !important;
  letter-spacing: 0.01em;
}

.ai-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- Profiles ---- */
.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.profile-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: #bbb;
  vertical-align: middle;
}

td:first-child {
  color: #555;
  width: 50%;
}

tr:last-child td { border-bottom: none; }

/* ---- Requirements ---- */
.req-list {
  list-style: none;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-top: 1rem;
}

.req-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.88rem;
  color: #bbb;
  line-height: 1.5;
}

.req-check {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.req-opt {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
  border: 1px solid #272730;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---- Steps ---- */
.steps {
  list-style: none;
  max-width: 540px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #000;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.steps li div strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.steps li div p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: #444;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

footer a { color: #444; }
footer a:hover { color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .profiles-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section, .section-alt { padding: 3.5rem 1.25rem; }
  .hero h1 { letter-spacing: -0.03em; }
}
