/* ============================================================
   SNIPLO — style.css
   Pure static CSS, zero build step, GitHub Pages ready
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

/* ── Variables ── */
:root {
  --primary: #4B7BFF;
  --primary-dark: #3A63E0;
  --secondary: #7C5CFF;
  --bg: #F7F8FC;
  --bg-card: #FFFFFF;
  --bg-alt: #F0F2FA;
  --text: #0E1523;
  --text-muted: #6B7694;
  --border: #E2E6F0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --nav-h: 64px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Typography helpers ── */
.text-muted { color: var(--text-muted); }
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 10px;
  transition: all .18s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn-sm  { padding: .45rem 1rem; font-size: .875rem; }
.btn-lg  { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(75, 123, 255, .3);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(75,123,255,.35); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(75,123,255,.05); }

.btn-link {
  background: none;
  color: var(--primary);
  border: none;
  padding: 0;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.btn-link:hover { gap: .6rem; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .35rem .875rem;
  background: rgba(75,123,255,.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 1.5rem;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247,248,252,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.nav-logo img { border-radius: 6px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s;
}
.nav-links a.btn-primary { color: #fff; }
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile nav */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; justify-content: center; }
}

/* ── HERO ── */
.hero {
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { max-width: 520px; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Demo card */
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border);
}
.demo-dots span:nth-child(1) { background: #FF5F57; }
.demo-dots span:nth-child(2) { background: #FEBC2E; }
.demo-dots span:nth-child(3) { background: #28C840; }
.demo-title { font-size: .8125rem; color: var(--text-muted); font-weight: 500; }
.demo-body {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: .9rem;
  min-height: 140px;
}
.demo-typing {
  color: var(--text);
  line-height: 1.6;
}
.demo-typing::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--primary);
}
.demo-expanded {
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}
.demo-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  background: rgba(75,123,255,.06);
  border-top: 1px solid rgba(75,123,255,.12);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .demo-card { max-width: 520px; }
}

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-cta { padding: 5rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .75rem;
}
.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(75,123,255,.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon.secondary {
  background: rgba(124,92,255,.1);
  color: var(--secondary);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.feature-card p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SPLIT SECTION ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .split-section { grid-template-columns: 1fr; gap: 2.5rem; } }

.split-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.split-content .text-muted {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.check-list { list-style: none; display: flex; flex-direction: column; gap: .875rem; margin-bottom: 2rem; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .9375rem; }
.check-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(75,123,255,.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* Code card */
.code-card {
  background: #0E1523;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-header {
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.code-lang { font-size: .8125rem; color: rgba(255,255,255,.4); font-family: var(--mono); }
.code-body { padding: 1.5rem; }
.code-line { margin-bottom: .75rem; }
.code-label { display: block; font-size: .75rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.code-trigger {
  font-family: var(--mono);
  font-size: .9375rem;
  color: #7C5CFF;
  background: rgba(124,92,255,.15);
  padding: .2em .6em;
  border-radius: 6px;
}
.code-expansion {
  font-family: var(--mono);
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  padding: 1rem 1.125rem;
}
.code-var { color: #4B7BFF; }

/* ── PRIVACY GRID ── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.privacy-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}
.privacy-icon.secondary { color: var(--secondary); }
.privacy-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.privacy-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  color: #fff;
}
.cta-box h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .875rem;
  letter-spacing: -.025em;
}
.cta-box p { font-size: 1.125rem; opacity: .85; margin-bottom: 2rem; }
.cta-box .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cta-box .btn-primary:hover { opacity: .95; transform: translateY(-2px); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header-content { max-width: 640px; margin-inline: auto; }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.page-header p { font-size: 1.125rem; color: var(--text-muted); }

/* ── FEATURES DETAIL PAGE ── */
.feature-detail {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem 0;
}
.feature-detail-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(75,123,255,.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-detail-icon.secondary {
  background: rgba(124,92,255,.1);
  color: var(--secondary);
}
.feature-detail-content { flex: 1; }
.feature-detail-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.feature-detail-content > p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.feature-example {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.example-before, .example-after {
  display: flex; flex-direction: column; gap: .35rem;
}
.example-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.example-before code {
  font-family: var(--mono);
  font-size: 1rem;
  background: rgba(75,123,255,.1);
  color: var(--primary);
  padding: .25em .65em;
  border-radius: 6px;
  display: inline-block;
}
.example-after span { font-size: .9375rem; color: var(--text); line-height: 1.5; max-width: 360px; }
.example-arrow { font-size: 1.25rem; color: var(--text-muted); padding-top: 1.2rem; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.feature-list li {
  font-size: .9375rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.vars-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}
.var-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .45rem .875rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.var-chip code {
  font-family: var(--mono);
  color: var(--primary);
  font-size: .875rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: .5rem 0;
}

@media (max-width: 640px) {
  .feature-detail { flex-direction: column; }
}

/* ── PRIVACY PAGE ── */
.privacy-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin-inline: auto;
}
.privacy-summary h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.privacy-summary ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.privacy-summary li { font-size: .9375rem; color: var(--text-muted); line-height: 1.6; }
.privacy-summary code {
  font-family: var(--mono);
  font-size: .875em;
  background: rgba(75,123,255,.08);
  color: var(--primary);
  padding: .15em .45em;
  border-radius: 4px;
}

.prose {
  max-width: 760px;
  margin-inline: auto;
}
.prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: .875rem;
  letter-spacing: -.015em;
}
.prose p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: .875rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .875rem;
}
.prose li {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose code {
  font-family: var(--mono);
  font-size: .875em;
  background: rgba(75,123,255,.08);
  color: var(--primary);
  padding: .15em .45em;
  border-radius: 4px;
}

/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  max-width: 960px;
  margin-inline: auto;
}
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-success {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.success-icon {
  width: 72px; height: 72px;
  background: rgba(75,123,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin: 0 auto 1.25rem;
}
.contact-success h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: .5rem; }
.contact-success p { color: var(--text-muted); }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  font-size: .9375rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75,123,255,.12);
}
.form-group textarea { resize: vertical; }
.form-group select { appearance: none; cursor: pointer; }
.form-note { font-size: .8125rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(75,123,255,.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon.secondary { background: rgba(124,92,255,.1); color: var(--secondary); }
.contact-info-card h4 { font-size: .9375rem; font-weight: 600; margin-bottom: .25rem; }
.contact-info-card p { font-size: .875rem; color: var(--text-muted); }
.contact-info-card a { font-size: .875rem; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: .875rem; }
.footer-brand p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.footer-links { display: flex; gap: 3rem; }
.footer-col h4 { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: .875rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .875rem; color: var(--text-muted); transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { padding-top: 1.5rem; }
.footer-bottom p { font-size: .8125rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; }
  .footer-brand { max-width: 100%; }
  .footer-links { gap: 2rem; }
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
