/* ============================================================
   ParaPattern Landing — Design System
   Modern dark startup aesthetic (Linear / Vercel / Stripe)
   ============================================================ */

/* --- Tokens ------------------------------------------------ */
:root {
  /* Palette */
  --bg:              #09090b;
  --bg-raised:       #111114;
  --bg-surface:      #18181b;
  --bg-surface-2:    #1e1e22;
  --bg-hover:        #27272a;

  --text:            #fafafa;
  --text-secondary:  #a1a1aa;
  --text-muted:      #71717a;

  --border:          rgba(255,255,255,0.06);
  --border-hover:    rgba(255,255,255,0.10);

  --primary:         #6366f1;          /* indigo-500 */
  --primary-hover:   #818cf8;          /* indigo-400 */
  --primary-light:   rgba(99,102,241,0.12);
  --primary-glow:    rgba(99,102,241,0.25);

  --accent:          #8b5cf6;          /* violet-500 */
  --accent-light:    rgba(139,92,246,0.10);

  --success:         #22c55e;
  --success-light:   rgba(34,197,94,0.12);

  /* Typography */
  --font:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius */
  --radius-sm:       6px;
  --radius:          10px;
  --radius-lg:       14px;
  --radius-xl:       20px;

  /* Shadows */
  --shadow-sm:       0 1px 2px rgba(0,0,0,0.3);
  --shadow:          0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg:       0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow:     0 0 40px var(--primary-glow);

  /* Motion */
  --ease:            cubic-bezier(.4,0,.2,1);
  --ease-spring:     cubic-bezier(.34,1.56,.64,1);
  --duration:        180ms;
  --duration-lg:     350ms;
}

/* --- Reset ------------------------------------------------- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color:inherit; text-decoration:none }
ul { list-style:none }
img,svg { display:block; max-width:100% }

/* --- Layout ------------------------------------------------ */
.container { max-width:1120px; margin:0 auto; padding:0 24px }
.hide-mobile { }

/* --- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9,9,11,0.7);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  transition: opacity var(--duration) var(--ease);
}
.nav-logo:hover { opacity:.8 }
.nav-logo-icon { color: var(--primary) }

.nav-links {
  display: flex;
  gap: 8px;
}
.nav-links a {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.btn-lg { padding:12px 28px; font-size:0.95rem }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 0 transparent;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-hover);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-hover);
  border-color: rgba(255,255,255,0.15);
}

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 60px;
  overflow: hidden;
  background: var(--bg);
}

/* Animated glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  animation: glow-drift-1 18s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  bottom: -80px; right: -60px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: glow-drift-2 22s ease-in-out infinite alternate;
}
.hero-glow-3 {
  width: 300px; height: 300px;
  top: 50%; left: 55%;
  background: radial-gradient(circle, rgba(236,72,153,0.4) 0%, transparent 70%);
  animation: glow-drift-3 15s ease-in-out infinite alternate;
}

@keyframes glow-drift-1 {
  0%   { transform: translate(0,0) scale(1) }
  100% { transform: translate(80px,60px) scale(1.15) }
}
@keyframes glow-drift-2 {
  0%   { transform: translate(0,0) scale(1) }
  100% { transform: translate(-60px,-50px) scale(1.2) }
}
@keyframes glow-drift-3 {
  0%   { transform: translate(0,0) scale(0.9) }
  100% { transform: translate(-40px,30px) scale(1.1) }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid { width:100%; height:100%; opacity:.8 }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-hover);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--primary-light);
  background: rgba(99,102,241,0.06);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { opacity:1; transform:scale(1) }
  50%     { opacity:.5; transform:scale(1.3) }
}

/* Title */
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 32px;
}

/* Tagline */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.tagline-word {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tagline-sep {
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.4;
  font-weight: 300;
}

.hero-actions { display:flex; gap:14px; margin-bottom:48px; flex-wrap:wrap; justify-content:center }

/* App Preview */
.hero-preview {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hover);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(99,102,241,0.08);
  margin-bottom: 48px;
}
.hero-preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.hero-preview-dots {
  display: flex;
  gap: 6px;
}
.hero-preview-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-hover);
}
.hero-preview-dots span:first-child { background: #ef4444 }
.hero-preview-dots span:nth-child(2) { background: #eab308 }
.hero-preview-dots span:last-child { background: #22c55e }

.hero-preview-url {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.hero-preview-body { padding:0 }
.hero-preview-canvas { width:100%; height:auto; display:block }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}
.hero-stat { text-align:center }
.hero-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* --- Tagline banner ---------------------------------------- */
.tagline-banner {
  padding: 18px 0;
  text-align: center;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tagline-banner p {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* --- Sections ---------------------------------------------- */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Vision cards ------------------------------------------ */
.vision-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: border-color var(--duration-lg) var(--ease), box-shadow var(--duration-lg) var(--ease), transform var(--duration) var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-lg) var(--ease);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.card:hover::before { opacity:1 }

.card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary-hover);
  margin-bottom: 20px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.card:hover .card-icon-wrap {
  background: var(--primary);
  color: #fff;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Features ---------------------------------------------- */
.features {
  margin-top: 20px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-2);
}
.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-hover);
}
.feature-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-body p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Journey ----------------------------------------------- */
.journey {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.journey-chapter {
  display: flex;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.journey-chapter:first-child { padding-top: 0 }
.journey-chapter:last-child  { border-bottom: none; padding-bottom: 0 }

.journey-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border-hover);
  background: var(--bg-surface);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-hover);
  font-variant-numeric: tabular-nums;
}

.journey-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.journey-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Collaborate ------------------------------------------- */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.collab-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: border-color var(--duration-lg) var(--ease), transform var(--duration) var(--ease);
}
.collab-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.collab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 16px;
}
.collab-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.collab-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CTA box */
.cta { text-align:center }
.cta-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 52px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--primary-light);
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(139,92,246,0.04) 100%);
}
.cta-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
}
.cta-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- About ------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.about-card {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: border-color var(--duration) var(--ease);
}
.about-card:hover { border-color: var(--border-hover) }

.about-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary-hover);
  margin-bottom: 18px;
}
.about-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.about-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-contact {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.about-contact a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease);
}
.about-contact a:hover { color: var(--text) }

/* --- Footer ------------------------------------------------ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-logo-icon { color: var(--primary) }
.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- Animations -------------------------------------------- */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px) }
  to   { opacity:1; transform:translateY(0) }
}

.hero-badge,
.hero-title,
.hero-description,
.hero-actions,
.hero-preview,
.hero-stats {
  animation: fadeUp 0.6s var(--ease) both;
}
.hero-badge       { animation-delay: 0.05s }
.hero-title       { animation-delay: 0.15s }
.hero-description { animation-delay: 0.25s }
.hero-actions     { animation-delay: 0.35s }
.hero-preview     { animation-delay: 0.45s }
.hero-stats       { animation-delay: 0.60s }

/* --- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-glow { animation:none !important; }
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .vision-cards,
  .collab-grid,
  .about-grid { grid-template-columns: 1fr 1fr }
  .features-grid { grid-template-columns: 1fr }
}
@media (max-width: 680px) {
  .nav-links { display:none }
  .hero { padding:100px 0 48px }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem) }
  .section { padding:64px 0 }

  .vision-cards,
  .collab-grid,
  .about-grid { grid-template-columns: 1fr }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .hero-stat-divider {
    width: 60px;
    height: 1px;
  }
  .hide-mobile { display:none }

  .cta-box { padding:28px 24px }
}
@media (max-width: 480px) {
  .container { padding:0 16px }
  .hero-preview { border-radius: var(--radius) }
}