/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animated Background Lines */
.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-lines svg {
    position: absolute;
    width: 120%;
    height: 120%;
}

.line-1 {
    top: -10%;
    left: -10%;
    animation: flow-1 25s ease-in-out infinite;
}

.line-2 {
    top: 20%;
    left: -15%;
    animation: flow-2 30s ease-in-out infinite reverse;
}

.line-3 {
    top: 60%;
    right: -10%;
    animation: flow-3 35s ease-in-out infinite;
}

@keyframes flow-1 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(20px) translateY(-10px) rotate(1deg); }
    50% { transform: translateX(-10px) translateY(15px) rotate(-0.5deg); }
    75% { transform: translateX(15px) translateY(-5px) rotate(0.8deg); }
}

@keyframes flow-2 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    33% { transform: translateX(-25px) translateY(20px) rotate(-1deg); }
    66% { transform: translateX(15px) translateY(-15px) rotate(0.7deg); }
}

@keyframes flow-3 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    20% { transform: translateX(-15px) translateY(10px) rotate(0.5deg); }
    40% { transform: translateX(20px) translateY(-20px) rotate(-0.8deg); }
    60% { transform: translateX(-10px) translateY(25px) rotate(0.3deg); }
    80% { transform: translateX(25px) translateY(-10px) rotate(-0.6deg); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a;
    z-index: 1000;
    height: 72px;
}

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

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-button {
    background: #00ff88;
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.nav-button:hover {
    background: #00dd77;
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* Hero Section */
.hero {
    padding: 160px 0 140px;
    text-align: center;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(20px) rotate(1deg); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 800;
    line-height: 1.0;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 8px;
}

.hero-line {
    display: block;
}

.hero-subtitle {
    font-size: 22px;
    color: #aaa;
    margin-bottom: 48px;
    line-height: 1.5;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.email-signup {
    display: flex;
    gap: 12px;
    max-width: 400px;
    width: 100%;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #333;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    outline: none;
    background: #1a1a1a;
    color: #fff;
}

.email-input:focus {
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
}

.email-input::placeholder {
    color: #666;
}

.cta-button {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.cta-button:hover {
    background: #00dd77;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

.docs-link {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.docs-link:hover {
    color: #00ff88;
}

/* Signup Messages */
.signup-message {
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.signup-message.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.signup-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.section-subtitle {
    font-size: 20px;
    color: #aaa;
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works */
.how-it-works {
    background: #0a0a0a;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.step {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
    border: 1px solid #333;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #00ff88;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.step-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.step-content p {
    color: #aaa;
    line-height: 1.6;
}

/* Why Now */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.why-item {
    text-align: center;
}

.why-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.why-item p {
    color: #aaa;
    line-height: 1.6;
}

/* Use Cases */
.use-cases {
    background: #111;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.use-case {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
    border: 1px solid #333;
}

.use-case:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.use-case-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.use-case h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.use-case p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.use-case-example {
    background: #0a0a0a;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #00ff88;
}

.use-case-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.flow-step {
    background: #0a0a0a;
    color: #00ff88;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #333;
}

.flow-arrow {
    color: #666;
    font-weight: bold;
    font-size: 14px;
}

/* Features Section */
.features-section {
    background: #0a0a0a;
}

.feature-card {
    background: #1a1a1a;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
    border: 1px solid #333;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-example {
    background: #0a0a0a;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #00ff88;
}

.example-label {
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.feature-example code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #00ff88;
    line-height: 1.4;
}



/* Final CTA */
.final-cta {
    background: #000;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 32px;
}

.final-cta .email-input {
    border-color: #333;
    background: #111;
    color: white;
}

.final-cta .email-input:focus {
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
}

.final-cta .cta-button {
    background: #00ff88;
    color: #000;
}

.final-cta .cta-button:hover {
    background: #00dd77;
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 64px 0 32px;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px;
}

.footer-left p {
    color: #666;
    margin-top: 16px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-column a {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #00ff88;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .email-signup {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    section {
        padding: 64px 0;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .step {
        padding: 32px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links {
        gap: 32px;
    }
    
    .code-block pre {
        padding: 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 16px;
    }
    
    .nav-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}