/* Reset & Base */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #000000;
    --accent-green: #004f00;
    --secondary-bg: #f5f5f7;
    --border-color: #e6e6e6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

ul {
    list-style: none;
}

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

/* Canvas Background - Hero only */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--accent-color);
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

p {
    font-size: 1.125rem;
    color: #555;
    max-width: 65ch;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Accent Green Highlight */
.accent {
    color: var(--accent-green);
    font-weight: 800;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.logo-text {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.06em;
    margin-left: 1rem;
    margin-bottom: 9px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
}

.nav-links a:hover {
    color: #000;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 99px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background-color: #000;
    color: #fff;
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--secondary-bg);
    border-color: #000;
}

.btn-glass {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--secondary-bg);
    border: 1px solid var(--accent-green);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-green);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 2.5rem;
}

.command-box {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    color: #333;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.alt-bg {
    background-color: var(--secondary-bg);
}

.section-header {
    margin-bottom: var(--spacing-md);
}

.section-intro {
    max-width: 800px;
    margin-bottom: var(--spacing-lg);
}

.section-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.center-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 20px;
}

.bento-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

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

.bento-card.wide {
    grid-column: span 3;
}

.bento-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.bento-card p {
    font-size: 1rem;
    color: #666;
}

/* Abstract Visuals */
.abstract-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
}

.stripes {
    background-image: repeating-linear-gradient(-45deg,
            #000,
            #000 2px,
            transparent 2px,
            transparent 10px);
}

.dots {
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Two Col Section (Dev) */
.two-col-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.accent-line {
    width: 40px;
    height: 4px;
    background: #000;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-list .icon {
    font-size: 1.5rem;
    font-weight: 800;
}

.feature-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.feature-list p {
    font-size: 1rem;
    margin: 0;
}

/* Code Window */
.code-window {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.window-header {
    background: #fafafa;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.window-title {
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #999;
}

.code-content {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Syntax Highlighting (Thice Theme) */
.keyword {
    color: #000;
    font-weight: 700;
}

.type {
    color: #555;
}

.func {
    color: #000;
}

.string {
    color: #666;
    font-style: italic;
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
}

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

.logo-footer {
    font-weight: 800;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #888;
}

.footer-links a:hover {
    color: #000;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: #fafafa;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    font-size: 0.95rem;
    color: #555;
}

.comparison-table .highlight {
    background: #000;
    color: #fff;
    font-weight: 600;
}

.comparison-table th.highlight {
    background: #000;
}

/* Use Cases Grid */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.usecase-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usecase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.usecase-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.usecase-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.usecase-card p {
    font-size: 0.95rem;
    color: #666;
}

.usecase-card code {
    background: var(--secondary-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.security-feature {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.security-feature h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.security-feature p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.security-feature pre {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
}

.security-feature code {
    color: #333;
}

.security-feature .comment {
    color: #888;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.example-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.example-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.example-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.example-card pre {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.example-note {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin: 0;
}

/* CTA Group */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Interoperability Grid */
.interop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.interop-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.interop-card.wide {
    grid-column: span 2;
}

.interop-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.interop-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.interop-card pre {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
}

/* Thice Passport */
.passport-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.passport-badge {
    display: inline-block;
    background: var(--accent-green);
    color: #fff;
    padding: 8px 16px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.passport-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.passport-info>p {
    margin-bottom: 1.5rem;
}

.passport-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.passport-features li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.passport-features strong {
    color: #000;
}

.passport-note {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.passport-card {
    background: linear-gradient(135deg, #f5f5f7 0%, #fff 100%);
    border: 2px solid #000;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.passport-card-header {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.passport-card-id {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.passport-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.passport-card-status {
    color: #000;
    font-weight: 700;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

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

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

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

    .two-col-section {
        grid-template-columns: 1fr;
    }

    .usecase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .interop-card.wide {
        grid-column: span 1;
    }

    .passport-content {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md) var(--spacing-md);
    }

    .comparison-table table {
        zoom: 0.8;
    }

    .nav-links {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .usecase-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

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

    .cta-group {
        flex-direction: column;
    }

    .passport-content {
        flex-direction: column;
        padding: 0;
    }

    .passport-visual {
        margin-bottom: var(--spacing-md);
    }

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