/* ============================================================
   Diskira — diskira.com
   Design system per Branding/BRAND.md
   Indigo #6366F1 → Violet #7C3AED · Inter · calm, precise, honest
   ============================================================ */

:root {
  --indigo: #6366F1;
  --violet: #7C3AED;
  --rose: #F43F5E;
  --emerald: #10B981;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-600: #475569;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --grad: linear-gradient(135deg, var(--indigo), var(--violet));
  --radius: 16px;
  --shadow-lg: 0 24px 64px -16px rgba(15, 23, 42, 0.18);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--slate-600);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--slate-900); line-height: 1.15; letter-spacing: -0.02em; }
a { color: var(--indigo); text-decoration: none; }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #fff; }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: rgba(255, 255, 255, 0.75); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--grad); color: #fff !important; padding: 9px 20px;
  border-radius: 99px; font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--slate-900); color: #fff;
  padding: 160px 0 110px;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-blob.b1 { width: 560px; height: 560px; background: var(--indigo); top: -180px; left: -120px; }
.hero-blob.b2 { width: 480px; height: 480px; background: var(--violet); bottom: -200px; right: -80px; animation-delay: -6s; }
.hero-blob.b3 { width: 320px; height: 320px; background: #38BDF8; top: 30%; right: 22%; opacity: 0.22; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -40px) scale(1.12); }
}

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 {
  color: #fff; font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; margin-bottom: 20px;
}
.hero h1 .grad-text {
  background: linear-gradient(90deg, #A5B4FC, #C4B5FD);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { color: var(--slate-400); font-size: 20px; max-width: 480px; margin-bottom: 32px; }
.hero p.sub strong { color: #fff; }

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 17px;
  padding: 16px 32px; border-radius: 99px; border: none; cursor: pointer;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 44px rgba(99, 102, 241, 0.6); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.cta-note { width: 100%; color: var(--slate-400); font-size: 14px; }

/* ---------- Mock app window ---------- */
.mock-window {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: 0 48px 96px -24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0.3deg); }
  50% { transform: translateY(-12px) rotate(-0.3deg); }
}
.mock-titlebar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.r { background: #FF5F57; } .mock-dot.y { background: #FEBC2E; } .mock-dot.g { background: #28C840; }
.mock-body { padding: 22px; }
.mock-free { font-size: 38px; font-weight: 800; color: #fff; font-family: var(--mono); }
.mock-free small { font-size: 14px; color: var(--slate-400); font-weight: 500; font-family: var(--font); margin-left: 8px; }
.mock-meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); margin: 14px 0 22px; overflow: hidden; }
.mock-meter i { display: block; height: 100%; width: 0%; border-radius: 99px; background: var(--grad); transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.mock-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px; padding: 13px 14px; margin-bottom: 10px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mock-card.show { opacity: 1; transform: none; }
.mock-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: rgba(99, 102, 241, 0.22);
}
.mock-card-text { flex: 1; min-width: 0; }
.mock-card-title { color: #fff; font-size: 14px; font-weight: 600; }
.mock-card-sub { color: var(--slate-400); font-size: 12px; }
.mock-size { font-family: var(--mono); color: #fff; font-weight: 700; font-size: 15px; }
.mock-apply {
  background: var(--grad); border: none; color: #fff; font-weight: 600; font-size: 12px;
  padding: 7px 14px; border-radius: 99px; cursor: default;
}
.mock-toast {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 14px; padding: 9px; border-radius: 99px;
  background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7; font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity 0.6s ease 0.4s;
}
.mock-toast.show { opacity: 1; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.alt { background: var(--slate-50); }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.section-sub { font-size: 19px; max-width: 620px; margin-bottom: 56px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(124,58,237,0.12));
  margin-bottom: 18px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 15px; }
.feature .tag {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700;
  color: var(--violet); background: rgba(124, 58, 237, 0.08);
  padding: 4px 10px; border-radius: 99px;
}

/* ---------- Big feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 48px 0;
}
.feature-row.flip > .fr-visual { order: 2; }
.fr-visual {
  border-radius: var(--radius); overflow: hidden;
  background: var(--slate-900); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.fr-copy h3 { font-size: 30px; margin-bottom: 14px; }
.fr-copy p { font-size: 17px; margin-bottom: 12px; }
.fr-copy ul { list-style: none; margin-top: 18px; }
.fr-copy li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; font-size: 16px; }
.fr-copy li::before { content: "✓"; color: var(--emerald); font-weight: 800; }

/* Terminal-ish visual rows */
.vis-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--slate-200); font-size: 14px;
}
.vis-row:last-child { border-bottom: none; }
.vis-row .grow { flex: 1; }
.vis-row .mono { font-family: var(--mono); color: #fff; font-weight: 700; }
.vis-row .dim { color: var(--slate-400); font-size: 12.5px; }
.vis-badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px;
  background: rgba(16, 185, 129, 0.16); color: #6EE7B7;
}
.vis-badge.warn { background: rgba(251, 146, 60, 0.16); color: #FDBA74; }
.vis-bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 6px; }
.vis-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--slate-200); }
.compare th { background: var(--slate-900); color: #fff; font-weight: 600; font-size: 14px; }
.compare td:first-child { text-align: left; font-weight: 600; color: var(--slate-900); }
.compare th:nth-child(2), .compare td:nth-child(2) { background: rgba(99, 102, 241, 0.06); font-weight: 700; }
.compare th:nth-child(2) { background: var(--grad); }
.compare .yes { color: var(--emerald); font-weight: 800; }
.compare .no { color: var(--slate-400); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.price-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 20px;
  padding: 36px 32px; text-align: center; position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.hot { border: 2px solid transparent; background:
  linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 99px; white-space: nowrap;
}
.price-plan { font-size: 15px; font-weight: 700; color: var(--slate-600); text-transform: uppercase; letter-spacing: 0.08em; }
.price-amount { font-size: 56px; font-weight: 800; color: var(--slate-900); margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.price-amount small { font-size: 18px; font-weight: 600; color: var(--slate-400); }
.price-equiv { font-size: 14px; color: var(--emerald); font-weight: 600; min-height: 21px; }
.price-list { list-style: none; margin: 26px 0; text-align: left; }
.price-list li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 15px; }
.price-list li::before { content: "✓"; color: var(--emerald); font-weight: 800; }
.price-cta {
  display: block; background: var(--grad); color: #fff; font-weight: 700;
  padding: 15px; border-radius: 99px; font-size: 16px;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(99, 102, 241, 0.5); }
.price-cta.ghost { background: #fff; color: var(--indigo); border: 1.5px solid var(--indigo); box-shadow: none; }
.pricing-note { text-align: center; margin-top: 28px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 14px;
  padding: 0 24px; margin-bottom: 12px;
  transition: box-shadow 0.25s;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  font-weight: 600; color: var(--slate-900); font-size: 17px;
  padding: 20px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--indigo); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; font-size: 15.5px; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative; overflow: hidden;
  background: var(--slate-900); color: #fff; text-align: center;
  padding: 110px 24px;
}
.final-cta h2 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin-bottom: 16px; }
.final-cta p { color: var(--slate-400); font-size: 19px; margin-bottom: 36px; }

/* ---------- Footer ---------- */
footer { background: var(--slate-900); color: var(--slate-400); padding: 48px 0; border-top: 1px solid rgba(255,255,255,0.07); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--slate-400); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* ---------- Subpages ---------- */
.page { min-height: 70vh; padding: 160px 0 80px; }
.page h1 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 18px; }
.page .lede { font-size: 19px; max-width: 640px; margin-bottom: 36px; }
.card-panel {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 20px;
  padding: 40px; max-width: 640px; box-shadow: var(--shadow-md);
}
.steps { list-style: none; counter-reset: s; max-width: 560px; }
.steps li { counter-increment: s; display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; font-size: 16.5px; }
.steps li::before {
  content: counter(s); flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.key-input {
  width: 100%; font-family: var(--mono); font-size: 17px; letter-spacing: 0.04em;
  padding: 15px 18px; border: 1.5px solid var(--slate-200); border-radius: 12px;
  color: var(--slate-900); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.key-input:focus { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14); }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose li { font-size: 16px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip > .fr-visual { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .compare-wrap { overflow-x: auto; }
}
