/* ===========================================================
   CippyThemes - design tokens
   Warm near-black canvas (not pure neutral black), amber as the
   primary "signature" accent with violet as a secondary support
   color - deliberately different from CippyLearn's own mint-on-
   black product theme, so the sales site reads as its own brand.
   Display type is a geometric technical sans; price/code/labels
   use a monospace face to echo the product's own dev-tool nature
   (license keys, terminal-style status lines).
=========================================================== */
:root {
  --bg: #0f0d14;
  --bg-alt: #15121c;
  --card: #1a1624;
  --card-hover: #201b2c;
  --border: #2a2435;
  --text: #f2eee8;
  --text-muted: #9a92a8;
  --accent: #f5b942;
  --accent-dark: #c8901f;
  --accent-soft: rgba(245, 185, 66, 0.12);
  --accent-2: #7c5cff;
  --accent-2-soft: rgba(124, 92, 255, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(245,185,66,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(124,92,255,0.10), transparent 60%);
  pointer-events: none; z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.btn-primary { background: var(--accent); color: #1a1305; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,185,66,0.25); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,13,20,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; color: #16121f; font-family: var(--font-mono); font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 14.5px; color: var(--text-muted); font-weight: 500; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.lang-switch { display: flex; align-items: center; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; color: var(--text-muted); }
.lang-switch a.active { background: var(--accent); color: #1a1305; }
.lang-switch a:hover:not(.active) { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(245,185,66,0.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 46px; line-height: 1.12; margin-bottom: 20px; }
.hero-subtitle { font-size: 17px; color: var(--text-muted); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-meta code { font-size: 12.5px; color: var(--text-muted); }
.hero-meta .ok { color: var(--accent); font-weight: 600; }

/* Signature element: interactive browser mockup with live theme swatches */
.hero-visual { display: flex; flex-direction: column; gap: 14px; }
.browser-mock {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.browser-mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.mdot { width: 9px; height: 9px; border-radius: 50%; }
.mdot-red { background: #ff5f57; } .mdot-yellow { background: #ffbd2e; } .mdot-green { background: #28c840; }
.browser-mock-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); background: var(--bg); padding: 3px 10px; border-radius: 5px; }
.browser-mock-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
.mock-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.mock-thumb { aspect-ratio: 16/9; border-radius: 7px; margin-bottom: 10px; background: linear-gradient(135deg, var(--demo-accent, var(--accent)), transparent); transition: background .25s; }
.mock-line { height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 7px; }
.mock-line.w-80 { width: 80%; } .mock-line.w-70 { width: 70%; } .mock-line.w-60 { width: 60%; } .mock-line.w-50 { width: 50%; } .mock-line.w-40 { width: 40%; }
.mock-btn {
  margin-top: 8px; text-align: center; font-size: 11px; font-weight: 700; padding: 7px; border-radius: 6px;
  background: var(--demo-accent, var(--accent)); color: #16121f; transition: background .25s;
}
.theme-swatch-row { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.swatch-label { font-size: 12px; color: var(--text-muted); margin-right: 4px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); cursor: pointer;
  transition: transform .15s, border-color .15s; padding: 0;
}
.swatch:hover { transform: scale(1.15); border-color: rgba(255,255,255,0.5); }
.hero-visual-caption { font-size: 12.5px; color: var(--text-muted); text-align: center; padding: 0 10px; }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); padding: 34px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-icon { font-size: 22px; line-height: 1; }
.trust-item strong { font-size: 14.5px; display: block; margin-bottom: 4px; }
.trust-item p { font-size: 13px; color: var(--text-muted); }

/* ---------- Sections / layout with sidebar ---------- */
.page-layout { padding: 76px 0 20px; }
.page-layout-inner { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.section { margin-bottom: 88px; }
.section-eyebrow { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-2); font-weight: 600; margin-bottom: 10px; }
.section-title { font-size: 30px; margin-bottom: 12px; }
.section-desc { color: var(--text-muted); font-size: 15.5px; max-width: 620px; margin-bottom: 40px; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent-dark); transform: translateY(-3px); }
.feature-icon { font-size: 26px; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.8px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.price-card.is-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(245,185,66,0.12); }
.price-badge {
  position: absolute; top: -13px; left: 26px; background: var(--accent); color: #1a1305;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-family: var(--font-mono);
}
.price-card h3 { font-size: 18px; margin-bottom: 16px; }
.price-amount { margin-bottom: 22px; }
.price-currency { font-family: var(--font-mono); font-size: 16px; color: var(--text-muted); vertical-align: top; }
.price-number { font-family: var(--font-mono); font-size: 32px; font-weight: 600; }
.price-number-text { font-size: 22px; }
.price-period { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.price-features { margin-bottom: 26px; flex: 1; }
.price-features li { display: flex; gap: 9px; font-size: 13.8px; color: var(--text-muted); padding: 6px 0; }
.price-check { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; color: var(--text); text-align: left; cursor: pointer;
  padding: 18px 20px; font-size: 15px; font-weight: 600; font-family: var(--font-body);
}
.faq-toggle { font-family: var(--font-mono); color: var(--accent); font-size: 18px; transition: transform .2s; flex-shrink: 0; }
.faq-item.is-open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer p { padding: 0 20px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-section { margin-bottom: 40px; }
.contact-box {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
  border: 1px solid var(--border); border-radius: 20px; padding: 44px; text-align: center;
}
.contact-box .section-desc { margin-left: auto; margin-right: auto; }
.contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.contact-email { margin-top: 18px; font-size: 13.5px; color: var(--text-muted); }
.contact-email a { color: var(--accent); font-weight: 600; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.widget-title { font-size: 13px; font-family: var(--font-mono); color: var(--accent-2); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .04em; }
.partner-list { display: flex; flex-direction: column; gap: 12px; }
.partner-list a { display: block; padding: 12px; border-radius: 10px; background: var(--bg-alt); border: 1px solid transparent; transition: border-color .15s; }
.partner-list a:hover { border-color: var(--accent-dark); }
.partner-list strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.partner-list span { font-size: 12px; color: var(--text-muted); }
.partner-empty { font-size: 13px; color: var(--text-muted); }
.widget-help p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.55; }
.widget-license p { font-size: 12.8px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.55; }
.license-sample {
  display: block; text-align: center; font-size: 13px; padding: 10px; border-radius: 8px;
  background: var(--bg-alt); border: 1px dashed var(--border); color: var(--accent);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 0; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 32px; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.footer-brand p { font-family: var(--font-body); font-weight: 400; color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13.5px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .page-layout-inner { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .widget { flex: 1; min-width: 240px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 20px;
    transform: translateX(100%); transition: transform .25s; border-top: 1px solid var(--border);
  }
  .nav-links.is-open { transform: translateX(0); }
  .trust-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .browser-mock-body { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
