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

:root {
    --primary: #4F46E5;
    --secondary: #10b981;
    --accent: #818cf8;
    --dark: #111827;
    --light: #f9fafb;
    --text: #374151;
    --border: #e5e7eb;
    --gradient-1: linear-gradient(135deg, #4F46E5 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #818cf8 0%, #4F46E5 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    animation: subtle-glow 2s ease-in-out infinite;
}

@keyframes subtle-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0,102,255,0.3); }
    50% { box-shadow: 0 0 30px rgba(0,102,255,0.5); }
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-tagline {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
}

/* ===== Buttons ===== */
.cta-button {
    background: var(--primary);
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,102,255,0.3);
}

.cta-button::after {
    display: none !important;
}

.cta-secondary {
    background: white;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.cta-secondary:hover {
    background: var(--primary);
    color: white !important;
}

.cta-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* ===== Hero ===== */
.hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,102,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* ===== Demo Video ===== */
.demo-section {
    padding: 5rem 2rem;
    background: var(--dark);
    color: white;
}

.demo-section .section-title {
    color: white;
}

.demo-section .section-subtitle {
    color: #94a3b8;
}

.video-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Demo Preview ===== */

.demo-preview {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.demo-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.demo-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.demo-table th {
    text-align: left;
    padding: 0.75rem;
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.demo-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.demo-table tr {
    transition: background 0.2s ease;
}

.demo-table tbody tr:hover {
    background: #f0f9ff;
}

.demo-result {
    margin-top: 1.5rem;
    color: #22c55e;
    font-weight: 600;
}

/* ===== Chat Demo ===== */
.demo-chat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
    max-height: 360px;
    overflow-y: auto;
}
.chat-msg {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 90%;
}
.chat-msg.user {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-msg.assistant {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-tool {
    font-size: 0.75rem;
    color: #16a34a;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #f0fdf4;
    border-radius: 6px;
    display: inline-block;
    margin-right: 0.25rem;
}

/* ===== Alpha Section ===== */
.alpha-section {
    padding: 5rem 2rem;
    background: #f8fafc;
}

/* ===== Features ===== */
.features {
    padding: 5rem 2rem;
    background: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #06ffa5 0%, #0066FF 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-list {
    margin-top: 1rem;
    margin-left: 1.5rem;
    color: #64748b;
}

.feature-list li {
    margin-bottom: 0.25rem;
}

/* ===== Process ===== */
.process {
    padding: 5rem 2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,102,255,0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

/* ===== Comparison ===== */
.comparison {
    padding: 5rem 2rem;
    background: var(--light);
}

.comparison-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-top: 3rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:hover {
    background: #f0f9ff;
}

.check {
    color: var(--secondary);
    font-size: 1.5rem;
}

.cross {
    color: #ef4444;
    font-size: 1.5rem;
}

/* ===== Trust ===== */
.trust-section {
    padding: 5rem 2rem;
    background: white;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
}

.trust-badge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.trust-badge h4 {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.trust-badge p {
    color: #64748b;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ===== Final CTA / Contact ===== */
.final-cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    max-width: 600px;
    margin: 3rem auto 0;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.5rem;
    background: white;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,102,255,0.3);
}

/* ===== Footer ===== */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-section a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 0;
}

nav.nav-open a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

nav.nav-open a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
}

/* ===== Contact Page ===== */
.contact-hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.25rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item .icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #06ffa5 0%, #0066FF 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-info-item h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-info-item a:hover {
    color: var(--primary);
}

.contact-form-standalone {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-form-standalone h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInFromLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.slide-left {
    animation: slideInFromLeft 0.8s ease;
}

.slide-right {
    animation: slideInFromRight 0.8s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .trust-badges {
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .final-cta h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }
}

/* ============================================================
   CINEMATIC FULL-BLEED PINNED SLIDES (PR1 of marketing reorg)
   See: docs/superpowers/specs/2026-05-05-marketing-site-reorg-design.md
   Pattern: phantom scroll height + sticky slide-stack + opacity crossfade
   ============================================================ */

/* Phantom-scroll provides scrollable height; slide-stack pins inside it */
.phantom-scroll {
  position: relative;
  /* JS sets concrete height (slides * 100svh) so it adapts to slide count */
}

.slide-stack {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}

.cinematic-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.cinematic-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Background image fills whole slide */
.cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cinematic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Light gradient overlay so text remains legible on top of image */
.cinematic-overlay-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.85) 28%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.0) 75%
  );
  z-index: 1;
  pointer-events: none;
}

.cinematic-overlay-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.85) 28%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.0) 75%
  );
  z-index: 1;
  pointer-events: none;
}

/* Content positioned over background+overlay */
.cinematic-content {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.cinematic-content--right {
  justify-content: flex-end;
}

.cinematic-content-inner {
  max-width: 32rem;
}

/* Plain (no image) slide background */
.cinematic-slide--plain {
  background: linear-gradient(135deg, #fafafa 0%, #eef2ff 100%);
}

.cinematic-slide--plain .cinematic-content {
  align-items: center;
  justify-content: center;
}

.cinematic-slide--plain .cinematic-content-inner {
  max-width: 64rem;
  width: 100%;
}

/* Slide indicator */
.slide-indicator {
  position: fixed;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  z-index: 50;
}

.slide-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: rgb(209 213 219);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.slide-dot:hover {
  background-color: rgb(156 163 175);
}

.slide-dot[aria-current="true"] {
  background-color: rgb(79 70 229);
  transform: scale(1.4);
}

/* Mobile: drop pinned mode entirely, slides flow normally */
@media (max-width: 768px) {
  .phantom-scroll {
    height: auto !important;
  }
  .slide-stack {
    position: static;
    height: auto;
    overflow: visible;
  }
  .cinematic-slide {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    pointer-events: auto !important;
    min-height: 80vh;
    transition: none;
    padding-block: 3rem;
  }
  .cinematic-bg img {
    object-fit: contain;
  }
  .cinematic-overlay-left,
  .cinematic-overlay-right {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.0) 0%,
      rgba(255, 255, 255, 0.95) 70%
    );
  }
  .cinematic-content {
    height: auto;
    padding-block: 2rem;
    flex-direction: column;
    justify-content: center;
  }
  .cinematic-content-inner {
    max-width: 100%;
  }
  .slide-indicator {
    display: none;
  }
}

/* Hide indicator on short laptops (snap also disabled there) */
@media (max-height: 760px) {
  .slide-indicator {
    display: none;
  }
}
