/* ═══════════════════════════════════════════════════
   CutBill — base.css
   Shared design system. Loaded on every page.
   Single source of truth, extracted from index.html.
═══════════════════════════════════════════════════ */


/* ─────────────────────────────────────────
   TOKENS — Aave palette reimagined for CutBill
───────────────────────────────────────── */
:root {
  --white: #ffffff;
  --off-white: #f9f9fb;
  --surface: #f2f3f7;
  --surface2: #eaebf2;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.11);
  --ink: #0d0d12;
  --ink2: #2e2e3a;
  --muted: #6e7191;
  --muted2: #9395b0;
  --accent: #FF5D00;
  --accent2: #FF7A2E;
  --accent3: #00C2A8;
  --accent-light: rgba(255,93,0,0.08);
  --accent-light2: rgba(255,93,0,0.14);
  --grad: linear-gradient(135deg, #FF5D00 0%, #FF7A2E 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,93,0,0.12) 0%, rgba(255,122,46,0.12) 100%);
  --grad-text: linear-gradient(135deg, #FF5D00 0%, #FF8A3D 60%, #FFB36B 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.11);
  --shadow-xl: 0 40px 80px rgba(0,0,0,0.13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Menlo', 'SF Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 100% 70% at 50% 115%, rgba(176,160,255,0.55) 0%, rgba(206,194,255,0.25) 30%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 95%, rgba(196,184,255,0.38), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 90%, rgba(214,204,255,0.32), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f6f3ff 55%, #ebe4ff 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


/* ─── MESH BACKGROUND ─── */
.mesh-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: meshFloat 18s ease-in-out infinite alternate;
}
.mesh-blob:nth-child(1) {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(162,151,255,0.25), transparent 70%);
  animation-duration: 18s;
}
.mesh-blob:nth-child(2) {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(162,151,255,0.18), transparent 70%);
  top: 20%; right: -150px;
  animation-duration: 22s; animation-delay: -6s;
}
.mesh-blob:nth-child(3) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,194,168,0.15), transparent 70%);
  bottom: 10%; left: 20%;
  animation-duration: 26s; animation-delay: -12s;
}

@keyframes meshFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 40px) scale(0.95); }
  100% { transform: translate(30px, 20px) scale(1.02); }
}


/* ─── PAGE WRAPPER & LAYOUT ─── */
.page { position: relative; z-index: 1; }
section { padding: 100px 48px; }
.container { max-width: 1100px; margin: 0 auto; }


/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.btn-ghost-nav {
  padding: 6px 14px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-ghost-nav:hover { border-color: var(--accent); background: var(--accent-light); }

.btn-primary-nav {
  padding: 6px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--grad);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(255,93,0,0.28);
}
.btn-primary-nav:hover { opacity: 0.88; transform: translateY(-1px); }


/* ─── MOBILE NAV TOGGLE ─── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a.mm-link {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .mm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.mobile-menu .mm-actions a { width: 100%; justify-content: center; text-align: center; padding: 12px 18px; font-size: 14px; }


/* ─── SHARED BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--grad);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(162,151,255,0.38);
}
.btn-primary:hover { opacity: 0.87; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(162,151,255,0.44); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.8);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-light); transform: translateY(-1px); }


/* ─── LABEL PILL ─── */
.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid rgba(162,151,255,0.22);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.label-pill-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }


/* ─── GRADIENT TEXT (base utility) ─── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }


/* ─────────────────────────────────────────
   CTA BANNER (shared across pages)
───────────────────────────────────────── */
.cta-section { padding: 80px 48px; }

.cta-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0d0d12 0%, #1f1f26 100%);
  text-align: center;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 40%, rgba(139,74,147,0.35), transparent 60%);
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,155,206,0.30), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-family: var(--font);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 14px;
}
.cta-title .gradient-text {
  background: linear-gradient(135deg, #FFB36B, #FF8A3D);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-sub {
  position: relative;
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
}

.cta-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--grad);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(162,151,255,0.45);
}
.btn-primary-dark:hover { opacity: 0.87; transform: translateY(-2px); }

.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
}
.btn-secondary-dark:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.05); }


/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 60px 48px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand { max-width: 280px; }

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 14px;
}

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-copy { font-size: 13px; color: var(--muted2); }

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--muted2); text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: var(--accent); }


/* ─── PROSE / SUBPAGE CONTENT FORMATTING ─── */
.story .container h2 { font-family: var(--font); font-size: clamp(22px,2.4vw,30px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 36px 0 14px; line-height: 1.25; }
.story .container h2:first-child { margin-top: 0; }
.story .container h3 { font-family: var(--font); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 28px 0 10px; }
.story .container p { font-size: 16.5px; line-height: 1.72; color: var(--ink2); margin: 0 0 16px; }
.story .container a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.story .container a:hover { color: var(--accent2); }
.story .container ul,
.story .container ol { margin: 0 0 20px; padding-left: 1.35em; }
.story .container ul li,
.story .container ol li { font-size: 16.5px; line-height: 1.7; color: var(--ink2); margin: 0 0 8px; padding-left: 4px; }
.story .container ul li::marker { color: var(--accent); font-size: 1em; }
.story .container ol li::marker { color: var(--accent); font-weight: 600; }
.story .container strong { color: var(--ink); font-weight: 600; }
.story .container hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }


/* ─── RESPONSIVE BASE (nav + footer) ─── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: inline-flex; }
  section { padding: 70px 24px; }
  footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; }
  .cta-section { padding: 48px 24px; }
  .cta-inner { padding: 48px 28px; }
}
