/* ===========================
   Custom Fonts
   =========================== */
@font-face {
    font-family: 'Capian';
    src: url('capian-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Capian';
    src: url('capian-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===========================
   Reset & Variables
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors - Supabase Style */
    --bg-primary: #090909;
    --bg-secondary: #0d0d0d;
    --bg-elevated: #171717;

    /* Text Colors */
    --text-primary: #ededed;
    --text-secondary: #a1a1a1;
    --text-tertiary: #6b6b6b;

    /* Accent Color - Supabase Emerald Green */
    --accent: #3ECF8E;
    --accent-hover: #2eb67d;
    --accent-glow: rgba(62, 207, 142, 0.25);

    /* Borders */
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-2xl: 120px;

    /* Typography */
    --font-display: 'Capian', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   Navigation
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--border-hover);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.logo-img {
    height: 72px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-line {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* Small logo variant for footer */
.logo-sm .logo-img {
    height: 64px;
}

.logo-sm .logo-line {
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-family: var(--font-body);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    font-family: var(--font-display);
    padding: 8px 20px;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #00b8d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-cta {
    margin-bottom: var(--spacing-xl);
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
    font-family: var(--font-display);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 16px 32px;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

/* ===========================
   Hero Stats
   =========================== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: 16px;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}

/* Beam border effect */
.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );
    animation: beam 3s linear infinite;
    opacity: 0.5;
}

@keyframes beam {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Static border with gradient */
.hero-stats::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        transparent 50%,
        var(--accent) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.stat-item {
    text-align: left;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ===========================
   Canvas Container
   =========================== */
.hero-right {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.particle-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    background: transparent;
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-primary) 90%);
    pointer-events: none;
    z-index: 2;
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

/* ===========================
   Benefits Section
   =========================== */
.benefits {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.benefit-card {
    padding: var(--spacing-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Background icon/pattern */
.benefit-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.benefit-card:hover::before {
    opacity: 0.12;
    transform: scale(1.2);
}

/* Unique background shapes for each card */
.benefit-card:nth-child(1)::before {
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent);
    border-radius: 0;
    transform: rotate(45deg);
}

.benefit-card:nth-child(2)::before {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
    border-radius: 0 0 100% 0;
    top: -10px;
    right: -10px;
}

.benefit-card:nth-child(3)::before {
    background: repeating-linear-gradient(
        45deg,
        var(--accent),
        var(--accent) 2px,
        transparent 2px,
        transparent 12px
    );
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.benefit-card:nth-child(4)::before {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at center, var(--accent) 0%, transparent 50%);
    top: -40px;
    right: -40px;
}

.benefit-card:nth-child(5)::before {
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    width: 60px;
    height: 100px;
    border-radius: 30px;
    top: -30px;
    right: 20px;
}

.benefit-card:nth-child(6)::before {
    background:
        radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, var(--accent) 0%, transparent 30%);
    width: 100px;
    height: 100px;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-secondary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
    opacity: 0.7;
}

.benefit-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.benefit-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===========================
   Process Section
   =========================== */
.process {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
    position: relative;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    position: relative;
    padding-left: 100px;
    margin-bottom: var(--spacing-xl);
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-line {
    position: absolute;
    left: 35px;
    top: 50px;
    bottom: -80px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

.process-step:last-child .step-line {
    display: none;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    background: var(--bg-elevated);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.step-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
    box-shadow: 0 8px 32px rgba(62, 207, 142, 0.1);
}

.step-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.step-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===========================
   CTA Section
   =========================== */
.cta {
    padding: var(--spacing-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.cta-email {
    margin-top: var(--spacing-lg);
    font-size: 16px;
    color: var(--text-secondary);
    font-family: monospace;
    letter-spacing: 0.02em;
}

.email-link {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.8;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link {
    font-family: var(--font-body);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-tertiary);
    width: 100%;
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

/* ===========================
   Animations
   =========================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-right {
        height: 400px;
    }

    .hero-left {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 60px;
        --spacing-2xl: 80px;
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-link {
        display: none;
    }

    .hero-title {
        font-size: clamp(36px, 10vw, 48px);
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .stat-item {
        text-align: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding-left: 80px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .step-line {
        left: 25px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-right {
        height: 300px;
    }

    .btn-primary,
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}
