/* ================================================================
   LYRA AI — Stylesheet  |  lyraauth.com
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg:        #faf9f7;
  --surface:   #ffffff;
  --surface2:  #f3f1ed;
  --border:    rgba(20,18,14,0.08);
  --border-hi: rgba(20,18,14,0.18);
  --text:      #14120e;
  --muted:     #6e6b67;
  --dim:       #a8a5a0;
  --accent:    #14120e;
  --accent-hi: #292524;
  --green:     #16a34a;
  --radius:    10px;
  --radius-sm: 7px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; color: var(--text); }
h2 { font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; color: var(--text); }
h3 { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
p  { color: var(--muted); line-height: 1.75; font-size: 0.9375rem; }
a  { color: inherit; text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.7; }
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8125em;
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* Layout */
.container  { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* Gradient text — warm dark */
.gradient-text {
  background: linear-gradient(135deg, #14120e 0%, #6e6b67 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 7px;
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s; border: none;
  white-space: nowrap; font-family: inherit;
}
.btn-primary {
  background: var(--text); color: #faf9f7;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary:hover { background: #292524; opacity: 1; }
.btn-outline {
  background: transparent; color: var(--text);
  box-shadow: 0 0 0 1px var(--border-hi);
}
.btn-outline:hover { box-shadow: 0 0 0 1px rgba(20,18,14,0.35); opacity: 1; }
.btn-lg { padding: 13px 26px; font-size: 0.9375rem; border-radius: 8px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 57px;
  background: rgba(250,249,247,0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 100%;
}
.nav-logo { font-size: 0.9375rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a { padding: 6px 12px; color: var(--muted); font-size: 0.875rem; font-weight: 450; border-radius: 6px; }
.nav-links a:hover { color: var(--text); opacity: 1; background: var(--surface2); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* Mobile nav */
.nav-hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--muted); border-radius: 2px; }
.nav-mobile {
  display: none; position: fixed;
  top: 57px; left: 0; right: 0;
  background: rgba(250,249,247,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px; z-index: 99;
  flex-direction: column; gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { display: block; padding: 10px 12px; color: var(--muted); font-size: 0.9375rem; border-radius: 8px; }
.nav-mobile a:hover { color: var(--text); background: var(--surface2); opacity: 1; }
.nav-mobile .mobile-cta { margin-top: 10px; text-align: center; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 120px 24px 80px; position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(20,18,14,0.04) 0%, transparent 70%);
}
.hero-eyebrow,
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid var(--border-hi);
  font-size: 0.75rem; font-weight: 500; color: var(--muted);
  margin-bottom: 28px; letter-spacing: 0.03em; text-transform: uppercase;
  background: var(--surface);
}
.hero-eyebrow span { width: 5px; height: 5px; background: var(--text); border-radius: 50%; flex-shrink: 0; }
.hero-title { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.0625rem; color: var(--muted);
  max-width: 500px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; margin-top: 56px;
  max-width: 560px; width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.hero-stat,
.hero-stats > div { flex: 1; padding: 22px 20px; text-align: center; }
.hero-stat + .hero-stat,
.hero-stats > div + div { border-left: 1px solid var(--border); }
.hero-stat-num { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.hero-stat-label { font-size: 0.6875rem; color: var(--dim); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Section label */
.label,
.section-label {
  display: inline-block; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 14px;
}

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--border-hi); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* Product grid */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-cell,
.product-card {
  background: var(--surface); padding: 28px 24px;
  transition: background 0.15s;
}
.product-cell:hover,
.product-card:hover { background: var(--surface2); }
.product-cell h3,
.product-card h3 { margin-bottom: 6px; font-size: 0.9375rem; }
.product-cell p,
.product-card p  { font-size: 0.875rem; line-height: 1.65; }
.product-icon { font-size: 1.25rem; margin-bottom: 12px; display: block; }
.product-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--dim);
  background: var(--surface2); border: 1px solid var(--border);
  margin-right: 4px; margin-bottom: 4px;
}
.product-cell .learn,
.product-card .learn { font-size: 0.8125rem; color: var(--muted); margin-top: 16px; display: inline-block; }
.product-cell .learn:hover,
.product-card .learn:hover { color: var(--text); opacity: 1; }

/* Steps */
.steps-grid,
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step-cell,
.step { background: var(--surface); padding: 28px 24px; transition: background 0.15s; }
.step-cell:hover,
.step:hover { background: var(--surface2); }
.step-num { font-size: 0.6875rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.step-cell h3,
.step h3 { font-size: 0.9375rem; margin-bottom: 6px; }
.step-cell p,
.step p  { font-size: 0.875rem; }

/* Flywheel */
.flywheel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; text-align: center; }
.flywheel-items { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.flywheel-item { display: inline-flex; align-items: center; padding: 6px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-size: 0.8125rem; color: var(--muted); }

/* Three-column grid */
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* Code */
.code-block {
  background: #f7f5f1; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px;
  font-family: 'SF Mono','Fira Code',monospace; font-size: 0.8125rem;
  color: #5c5955; overflow-x: auto; position: relative; line-height: 1.7;
}
.code-block .copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; color: var(--muted); font-size: 0.6875rem;
  padding: 3px 8px; cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.code-block .copy-btn:hover { color: var(--text); border-color: var(--border-hi); }
.code-block .copy-btn.copied { color: var(--green); }
/* New short class names */
.code-block .c  { color: #b0aca8; }   /* comment */
.code-block .s  { color: #477a3e; }   /* string */
.code-block .t  { color: #7b5ea0; }   /* tag */
.code-block .a  { color: #8c6a1e; }   /* attr */
.code-block .k  { color: #1c5ea6; }   /* keyword */
.code-block .fn { color: #14120e; font-weight: 600; } /* function */
/* Old long class names */
.code-block .comment { color: #b0aca8; }
.code-block .attr    { color: #8c6a1e; }
.code-block .string  { color: #477a3e; }
.code-block .tag     { color: #7b5ea0; }
.code-block .kw      { color: #1c5ea6; }

/* 5-column pricing grid */
.pricing-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
}
.price-card5 {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 0;
}
.price-card5-featured {
  border-color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.price-tier5 {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--dim); margin-bottom: 10px;
}
.price-amount {
  font-size: 1.875rem; font-weight: 700; letter-spacing: -0.04em;
  color: var(--text); line-height: 1; margin-bottom: 8px;
}
.price-amount span { font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.price-desc5 { font-size: 0.8125rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.price-card5 .price-features { flex: 1; margin-bottom: 20px; }
.price-card5 .price-features li { font-size: 0.8125rem; }

@media (max-width: 1024px) {
  .pricing-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .pricing-grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .pricing-grid-5 { grid-template-columns: 1fr; }
}

/* Tabs */
.tabs { display: flex; gap: 1px; margin-bottom: 0; background: var(--border); border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; overflow: hidden; }
.tab-btn {
  padding: 8px 14px; background: var(--bg); color: var(--muted);
  border: none; font-size: 0.8125rem; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: all 0.15s; flex-shrink: 0;
}
.tab-btn.active { background: var(--surface); color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tabs-wrapper .code-block { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare-table th { padding: 10px 16px; text-align: left; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--border); }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--text); font-weight: 500; }
.compare-table .yes { color: var(--green); font-weight: 600; }
.compare-table .no  { color: var(--dim); }
.compare-table .hi  { background: rgba(20,18,14,0.02); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.price-card.featured { border-color: rgba(20,18,14,0.25); box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.price-tier { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 8px; }
.price-num,
.price-tag { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.04em; color: var(--text); line-height: 1.1; }
.price-num span,
.price-tag span { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.price-desc { font-size: 0.875rem; color: var(--muted); margin: 8px 0 20px; }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li { padding: 8px 0; font-size: 0.875rem; color: var(--muted); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.price-features li:last-child { border-bottom: none; }
.price-features li::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2316a34a'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Note */
.note { background: rgba(20,18,14,0.03); border: 1px solid var(--border-hi); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.875rem; color: var(--muted); }
.note strong { color: var(--text); }

/* Divider */
.divider { height: 1px; background: var(--border); }

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-desc { font-size: 0.875rem; color: var(--dim); max-width: 220px; line-height: 1.6; }
.footer-col h4 { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.875rem; color: var(--muted); }
.footer-col a:hover { color: var(--text); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.8125rem; color: var(--dim); }

/* Docs layout */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
.docs-sidebar { position: sticky; top: 77px; height: fit-content; }
.docs-sidebar ul { list-style: none; }
.docs-sidebar li { margin-bottom: 2px; }
.docs-sidebar a { display: block; padding: 5px 10px; font-size: 0.8125rem; color: var(--muted); border-radius: 6px; }
.docs-sidebar a:hover { color: var(--text); background: var(--surface2); opacity: 1; }
.docs-sidebar .group { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); padding: 16px 10px 4px; }
.docs-content h2 { font-size: 1.5rem; margin: 56px 0 14px; padding-top: 56px; border-top: 1px solid var(--border); }
.docs-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.docs-content h3 { font-size: 1rem; font-weight: 600; margin: 28px 0 8px; color: var(--text); }
.docs-content p { margin-bottom: 14px; }
.docs-content ul { padding-left: 18px; color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
.docs-content .code-block { margin: 16px 0; }

/* Terminal */
.terminal {
  background: #f7f5f1; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px;
  font-family: 'SF Mono','Fira Code',monospace; font-size: 0.8125rem; line-height: 1.8;
}
.terminal .p  { color: #7b5ea0; }
.terminal .cmd { color: var(--text); }
.terminal .out { color: var(--dim); }
.terminal .ok  { color: var(--green); }

/* Grid helpers */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Animations */
@keyframes up { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
.u1,.fade-up   { animation: up 0.5s ease both; }
.u2,.fade-up-2 { animation: up 0.5s 0.07s ease both; }
.u3,.fade-up-3 { animation: up 0.5s 0.14s ease both; }
.u4,.fade-up-4 { animation: up 0.5s 0.21s ease both; }

/* Scroll fade */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .products-grid, .steps-grid, .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-hamburger { display: flex; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
}
@media (max-width: 540px) {
  .products-grid, .steps-grid, .steps, .three-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; letter-spacing: -0.03em; }
  h2 { font-size: 1.5rem; }
  .section { padding: 64px 0; }
  .hero { padding: 96px 16px 60px; }
  .container { padding: 0 16px; }
  .hero-stats { flex-direction: column; }
  .hero-stat + .hero-stat,
  .hero-stats > div + div { border-left: none; border-top: 1px solid var(--border); }
  .tabs { overflow-x: auto; }
  .tab-btn { flex-shrink: 0; }
  .pricing-grid { max-width: 100%; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}
