/* ================================================
   AFTERLOAD — Landing Page Styles
   Aesthetic: Refined Dark Tech / Nordic Minimalism
   ================================================ */

:root {
    --bg-primary: #07090f;
    --bg-secondary: #0d1117;
    --text-primary: #f0f2f5;
    --text-secondary: #8b919a;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --border: rgba(255, 255, 255, 0.08);

    --font-display: 'Clash Display', sans-serif;
    --font-body: 'General Sans', -apple-system, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Grain Overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Geometric Accent */
.geo-accent {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-lg);
    padding-top: 0;
    max-width: 1000px;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

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

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1s;
}

.scroll-hint a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.scroll-hint a:hover {
    color: var(--text-primary);
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--text-secondary), transparent);
}

/* About Section */
.about {
    padding: var(--space-2xl) var(--space-lg);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
    max-width: 1200px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    padding-top: 0.5rem;
}

.section-content h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    max-width: 700px;
}

.section-content p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

/* Capabilities */
.capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.capability {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.cap-number {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

.cap-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

/* Contact / Footer */
.contact {
    padding: var(--space-2xl) var(--space-lg);
    padding-bottom: var(--space-lg);
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1200px;
    margin-bottom: var(--space-2xl);
}

.contact-cta h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.email-link {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    transition: color 0.3s ease;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: center;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.info-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
}

@media (max-width: 600px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .nav {
        padding: var(--space-sm) var(--space-md);
    }

    .hero-content {
        padding: var(--space-md);
    }

    .scroll-hint {
        left: var(--space-md);
        bottom: var(--space-md);
    }

    .about,
    .contact {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .capabilities {
        flex-direction: column;
        gap: var(--space-md);
    }

    .contact-info {
        flex-direction: column;
        gap: var(--space-md);
    }

    .geo-accent {
        width: 100vw;
        height: 100vw;
        top: -30%;
        right: -30%;
    }
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}
