/* Variables */
:root {
    --color-bg: #0a0a0a;
    --color-bg-light: #1a1a1a;
    --color-text: #e5e5e5;
    --color-text-dim: #a3a3a3;
    --color-accent-purple: #8b5cf6;
    --color-accent-blue: #3b82f6;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 6rem;
    --spacing-xl: 8rem;
}

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

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 0% 50%, rgba(59, 130, 246, 0.1), transparent),
        radial-gradient(ellipse 60% 50% at 100% 50%, rgba(139, 92, 246, 0.1), transparent);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1.05);
    }
}

body > * {
    position: relative;
    z-index: 1;
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 25s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
    animation-duration: 30s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    top: 50%;
    right: -10%;
    animation-delay: -10s;
    animation-duration: 35s;
}

.shape-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
    bottom: 10%;
    left: 30%;
    animation-delay: -20s;
    animation-duration: 40s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) rotate(240deg) scale(0.9);
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo-img {
    height: 32px;
    width: auto;
}

header .header-cta {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

header .header-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2), 0 0 40px rgba(139, 92, 246, 0.1);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--spacing-xl) * 2 + 64px) 0 var(--spacing-lg) 0;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-dim);
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

/* Tools Section */
.tools {
    padding: var(--spacing-lg) 0;
}

.tools h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.tool-card {
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.tool-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.4s;
}

.tool-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent-purple);
    text-align: center;
}

.tool-image-wrapper {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.tool-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.tool-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.tool-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    filter: brightness(0.7);
}

.tool-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tool-image:hover .tool-overlay {
    opacity: 1;
    pointer-events: auto;
}

.btn-overlay {
    transform: translateY(10px);
    z-index: 10;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.btn-overlay:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.tool-image:hover .btn-overlay {
    transform: translateY(0);
}


.tool-content {
    text-align: center;
}

.tool-content p {
    color: var(--color-text-dim);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2), 0 0 40px rgba(139, 92, 246, 0.1);
}

/* About Section */
.about {
    padding: var(--spacing-lg) 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--color-text-dim);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.about .coming-soon {
    color: var(--color-text);
    font-style: italic;
    opacity: 0.7;
    margin-top: var(--spacing-sm);
}

/* Early Access Section */
.early-access {
    padding: var(--spacing-xs) 0 var(--spacing-lg) 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.early-access h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.early-access > p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-dim);
    margin-bottom: var(--spacing-sm);
}

.early-access-form {
    margin-top: var(--spacing-sm);
}

.early-access-form-controls {
    display: flex;
    gap: 1rem;
}

.early-access-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: var(--color-bg-light);
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.early-access-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent-purple);
}

.early-access-form input[type="email"]::placeholder {
    color: var(--color-text-dim);
}

.early-access-form button {
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.early-access-form button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2), 0 0 40px rgba(139, 92, 246, 0.1);
}

.early-access-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: left;
}

/* Footer */
footer {
    background: var(--color-bg);
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid #262626;
}

footer p {
    margin-bottom: var(--spacing-xs);
}

footer a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-accent-purple);
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-xs);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (min-width: 769px) {
    .btn-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .tool-card {
        margin-bottom: var(--spacing-md);
    }

    .tool-overlay {
        display: none !important;
    }

    .btn-overlay {
        display: none !important;
    }

    .btn-mobile {
        display: block !important;
        text-align: center;
        margin-top: var(--spacing-sm);
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    .tool-image:hover img {
        transform: none;
        filter: none;
    }

    .hero {
        min-height: 50vh;
        padding: calc(var(--spacing-xl) + 64px) 0 var(--spacing-md) 0;
    }

    .tools,
    .about,
    .early-access {
        padding: var(--spacing-md) 0;
    }

    .early-access-form-controls {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
