/* ============================================================================
 * Webtulip — premium design system
 * Inspired by the visual language of Linear / Stripe / Vercel: deep navy ink,
 * indigo-to-cyan gradient accent, refined system-native typography, soft
 * glass-edged cards, ambient gradient backgrounds.
 *
 * Pure CSS — zero external dependencies. No Google Fonts, no CDN, no JS.
 * Drop the folder onto S3 and it works.
 * ============================================================================ */

/* ----------------------------------------------------------------------------
 * Native system font stacks
 *
 * Picks whichever premium UI font ships on the user's OS:
 *   macOS / iOS     → SF Pro            (-apple-system, BlinkMacSystemFont)
 *   Windows 11      → Segoe UI Variable
 *   Windows 10 / 8  → Segoe UI
 *   Android         → Roboto
 *   ChromeOS / *nix → system-ui / Helvetica Neue / Arial
 *
 * Identical look-and-feel quality to bundling a custom font, zero network cost.
 * -------------------------------------------------------------------------- */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
               "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
                  "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono",
               Menlo, Consolas, "Liberation Mono", monospace;
}

/* ----------------------------------------------------------------------------
 * Design tokens
 * -------------------------------------------------------------------------- */

:root {
  /* Ink — deepest navy → near-black, used for headlines / dark surfaces */
  --ink-900: #0a0e27;
  --ink-800: #131836;
  --ink-700: #1c2245;
  --ink-600: #2a3158;
  --ink-500: #3a4270;

  /* Neutrals — cool gray with a faint blue cast */
  --muted-700: #4a5470;
  --muted-500: #6b7488;
  --muted-300: #94a0b8;
  --muted-200: #b8c1d3;
  --muted-100: #e1e6ef;

  /* Surfaces */
  --bg: #fafbff;
  --bg-tint: #f4f6fc;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.78);
  --border: #e8ecf3;
  --border-strong: #d1d8e6;

  /* Brand — indigo through to cyan, the signature Webtulip gradient */
  --accent-50: #eef1ff;
  --accent-100: #e0e7ff;
  --accent-300: #a5b4fc;
  --accent-500: #6366f1;
  --accent-600: #4f46e5;
  --accent-700: #4338ca;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.12));
  --gradient-text: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #1c2245 0%, #0a0e27 100%);

  /* States */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Elevation — layered soft shadows give cards real depth */
  --shadow-sm: 0 1px 2px rgba(10, 14, 39, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 14, 39, 0.06), 0 1px 2px rgba(10, 14, 39, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 14, 39, 0.08), 0 4px 12px rgba(10, 14, 39, 0.04);
  --shadow-xl: 0 24px 48px rgba(10, 14, 39, 0.12), 0 8px 16px rgba(10, 14, 39, 0.06);
  --shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.1), 0 12px 40px rgba(99, 102, 241, 0.18);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.16s var(--ease);
  --t-med: 0.28s var(--ease);
  --t-slow: 0.5s var(--ease);
}

/* ----------------------------------------------------------------------------
 * Base
 * -------------------------------------------------------------------------- */

* { box-sizing: border-box; }
*::selection { background: var(--accent-100); color: var(--ink-900); }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* Ambient page background — barely-visible radial gradients top-left + bottom-right.
     Pure CSS so there's no image asset to host. */
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-700); }

/* ----------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */

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

.container.narrow { max-width: 780px; }
.container.tight { max-width: 640px; }

/* ----------------------------------------------------------------------------
 * Site header — glass nav that sticks
 * -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card-glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(232, 236, 243, 0.7);
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--t-fast);
}

.logo:hover { opacity: 0.85; color: var(--ink-900); }

.logo .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  position: relative;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.32);
}

.logo .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.site-nav a {
  color: var(--muted-700);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
}

.site-nav a:hover {
  color: var(--ink-900);
  background: var(--bg-tint);
}

.site-nav .btn-nav {
  background: var(--ink-900);
  color: white;
  margin-left: 6px;
}

.site-nav .btn-nav:hover {
  background: var(--ink-700);
  color: white;
}

@media (max-width: 640px) {
  .site-nav { gap: 2px; }
  .site-nav a { padding: 6px 10px; font-size: 13px; }
}

/* ----------------------------------------------------------------------------
 * Hero
 * -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}

/* Two floating soft blobs as the ambient hero background. */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-300), transparent 70%);
  top: -80px; left: -120px;
}

.hero::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--cyan-400), transparent 70%);
  top: 40px; right: -160px;
  opacity: 0.35;
}

.hero > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-700);
  background: var(--accent-50);
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(99, 102, 241, 0.15);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--ink-900);
  max-width: 18ch;
}

.hero h1 .gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted-700);
  max-width: 56ch;
  margin: 0 0 36px;
  line-height: 1.6;
}

.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ----------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-med), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-ink {
  background: var(--ink-900);
  color: white;
}

.btn-ink:hover {
  color: white;
  background: var(--ink-700);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink-800);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  color: var(--accent-700);
  border-color: var(--accent-300);
  transform: translateY(-1px);
}

.btn-arrow::after {
  content: "→";
  transition: transform var(--t-fast);
  font-weight: 400;
}

.btn-arrow:hover::after { transform: translateX(3px); }

/* ----------------------------------------------------------------------------
 * Section base
 * -------------------------------------------------------------------------- */

section {
  padding: 96px 0;
  position: relative;
}

section.tint { background: var(--bg-tint); }

.section-head { margin-bottom: 56px; max-width: 720px; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink-900);
}

section .section-lead {
  color: var(--muted-700);
  font-size: 18px;
  max-width: 60ch;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  section .section-lead { font-size: 16px; }
}

/* ----------------------------------------------------------------------------
 * Pillars (3-up feature cards)
 * -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.pillar:hover {
  transform: translateY(-2px);
  border-color: var(--accent-300);
  box-shadow: var(--shadow-lg);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-50);
  color: var(--accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}

.pillar h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.pillar p {
  margin: 0;
  color: var(--muted-700);
  font-size: 15px;
  line-height: 1.6;
}

/* ----------------------------------------------------------------------------
 * App grid — premium card design with gradient icons
 * -------------------------------------------------------------------------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  text-decoration: none;
  color: var(--ink-800);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

/* Gradient corner accent that intensifies on hover. */
.app-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 160px; height: 160px;
  background: radial-gradient(circle at top right, rgba(99,102,241,0.08), transparent 70%);
  transition: opacity var(--t-med);
  pointer-events: none;
}

.app-card:hover {
  color: var(--ink-800);
  transform: translateY(-3px);
  border-color: var(--accent-300);
  box-shadow: var(--shadow-glow);
}

.app-card .app-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
}

.app-card .app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 50%);
  pointer-events: none;
}

.app-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.app-card p {
  margin: 0;
  color: var(--muted-700);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.app-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag {
  background: var(--accent-50);
  color: var(--accent-700);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Per-app icon gradients — each app gets a distinct hue while sharing the family aesthetic. */
.icon-expense { background: linear-gradient(135deg, #059669 0%, #34d399 100%); }
.icon-habit   { background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%); }
.icon-audio   { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); }
.icon-bass    { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); }
.icon-bubble  { background: linear-gradient(135deg, #0e7490 0%, #22d3ee 100%); }
.icon-plantpet{ background: linear-gradient(135deg, #15803d 0%, #4ade80 100%); }
.icon-med     { background: linear-gradient(135deg, #be185d 0%, #f472b6 100%); }

/* ----------------------------------------------------------------------------
 * Stats strip
 * -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--muted-500);
  font-size: 14px;
  font-weight: 500;
}

/* ----------------------------------------------------------------------------
 * Big inverted CTA section (dark)
 * -------------------------------------------------------------------------- */

.cta-block {
  background: var(--gradient-dark);
  color: white;
  border-radius: var(--r-2xl);
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-block::before, .cta-block::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-block::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-500), transparent 70%);
  top: -100px; left: -100px;
  opacity: 0.4;
}

.cta-block::after {
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--cyan-500), transparent 70%);
  bottom: -80px; right: -80px;
  opacity: 0.35;
}

.cta-block > * { position: relative; z-index: 1; }

.cta-block h2 {
  color: white;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cta-block p {
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  max-width: 50ch;
  margin: 0 auto 32px;
}

.cta-block .btn-ghost {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  backdrop-filter: blur(8px);
}

.cta-block .btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  color: white;
}

@media (max-width: 720px) {
  .cta-block { padding: 56px 28px; border-radius: var(--r-xl); }
}

/* ----------------------------------------------------------------------------
 * Page header (used on inner pages)
 * -------------------------------------------------------------------------- */

.page-header {
  padding: 80px 0 40px;
  position: relative;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink-900);
}

.page-header .subtitle {
  color: var(--muted-500);
  font-size: 16px;
  margin: 0;
}

/* App-page identity row (icon + title side by side) */
.app-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.app-identity .app-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.app-identity h1 { margin: 0; }

/* ----------------------------------------------------------------------------
 * Long-form / policy pages
 * -------------------------------------------------------------------------- */

.long-form {
  padding-bottom: 96px;
  font-size: 16px;
  color: var(--ink-700);
}

.long-form h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 14px;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}

.long-form h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--ink-900);
}

.long-form p, .long-form ul, .long-form ol {
  margin: 12px 0;
  line-height: 1.7;
}

.long-form ul, .long-form ol { padding-left: 22px; }
.long-form li { margin: 6px 0; }
.long-form a { font-weight: 500; }

.long-form strong { color: var(--ink-900); font-weight: 600; }

.callout {
  background: linear-gradient(135deg, var(--accent-50), rgba(6, 182, 212, 0.06));
  border: 1px solid var(--accent-100);
  border-left: 4px solid var(--accent-500);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}

.callout strong { color: var(--ink-900); }
.callout.note { /* alias kept for backwards compatibility with existing pages */ }

.long-form table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background: var(--card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.long-form th, .long-form td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.long-form tr:last-child td { border-bottom: none; }

.long-form th {
  background: var(--bg-tint);
  font-weight: 600;
  color: var(--ink-900);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

code, kbd {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent-700);
}

/* ----------------------------------------------------------------------------
 * Privacy / app policy list
 * -------------------------------------------------------------------------- */

.link-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.link-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.link-list li:hover {
  border-color: var(--accent-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.link-list .app-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.link-list .meta { flex: 1; min-width: 0; }

.link-list a {
  color: var(--ink-900);
  font-weight: 600;
  font-size: 16px;
  display: block;
}

.link-list a:hover { color: var(--accent-600); }

.link-list .desc {
  color: var(--muted-300);
  font-size: 13px;
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* ----------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
  margin-top: 96px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.18), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.site-footer > .container { position: relative; }

.site-footer .row {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 800px) {
  .site-footer .row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.site-footer .logo { color: white; }
.site-footer .logo:hover { color: white; }

.site-footer h4 {
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  font-weight: 700;
}

.site-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 5px 0;
  transition: color var(--t-fast);
}

.site-footer a:hover { color: white; }

.site-footer .brand-line {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 32ch;
}

.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.site-footer .bottom a {
  color: rgba(255,255,255,0.55);
  display: inline;
  padding: 0;
}

.site-footer .bottom a:hover { color: rgba(255,255,255,0.85); }

/* ----------------------------------------------------------------------------
 * 404 page
 * -------------------------------------------------------------------------- */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 120px 24px;
  position: relative;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 900;
  margin: 0 0 16px;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.error-page p {
  color: var(--muted-500);
  font-size: 18px;
  margin: 0 0 32px;
}

/* ----------------------------------------------------------------------------
 * Alternating two-column layout (used on About / inner pages)
 * -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ----------------------------------------------------------------------------
 * Tech-stack chips
 * -------------------------------------------------------------------------- */

.tech-stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.tech-chip {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.tech-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent-300);
  color: var(--accent-700);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------------------------
 * Highlights grid (used on app pages)
 * -------------------------------------------------------------------------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}

.highlight-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-50);
  color: var(--accent-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}

.highlight h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
}

.highlight p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-700);
  line-height: 1.55;
}

/* Pricing card on app pages */
.pricing-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--bg-tint) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted-500);
}

.pricing-card .pricing-meta {
  flex: 1; min-width: 200px;
}

.pricing-card .pricing-meta h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
}

.pricing-card .pricing-meta p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-700);
}

/* ----------------------------------------------------------------------------
 * Utility classes
 * -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
