/* assets/css/style.css */

/* Fonts */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

:root {
    /* Color Palette - Dark & Premium */
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;

    --primary: #3b82f6;
    /* Blue-ish */
    --secondary: #10b981;
    /* Green-ish for Eagle Doc related */
    --accent-glow: rgba(59, 130, 246, 0.5);

    --gradient-text: linear-gradient(135deg, #60a5fa 0%, #10b981 100%);
    --gradient-btn: linear-gradient(90deg, #3b82f6, #10b981);

    --border-color: rgba(255, 255, 255, 0.1);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    --spacing-container: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Glows */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(100px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
}

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

.navbar nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.navbar nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--text-main);
}

.navbar nav a.highlight-link {
    color: var(--secondary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Product Section */
.product-section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.eagle-text {
    color: var(--secondary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.product-logo {
    height: 120px;
    width: auto;
    margin-bottom: 32px;
    transition: transform 0.3s ease;
}

.logo-link:hover .product-logo {
    transform: scale(1.05);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, background 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-card.large {
    grid-column: span 2;
    position: relative;
    overflow: hidden;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-muted);
}

.icon-display {
    margin-top: 24px;
    color: var(--secondary);
    opacity: 0.8;
}

.tags-container {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-weight: 500;
}

/* Ecosystem Section */
.ecosystem-section {
    margin: 80px 0;
    padding: 40px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ecosystem-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 40px;
    color: var(--text-main);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.product-card:hover {
    border-color: var(--secondary);
}

.product-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.product-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.feature-list li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
}


/* CTA */
.product-cta {
    display: flex;
    justify-content: center;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 40px 60px;
    border-radius: 24px;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.glass-card h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.btn-glow {
    margin-top: 24px;
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
    /* Slight grow */
}

/* About Section */
.about-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.text-block {
    flex: 1;
}

.text-block h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.text-block p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.visual-block {
    flex: 1;
    display: flex;
    justify-content: center;
}

.abstract-shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    opacity: 0.6;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 40% 60% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Section */
.legal-section {
    padding: 80px 0 40px;
    background: rgba(10, 10, 12, 0.5);
    border-top: 1px solid var(--border-color);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.legal-column h4 {
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.legal-column p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

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

    .bento-card.large {
        grid-column: span 1;
    }

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

    .split-layout {
        flex-direction: column;
    }

    .glass-card {
        padding: 32px 24px;
    }
}

/* Scanner Animation Visuals */
.scanner-stage {
    position: relative;
    width: 280px;
    height: 360px;
    perspective: 1000px;
    margin: 0 auto 40px;
}

.scanner-doc {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e1e24 0%, #17171a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transform: rotateX(10deg);
    transform-origin: center bottom;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.scanner-stage:hover .scanner-doc {
    transform: rotateX(0deg) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
}

.doc-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 100%;
}

.doc-line.short {
    width: 40%;
}

.doc-line.medium {
    width: 70%;
}

.scan-beam {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.5) 50%, rgba(16, 185, 129, 0.8) 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    animation: scanMove 3s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

.scan-beam::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

@keyframes scanMove {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.doc-line.active {
    background: rgba(16, 185, 129, 0.2);
    /* Transition to green when scanned conceptually (requires more complex CSS or JS, simplified here to just static style for now or simple animation delay if desired) */
}

/* Enhanced Keywords */
.keyword-highlight {
    color: var(--text-main);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.keyword-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(16, 185, 129, 0.2);
    z-index: -1;
    transform: skewX(-10deg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}