/* =========================================================
   Paul.Tech — Design tokens & base styles
   ========================================================= */

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-tint: #faf5ff;
  --ink: #0a0a0a;
  --ink-2: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.14);

  /* Brand */
  --violet: #7c3aed;
  --violet-deep: #6d28d9;
  --pink: #ec4899;
  --pink-deep: #db2777;
  --grad: linear-gradient(120deg, #7c3aed 0%, #a855f7 40%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, #f3e8ff 0%, #fce7f3 100%);

  /* States */
  --green: #16a34a;
  --green-soft: #dcfce7;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 2px 8px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.06), 0 12px 40px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 10px 40px rgba(124, 58, 237, 0.18), 0 30px 80px rgba(236, 72, 153, 0.10);

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
  letter-spacing: -0.01em;
  line-height: 1.45;
  overflow-x: hidden;
}

::selection { background: #f0abfc; color: #0a0a0a; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* Containers */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

/* Italic serif accent */
.ital {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Gradient text */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #1f1f1f; box-shadow: var(--shadow-md); }

.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.30);
}
.btn-grad:hover { box-shadow: 0 12px 36px rgba(124, 58, 237, 0.40); }

.btn-ghost {
  background: rgba(10, 10, 10, 0.04);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(10, 10, 10, 0.08); }

.btn-lg { padding: 18px 30px; font-size: 17px; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: rgba(10, 10, 10, 0.05);
  color: var(--ink);
}
.pill-grad {
  background: var(--grad-soft);
  color: var(--violet-deep);
}
.pill-live {
  background: var(--green-soft);
  color: var(--green);
}
.pill-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.4); }
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

/* Section spacing */
.section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.section-sub {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Decorative blob */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

/* Easter egg: rainbow mode */
body.rainbow {
  animation: rainbow-bg 6s linear infinite;
}
@keyframes rainbow-bg {
  0%, 100% { background: #fff; }
  25% { background: #fef9e7; }
  50% { background: #f3e8ff; }
  75% { background: #fce7f3; }
}
body.rainbow .grad-text {
  animation: hue-rot 4s linear infinite;
}
@keyframes hue-rot {
  to { filter: hue-rotate(360deg); }
}

/* Confetti */
.confetti {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 14px;
  z-index: 9999;
  pointer-events: none;
  border-radius: 2px;
}
