/* =============================================
   Terminal Info — Landing Page Stylesheet
   ============================================= */

/* ---- CSS Custom Properties ---- */
:root {
  color-scheme: light;

  /* Warm neutral palette */
  --bg:           #faf7f2;
  --bg-card:      #f2ebe0;
  --bg-border:    #e4d8c5;
  --bg-dark:      #201812;
  --bg-dark-card: #2e2218;
  --bg-dark-border:#3e2e1e;

  /* Text */
  --text:         #2c2a28;
  --text-muted:   #7a6e62;
  --text-light:   #f0e8d8;
  --text-light-muted: #a89880;

  /* Accent */
  --accent:       #c17f3e;
  --accent-hover: #a66832;
  --accent-2:     #e07742;
  --accent-glow:  rgba(193, 127, 62, 0.25);

  /* Terminal */
  --term-bg:      #18120d;
  --term-text:    #e8dcc8;
  --term-prompt:  #c17f3e;
  --term-cmd:     #f0d87a;
  --term-output:  #b8a88a;
  --term-green:   #7ec87e;
  --term-red:     #e07070;

  /* Layout */
  --measure:      680px;
  --container:    1100px;
  --container-sm: 800px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);

  /* Radius & shadow */
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 2px 12px rgba(44, 26, 10, 0.10);
  --shadow-lg:    0 8px 40px rgba(44, 26, 10, 0.18);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

code, pre, .mono {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Consolas, "Liberation Mono", monospace;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }

/* ---- Utility ---- */
.container    { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container-sm { max-width: var(--container-sm); margin-inline: auto; padding-inline: 1.5rem; }

.section { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s, box-shadow 0.18s, transform 0.12s;
  text-decoration: none;
  border: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(240,232,216,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); color: var(--text-light); border-color: rgba(240,232,216,0.6); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--bg-border);
}
.btn-ghost:hover { background: var(--bg-card); color: var(--text); border-color: var(--accent); }

/* ---- Site Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 60px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  text-decoration: none;
}
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-header .nav-cta { margin-left: auto; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- Hero ---- */
.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-block: 5rem 4rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 60% 40%, rgba(193,127,62,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(224,119,66,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(193,127,62,0.18);
  border: 1px solid rgba(193,127,62,0.35);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-install {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 100%;
}
.hero-install code {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  color: var(--term-cmd);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.hero-install .copy-btn {
  flex-shrink: 0;
  padding: 0.55rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: none;
  border-left: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light-muted);
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.hero-install .copy-btn:hover { background: rgba(255,255,255,0.12); color: var(--text-light); }
.hero-install .copy-btn.copied { color: var(--term-green); }

.hero-terminal {
  position: relative;
  z-index: 1;
}

/* ---- Terminal Window ---- */
.term-window {
  background: var(--term-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(193,127,62,0.12);
  overflow: hidden;
  font-size: 0.82rem;
}

.term-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green  { background: #28c840; }
.term-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

.term-body {
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 240px;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  line-height: 1.6;
}

.term-line { display: flex; gap: 0.5rem; margin-bottom: 0.1rem; }
.term-ps   { color: var(--term-prompt); font-weight: 700; flex-shrink: 0; }
.term-cmd  { color: var(--term-cmd); }
.term-out  { color: var(--term-output); }
.term-out.good { color: var(--term-green); }
.term-out.bad  { color: var(--term-red); }
.term-out.label{ color: var(--term-prompt); }
.term-cursor   { display: inline-block; width: 8px; height: 1em; background: var(--term-prompt); vertical-align: middle; animation: blink 1s step-start infinite; }
.term-box-border { color: rgba(193,127,62,0.6); }
.term-title-txt  { color: #fff; font-weight: 600; }
.term-key   { color: var(--text-light-muted); }
.term-val   { color: var(--term-text); }

@keyframes blink { 50% { opacity: 0; } }

/* ---- Stats strip ---- */
.stats-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--bg-border);
  padding-block: 1.25rem;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Features ---- */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-header { margin-bottom: 0; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---- Interactive Demo ---- */
.demo-section {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}
.demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(193,127,62,0.09) 0%, transparent 55%);
  pointer-events: none;
}

.demo-section .section-header h2 { color: #fff; }
.demo-section .section-header p  { color: var(--text-light-muted); }

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
}
.demo-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--text-light-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.demo-tab:hover { background: rgba(255,255,255,0.06); color: var(--text-light); }
.demo-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: start;
}

.demo-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.demo-info p {
  font-size: 0.92rem;
  color: var(--text-light-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.demo-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.demo-info li {
  font-size: 0.88rem;
  color: var(--text-light-muted);
  padding-left: 1.25rem;
  position: relative;
}
.demo-info li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.demo-window { position: relative; z-index: 1; }

/* ---- Comparison ---- */
.comparison-section { background: var(--bg); }
.comparison-section .section-header { margin-bottom: 3rem; }

.comparison-group { margin-bottom: 3.5rem; }
.comparison-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bg-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comparison-table th {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bg-border);
  vertical-align: middle;
  background: var(--bg-card);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr.highlight td { background: rgba(193,127,62,0.07); }
.comparison-table tr.highlight td:first-child { font-weight: 700; color: var(--accent); }

.check { color: var(--term-green); font-weight: 700; }
.cross { color: var(--text-muted); }
.partial { color: var(--accent); }

/* ---- Installation ---- */
.install-section { background: var(--bg-card); }
.install-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--bg-border);
  margin-bottom: 1.5rem;
}
.install-tab {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.install-tab:hover { color: var(--text); }
.install-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.install-content { display: none; }
.install-content.active { display: block; }

.code-block {
  background: var(--term-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}
.code-block pre {
  padding: 1rem 1.25rem;
  margin: 0;
  color: var(--term-text);
  font-size: 0.85rem;
  overflow-x: auto;
  line-height: 1.7;
}
.code-block .code-copy {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.code-block .code-copy:hover { background: rgba(255,255,255,0.08); color: #fff; }
.code-block .code-copy.copied { color: var(--term-green); border-color: var(--term-green); }

.install-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.install-note a { color: var(--accent); }

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.platform-chip {
  background: var(--bg);
  border: 1px solid var(--bg-border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.install-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.install-desc h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.install-desc p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ---- Plugin Ecosystem ---- */
.plugins-section { background: var(--bg); }
.plugins-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.plugin-cmds {
  background: var(--term-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.plugin-cmds-header {
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  font-family: monospace;
}
.plugin-cmd-list {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.plugin-cmd-item {
  font-size: 0.82rem;
  font-family: "SF Mono", Consolas, monospace;
  color: var(--term-output);
  display: flex;
  gap: 0.75rem;
}
.plugin-cmd-item .pcmd { color: var(--term-cmd); }
.plugin-cmd-item .pdesc { color: rgba(184, 168, 138, 0.6); font-style: italic; }

.plugins-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.plugins-copy p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.plugins-copy .plugin-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.plugins-copy .plugin-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}
.plugins-copy .plugin-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--term-green);
  font-weight: 700;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--bg-dark-border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: 0.85rem; color: var(--text-light-muted); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-light); text-decoration: none; }
.footer-divider {
  height: 1px;
  background: var(--bg-dark-border);
  margin-bottom: 1.5rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light-muted);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--text-light); }

/* ---- Legal Page ---- */
.legal-page { padding-block: 3rem 5rem; }
.legal-layout { max-width: var(--measure); }
.legal-title { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.section-copy { margin-bottom: 2rem; }
.disclaimer h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}
.disclaimer h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}
.disclaimer p { margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }
.disclaimer ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.disclaimer ul li { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-terminal { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-container { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .plugins-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}

@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--bg);
    padding: 2rem;
    align-items: flex-start;
    z-index: 99;
  }
  .site-nav.open a { font-size: 1.1rem; padding: 0.5rem 0; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-install code { font-size: 0.72rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
