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

:root {
    --primary: #8B2635;
    --primary-dark: #6B1F2B;
    --primary-light: #A0522D;
    --brown: #5C3D2E;
    --text-primary: #590f03;
    --text-secondary: #6B4423;
    --bg-cream: #FFFBF7;
    --bg-light: #FAF6F2;
    --border-light: #E8DDD7;
    --accent: #D2B48C;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 251, 247, 0.95) 0%, rgba(255, 248, 243, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(139, 38, 53, 0.08);
}

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

.logo {
    font-family: 'Spectral', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo::before {
    content: '';
    width: 6px;
    height: 32px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    display: block;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFFBF7 0%, #FAF0E6 50%, #F5E6D8 100%);
    position: relative;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 38, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(160, 82, 45, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(210, 180, 140, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: var(--bg-cream);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    order: 1;
}

.hero h1 {
    font-family: 'Spectral', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.05;
    position: relative;
    display: inline-block;
    order: 2;
}

/* Split text effect for VidaKey AI */
.hero h1 .vida {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: glow 3s ease-in-out infinite;
}

.hero h1 .key {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: glow 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.hero h1 .ai {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--brown) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 300;
    margin-left: 0.2em;
    animation: pulse-ai 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
        transform: translateY(0);
    }
    50% {
        filter: brightness(1.2);
        transform: translateY(-2px);
    }
}

@keyframes pulse-ai {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Decorative underline effect */
.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    animation: slide 3s ease-in-out infinite;
}

@keyframes slide {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
}

.hero .tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
    font-family: 'Spectral', serif;
    font-weight: 300;
    order: 3;
}

.hero .vision {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.9;
    order: 4;
}

/* Animated dots */
.dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.5;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: float-dot 20s infinite ease-in-out;
}

.dot:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.dot:nth-child(2) { top: 20%; left: 80%; animation-delay: 2s; }
.dot:nth-child(3) { top: 60%; left: 20%; animation-delay: 4s; }
.dot:nth-child(4) { top: 80%; left: 70%; animation-delay: 6s; }
.dot:nth-child(5) { top: 40%; left: 90%; animation-delay: 8s; }

@keyframes float-dot {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.6;
    }
}

/* Sections */
section {
    padding: 6rem 2rem;
    position: relative;
}

/* Section separators */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

section:last-of-type::after {
    display: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Founders Section */
.founders {
    background: linear-gradient(135deg, #F5E6D8 0%, #EDD9C8 50%, #F0E2D5 100%);
    position: relative;
    overflow: hidden;
}

.founders::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 38, 53, 0.02) 0%, transparent 70%);
    animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.founders h2 {
    font-family: 'Spectral', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.founders .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
}

.founders-content {
    background: linear-gradient(135deg, #FFFFFE 0%, #FFF9F5 100%);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(210, 180, 140, 0.3);
    position: relative;
    box-shadow: 0 4px 20px rgba(139, 38, 53, 0.08);
}

.founders-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 60%);
    border-radius: 16px;
    opacity: 0.06;
    z-index: -1;
}

.founders-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 2rem;
    justify-content: center;
}

.tag {
    background: linear-gradient(135deg, #FFF8F3 0%, #FAF0E8 100%);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(139, 38, 53, 0.2);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.tag:hover {
    color: var(--bg-cream);
    transform: translateY(-1px);
    border-color: var(--primary);
}

.tag:hover::before {
    left: 0;
}

/* Sign-up Section */
.signup {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFF8F3 50%, #FAF0E8 100%);
    position: relative;
    overflow: hidden;
}

.signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top left, rgba(139, 38, 53, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(210, 180, 140, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.signup h2 {
    font-family: 'Spectral', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.signup-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.signup-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-cream);
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(139, 38, 53, 0.25);
    font-family: 'Inter', sans-serif;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 38, 53, 0.35);
}

.cta-button::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.cta-button:hover::after {
    transform: translateX(4px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2C1810 0%, #4A0E18 50%, #6B1F2B 100%);
    color: #FFF8F3;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 25%, var(--primary) 50%, var(--accent) 75%, transparent 100%);
}

footer p {
    opacity: 0.8;
    font-size: 0.875rem;
    font-weight: 400;
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content .ai-badge {
    animation-delay: 0s;
}

.hero-content h1 {
    animation-delay: 0.15s;
}

.hero-content .tagline {
    animation-delay: 0.3s;
}

.hero-content .vision {
    animation-delay: 0.45s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }

    .founders-content {
        padding: 2rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        letter-spacing: -1px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo::before {
        height: 24px;
    }

    .expertise-tags {
        gap: 0.5rem;
    }

    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Subtle pulse animation for AI badge */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.ai-badge {
    animation: pulse 3s ease-in-out infinite;
}

/* Loading state for button */
.cta-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cta-button.loading::after {
    content: '...';
    animation: dots 1s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}