/* Keptic Website */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #08090e;
  --bg-dark: #060710;
  --surface: rgba(255,255,255,0.035);
  --surface-h: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.14);
  --accent: #6366f1;
  --accent-l: #818cf8;
  --green: #22c55e;
  --text: #eeeef5;
  --text-2: #9498b8;
  --text-3: #5c5f7e;
  --r: 12px;
  --r-lg: 20px;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; }
section { padding: 100px 0; }
.section-dark { background: var(--bg-dark); }

/* Typography */
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: var(--text); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--text); }
p { color: var(--text-2); }
a { color: inherit; text-decoration: none; }

.section-head { margin-bottom: 56px; max-width: 560px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { font-size: 1.05rem; }

/* Buttons */
.btn-fill, .btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r);
  font-size: 0.92rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none; transition: all 0.2s ease;
}
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-fill {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-fill:hover { background: #5558e6; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,0.3); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-h);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.04); }
.btn-block { width: 100%; justify-content: center; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,9,14,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; }
.nav-brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 0.85rem; font-weight: 600; padding: 8px 16px;
  background: var(--accent); color: #fff;
  border-radius: 8px; transition: all 0.15s;
}
.nav-cta:hover { background: #5558e6; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }

/* Hero */
.hero {
  padding: 140px 0 100px; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 30% 30%, rgba(99,102,241,0.1), transparent),
    radial-gradient(ellipse 40% 35% at 70% 50%, rgba(139,92,246,0.07), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.hero-text { max-width: 520px; }
.hero-icon {
  margin-bottom: 28px;
}
.hero-icon img {
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(99,102,241,0.2), 0 0 0 1px rgba(255,255,255,0.06);
}
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.05rem; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 0.78rem; color: var(--text-3); }
.hero-img img {
  width: 100%; max-width: 500px; border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Cards */
.card {
  padding: 26px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.card h3 { margin: 14px 0 6px; }
.card p { font-size: 0.9rem; line-height: 1.6; }

.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ic-indigo { background: rgba(99,102,241,0.12);  color: var(--accent-l); }
.ic-violet { background: rgba(139,92,246,0.12);  color: #a78bfa; }
.ic-red    { background: rgba(239,68,68,0.10);   color: #f87171; }
.ic-teal   { background: rgba(45,212,191,0.10);  color: #5eead4; }
.ic-amber  { background: rgba(245,158,11,0.10);  color: #fbbf24; }
.ic-green  { background: rgba(34,197,94,0.10);   color: #4ade80; }

/* Showcase */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 80px;
}
.showcase:last-child { margin-bottom: 0; }
.showcase-flip { direction: rtl; }
.showcase-flip > * { direction: ltr; }
.showcase-img img {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.showcase-body h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 12px; }
.showcase-body p { margin-bottom: 20px; font-size: 0.95rem; line-height: 1.7; }
.showcase-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.showcase-body li {
  font-size: 0.9rem; color: var(--text-2);
  padding-left: 18px; position: relative;
}
.showcase-body li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-l);
}

/* Steps */
.steps { display: flex; align-items: flex-start; margin-top: 48px; }
.step { flex: 1; text-align: center; padding: 0 16px; }
.step-n {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-size: 0.88rem; font-weight: 700; margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.88rem; }
.step-connector {
  flex: 0 0 1px; width: 48px; height: 1px; margin-top: 20px;
  background: linear-gradient(90deg, rgba(99,102,241,0.4), rgba(99,102,241,0.1));
}

/* Comparison Table */
.compare-table {
  max-width: 640px; margin-bottom: 48px;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.compare-row {
  display: grid; grid-template-columns: 1fr 120px 120px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.compare-row:last-child { border-bottom: none; }
.compare-header {
  font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-3); background: rgba(255,255,255,0.02);
}
.compare-row .dim { color: var(--text-3); }
.compare-row .accent { color: var(--green); font-weight: 500; }

/* Pricing Cards */
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; }
.p-card {
  padding: 28px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; position: relative;
}
.p-card-pop {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(170deg, rgba(99,102,241,0.08), transparent 50%);
  box-shadow: 0 0 40px rgba(99,102,241,0.08);
}
.p-badge {
  position: absolute; top: -10px; left: 20px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 100px;
}
.p-head { margin-bottom: 20px; }
.p-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.p-amount { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.p-period { font-size: 0.85rem; color: var(--text-3); margin-left: 2px; }
.p-save { font-size: 0.78rem; color: var(--green); margin-top: 4px; font-weight: 500; }
.p-desc { font-size: 0.82rem; color: var(--text-3); margin-bottom: 20px; flex: 1; }
.p-card .btn-fill, .p-card .btn-outline { margin-top: auto; }
.pricing-footnote { font-size: 0.82rem; color: var(--text-3); margin-top: 20px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item {
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(99,102,241,0.2); }
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 500; font-size: 0.92rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.1rem; color: var(--text-3); font-weight: 300;
  flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 20px 16px; font-size: 0.9rem; line-height: 1.7; }

/* CTA */
.cta-section { padding: 80px 0; }
.cta-box {
  text-align: center; padding: 56px 32px;
  border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
}
.cta-icon { border-radius: 16px; margin-bottom: 20px; box-shadow: 0 4px 24px rgba(99,102,241,0.15); }
.cta-box h2 { margin-bottom: 10px; }
.cta-box p { max-width: 400px; margin: 0 auto 24px; font-size: 1rem; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Footer */
footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.footer-brand img { border-radius: 5px; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { font-size: 0.82rem; color: var(--text-3); transition: color 0.15s; }
.footer-links a:hover { color: var(--text-2); }
.footer-copy { font-size: 0.78rem; color: var(--text-3); width: 100%; text-align: center; margin-top: 8px; }

/* Sub-pages (privacy, support) */
.page-content {
  padding: 120px 0 80px;
}
.page-content h1 {
  margin-bottom: 8px;
}
.page-content .page-date {
  font-size: 0.85rem; color: var(--text-3); margin-bottom: 40px;
}
.page-content .page-sub {
  font-size: 1.05rem; margin-bottom: 48px;
}
.page-content h2 {
  font-size: 1.2rem; margin-top: 48px; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.page-content p {
  font-size: 0.95rem; line-height: 1.75; margin-bottom: 16px;
}
.page-content ul {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px;
}
.page-content li {
  font-size: 0.92rem; color: var(--text-2); padding-left: 18px; position: relative;
}
.page-content li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-l);
}
.page-content li strong { color: var(--text); }
.inline-link { color: var(--accent-l); text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--accent); }

.support-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.support-card h3 { margin-bottom: 4px; }
.support-card p { margin-bottom: 0; }

/* Nested lists in FAQ on support page */
.page-content .faq-item ul { margin: 8px 0 0; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .showcase, .showcase-flip, .hero-grid { grid-template-columns: 1fr; }
  .showcase-flip { direction: ltr; }
  .hero-text { max-width: 100%; }
  .hero-img { order: -1; }
  .hero-icon { text-align: center; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 360px; }
  .compare-table { max-width: 100%; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; gap: 0; }
  .step-connector { width: 1px; height: 24px; margin: 0; background: linear-gradient(180deg, rgba(99,102,241,0.3), transparent); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 16px;
    position: fixed; top: 52px; left: 0; right: 0;
    background: rgba(8,9,14,0.95); backdrop-filter: blur(20px);
    padding: 20px 24px; border-bottom: 1px solid var(--border);
  }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { margin-left: 0; }
  .compare-row { grid-template-columns: 1fr 80px 80px; font-size: 0.82rem; padding: 12px 14px; }
}
