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

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2129;
  --border: #30363d;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --accent: #c9a96e;
  --accent-hover: #dfc08a;
  --accent-bg: rgba(201, 169, 110, 0.1);
  --green: #3fb950;
  --yellow: #d29922;
  --radius: 8px;
}

html {
  overflow-y: scroll;  /* always show scrollbar to prevent layout shift between pages */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.3; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--text-dim); max-width: 540px; margin: 0 auto 3rem; }

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

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #1a0f00;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: #1a0f00; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-dim); }

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ── Navigation ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
}
.logo:hover { color: var(--text); }
.logo-icon { color: var(--accent); margin-right: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a { color: var(--text-dim); font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #c9a96e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 60px; }

/* ── Mock Rhino UI ───────────────────────────────────────────── */
.hero-visual { max-width: 800px; margin: 0 auto; }

.mock-rhino {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #1e1e1e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mock-viewport {
  flex: 1;
  height: 320px;
  background: #2d2d2d;
  position: relative;
  overflow: hidden;
}

.mock-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.mock-obj {
  position: absolute;
  border: 2px solid rgba(201, 169, 110, 0.6);
}

.mock-box {
  width: 80px; height: 60px;
  left: 30%; top: 40%;
  transform: skewX(-10deg) skewY(5deg);
  background: rgba(201, 169, 110, 0.08);
}

.mock-sphere {
  width: 50px; height: 50px;
  left: 55%; top: 35%;
  border-radius: 50%;
  background: rgba(63, 185, 80, 0.08);
  border-color: rgba(63, 185, 80, 0.6);
}

.mock-cyl {
  width: 35px; height: 70px;
  left: 45%; top: 50%;
  border-radius: 50% / 20%;
  background: rgba(210, 153, 34, 0.08);
  border-color: rgba(210, 153, 34, 0.6);
}

.mock-panel {
  width: 280px;
  background: #1e1e1e;
  border-left: 1px solid #3e3e3e;
  padding: 0;
  font-size: 12px;
  display: flex;
  flex-direction: column;
}

.mock-panel-header {
  padding: 8px 12px;
  background: #2d2d2d;
  border-bottom: 1px solid #3e3e3e;
  color: #e0e0e0;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.mock-panel-header img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 6px;
  filter: invert(1);
}

.mock-msg {
  margin: 6px 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
}

.mock-user {
  background: #3a3226;
  color: #f0e6d4;
  margin-left: 30px;
  border: 1px solid #5a4a35;
}

.mock-assistant {
  background: #2d2d2d;
  border: 1px solid #3e3e3e;
  color: #d4d4d4;
}

.mock-tool {
  padding: 2px 12px;
  font-size: 10px;
  color: #dcdcaa;
}

.mock-tool.done { color: #6a9955; }

/* ── Features ────────────────────────────────────────────────── */
.features { padding: 100px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ── Use Cases ───────────────────────────────────────────────── */
.use-cases { padding: 80px 0; }

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 3rem;
}

.use-case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.use-case h3 { font-size: 0.95rem; margin-bottom: 6px; color: var(--accent); }
.use-case p { color: var(--text-dim); font-size: 0.85rem; }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing { padding: 100px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  position: relative;
}

.pricing-card .btn-block {
  margin-top: auto;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.1);
}

.logo img {
  width: 48px;
  height: 48px;
  vertical-align: middle;
  margin-right: 8px;
  filter: invert(1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-tier { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.pricing-period { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 20px; }

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.pricing-features li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* ── Demo ────────────────────────────────────────────────────── */
.demo { padding: 80px 0; }

.demo-placeholder {
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.play-btn {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s;
}

.play-btn:hover { transform: scale(1.1); }
.demo-placeholder p { color: var(--text-dim); }

/* ── How it Works ────────────────────────────────────────────── */
.how-it-works { padding: 80px 0; }

.steps {
  display: flex;
  gap: 24px;
  margin-top: 3rem;
}

.step {
  flex: 1;
  text-align: center;
  padding: 24px;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 2px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.9rem; }
.step code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  filter: invert(1);
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 700;
}
.footer-brand p { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; width: 100%; font-weight: 400; }

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-links h4 { font-size: 0.85rem; margin-bottom: 12px; }
.footer-links a {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 3px 0;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .use-case-grid { grid-template-columns: 1fr 1fr; }
  .mock-rhino { flex-direction: column; }
  .mock-panel { width: 100%; border-left: none; border-top: 1px solid #3e3e3e; }
  .steps { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
}
