:root {
  --bg:            #0b0f14;
  --bg2:           #0f1419;
  --bg3:           #131a22;
  --border:        #1e2a35;
  --accent:        #d97706;
  --accent-dk:     #b45309;
  --text:          #e2e8f0;
  --muted:         #64748b;
  --faint:         #1e293b;
  --color-success: #a8c248;
  --font:          'Inter', sans-serif;
  --mono:          'Roboto Mono', monospace;
  --transition:    0.2s;
  --card-pad:      40px;
  --section-pad:   100px 24px;
}

[data-theme="light"] {
  --bg:            #f8f6f2;
  --bg2:           #f0eee9;
  --bg3:           #e4e1da;
  --border:        #dddad3;
  --accent:        #b45309;
  --accent-dk:     #92400e;
  --text:          #2e2e2c;
  --muted:         #7a7872;
  --faint:         #dddad3;
  --color-success: #4d7c0f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* MONO UTILITY */
.nav-logo, .hero-label, .signal-item, .section-label, .product-tag,
.spec-line, .product-demo, .demo-bar, .demo-msg .label,
.stat-value, .contact-detail,
.footer-logo, .footer-text {
  font-family: var(--mono);
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(11,15,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] nav {
  background: rgba(248,246,242,0.92);
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #0b0f14 !important;
  padding: 8px 18px;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity var(--transition) !important;
}

.nav-cta:hover { opacity: 0.85; }

/* THEME TOGGLE */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(217,119,6,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217,119,6,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-image { display: none; }

@media (min-width: 1024px) {
  .hero-image {
    display: block;
    position: relative;
    overflow: hidden;
  }
  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
  }
  .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 40%);
  }
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary, .btn-ghost {
  padding: 14px 32px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: #0b0f14;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: opacity var(--transition);
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* SIGNAL BAR */
.signal-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  overflow: hidden;
}

.signal-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.signal-item {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* SHARED SECTION STYLES */
section { padding: var(--section-pad); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 640px;
}

/* PILLARS */
.pillars { background: var(--bg2); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 64px;
  border: 1px solid var(--border);
}

.pillar {
  background: var(--bg3);
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--faint); }

.pillar-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.pillar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.pillar-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* PRODUCTS */
.products { background: var(--bg); }

.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: var(--card-pad);
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  transition: border-color var(--transition);
}

.product-card:hover { border-color: var(--accent); }

.product-tag {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.product-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.spec-line::before {
  content: '▸';
  color: var(--accent);
  font-size: 10px;
}

/* DEMO PANEL */
.product-demo {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 24px;
  font-size: 12px;
  font-family: var(--mono);
}

.demo-bar {
  background: var(--accent);
  padding: 8px 14px;
  color: #0b0f14;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.demo-row {
  display: flex;
  margin-bottom: 12px;
}

.demo-row-user  { justify-content: flex-end; }
.demo-row-assistant { justify-content: flex-start; }

.demo-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  line-height: 1.6;
  word-break: break-word;
}

.demo-bubble .label {
  opacity: 0.5;
  font-size: 10px;
  margin-bottom: 4px;
}

.demo-bubble.user {
  background: var(--accent);
  color: #0b0f14;
  border-color: var(--accent);
  font-family: var(--font);
}

.demo-bubble.assistant {
  background: var(--bg3);
  border-color: var(--border);
  color: var(--color-success);
}

[data-theme="light"] .demo-bubble.assistant {
  color: var(--text);
}

.demo-meta {
  color: var(--muted);
  font-size: 10px;
  margin-top: 16px;
  font-family: var(--mono);
}

/* SOURCES */
.sources {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.sources summary {
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  user-select: none;
}

.sources ul {
  margin-top: 6px;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sources li { list-style: none; }
.sources li::before { content: "▸ "; color: var(--accent); }

/* ABOUT */
.about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}

.about-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-text p strong { color: var(--text); }

.about-stats { display: flex; flex-direction: column; gap: 2px; }

.stat-row {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label { font-size: 13px; color: var(--muted); }

.stat-value {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

/* CONTACT */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-detail {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.contact-detail span:first-child { color: var(--accent); }

form { display: flex; flex-direction: column; gap: 16px; }

input, textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  width: 100%;
}

input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 120px; }

.form-submit {
  background: var(--accent);
  color: #0b0f14;
  border: none;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity var(--transition);
  align-self: flex-start;
}

.form-submit:hover { opacity: 0.85; }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 2px;
}

.footer-text {
  font-size: 12px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .product-card,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid,
  .contact-grid { gap: 40px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); }
}