/* Thrive Tech Labs - Design System v2 (The White Lab) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Colors */
    --bg-lab: #FFFFFF;
    --bg-subtle: #fafafa;
    --text-primary: #000000;
    --text-secondary: #525252;
    --border-color: #e5e5e5;
    --accent-color: #2563eb;

    /* Fonts */
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-lab);
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;

    /* Technical Grid Background */
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

h1 {
    font-size: 4.5rem;
    line-height: 0.95;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 60ch;
    font-weight: 400;
}

/* Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    background: var(--bg-lab);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
}

/* Technical Tags */
.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #000000;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #000000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #FFFFFF;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

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

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 16px;
    height: 16px;
    background: #000000;
    animation: blink 4s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Sections */
section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero {
    padding-top: 4rem;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    border: 1px solid var(--border-color);
}

.card {
    background: var(--bg-lab);
    padding: 3rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    background: #fafafa;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.card-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 1.5rem;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.card-link:hover {
    border-bottom-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 4rem 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Animations */
.reveal-wrapper {
    overflow: hidden;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

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

    .container {
        border: none;
        padding: 0 1.5rem;
    }

    .grid {
        border: none;
    }

    .card {
        border: 1px solid var(--border-color);
        margin-bottom: 1rem;
    }
}