/* ========================================
   CSS Variables - Matching GetDataLineage Theme
   ======================================== */

:root {
    /* Azure Blue Palette */
    --primary-50: #eff6fc;
    --primary-100: #deecf9;
    --primary-200: #c7e0f4;
    --primary-300: #6cb8f6;
    --primary-400: #2d8ef5;
    --primary-500: #0078d4;
    --primary-600: #106ebe;
    --primary-700: #005a9e;
    --primary-800: #004578;
    --primary-900: #003053;

    /* Success Green */
    --success-500: #107c10;
    --success-600: #0b5a0b;

    /* Warning Orange */
    --warning-500: #ea4300;
    --warning-600: #d13438;

    /* Danger Red */
    --danger-500: #c50f1f;
    --danger-600: #a80000;

    /* Dark Theme (Zinc) */
    --dark-50: #fafafa;
    --dark-100: #f4f4f5;
    --dark-200: #e4e4e7;
    --dark-300: #d4d4d8;
    --dark-400: #a1a1aa;
    --dark-500: #71717a;
    --dark-600: #52525b;
    --dark-700: #3f3f46;
    --dark-800: #27272a;
    --dark-900: #18181b;
    --dark-950: #09090b;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-50);
    background-color: var(--dark-950);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-950) 0%, var(--dark-900) 50%, var(--primary-900) 100%);
    padding: var(--spacing-xl) var(--spacing-md);
}

.grid-background {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 120, 212, 0.15);
    border: 1px solid rgba(0, 120, 212, 0.3);
    border-radius: 9999px;
    color: var(--primary-300);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease forwards;
}

.badge .icon {
    width: 1rem;
    height: 1rem;
}

/* Headline */
.headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: white;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subheadline */
.subheadline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--dark-300);
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

/* Form Card */
.form-card {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dark-800);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    width: 100%;
}

input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: white;
    background: rgba(39, 39, 42, 0.8);
    border: 2px solid var(--dark-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.1);
    background: var(--dark-800);
}

input::placeholder {
    color: var(--dark-400);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 120, 212, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Messages */
.message {
    margin-top: var(--spacing-md);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.message-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    stroke-width: 2.5;
}

.message.success {
    background: rgba(16, 124, 16, 0.15);
    color: var(--success-500);
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.message.error {
    background: rgba(197, 15, 31, 0.15);
    color: var(--danger-500);
    border: 1px solid rgba(197, 15, 31, 0.3);
}

/* Waitlist Count */
.waitlist-count {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(39, 39, 42, 0.5);
    border-radius: var(--radius-lg);
    text-align: center;
}

.count-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-400);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.count-label {
    color: var(--dark-400);
    font-size: 0.875rem;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--dark-300);
    font-size: 0.875rem;
}

.trust-icon {
    width: 1rem;
    height: 1rem;
    stroke: var(--primary-400);
    stroke-width: 2.5;
}

/* ========================================
   Stats Section
   ======================================== */

.stats-section {
    background: var(--dark-950);
    padding: var(--spacing-xl) var(--spacing-md);
    border-top: 1px solid var(--dark-800);
    border-bottom: 1px solid var(--dark-800);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--dark-400);
}

.stat-divider {
    width: 1px;
    background: var(--dark-800);
    display: none;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: auto 1px auto 1px auto;
    }

    .stat-divider {
        display: block;
    }
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: var(--spacing-2xl) var(--spacing-md);
    background: linear-gradient(to bottom, var(--dark-950) 0%, var(--dark-900) 100%);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--spacing-xl);
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid var(--dark-800);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--dark-700);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card.featured {
    border-color: var(--primary-700);
    background: rgba(0, 120, 212, 0.05);
}

.feature-card.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 2;
}

.feature-icon.primary {
    background: rgba(0, 120, 212, 0.15);
    color: var(--primary-400);
}

.feature-icon.success {
    background: rgba(16, 124, 16, 0.15);
    color: var(--success-500);
}

.feature-icon.warning {
    background: rgba(234, 67, 0, 0.15);
    color: var(--warning-500);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--dark-300);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   Social Proof Section
   ======================================== */

.social-proof-section {
    padding: var(--spacing-2xl) var(--spacing-md);
    background: var(--dark-950);
    text-align: center;
}

.social-proof-label {
    font-size: 0.875rem;
    color: var(--primary-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-lg);
}

.companies-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.company-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-400);
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.company-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--dark-200);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--dark-950);
    border-top: 1px solid var(--dark-800);
    text-align: center;
}

.footer .container {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.footer p {
    color: var(--dark-400);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--dark-400);
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--dark-300);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-400);
}

/* ========================================
   Animations
   ======================================== */

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

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

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .headline {
        font-size: 2rem;
    }

    .subheadline {
        font-size: 1rem;
    }

    .form-card {
        padding: var(--spacing-lg);
    }

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

    .count-number {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .footer .container {
        text-align: center;
    }
}

@media (min-width: 769px) {
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}
