:root {
    --bg: #fafaf8;
    --surface: #ffffff;
    --ink: #111111;
    --ink-secondary: #555555;
    --ink-muted: #999999;
    --border: #e5e5e0;
    --border-strong: #cccccc;
    --accent: #ff4d4d;
    --accent-dark: #cc0000;
    --accent-light: #ffeded;
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --green: #059669;
    --green-light: #ecfdf5;
    --yellow-accent: #f59e0b;
    --yellow-light: #fffbeb;
    --shadow: 4px 4px 0px #111111;
    --shadow-hover: 6px 6px 0px #111111;
    --shadow-sm: 2px 2px 0px #111111;
    --radius: 0px;
    --radius-sm: 0px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Schibsted Grotesk', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(45deg, #111 0px, #111 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(-45deg, #111 0px, #111 1px, transparent 1px, transparent 20px);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--ink);
    padding: 14px 0;
}

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

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Schibsted Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -1px;
    color: var(--ink);
    text-transform: lowercase;
}

.logo-link .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    margin-left: 2px;
    border: 2px solid var(--ink);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--ink-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a.active {
    color: var(--ink);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
}

.btn-header {
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Schibsted Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-block;
}

.btn-header:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translate(-1px, -1px);
    box-shadow: var(--shadow);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 620px;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-light);
    border: 2px solid var(--accent);
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dark);
    margin-bottom: 28px;
}

.hero-headline {
    font-size: clamp(3rem, 5.5vw, 4.8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-headline .accent-word {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-headline .accent-word::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent);
    opacity: 0.25;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--ink-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    padding: 16px 36px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Schibsted Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary .arrow {
    font-size: 1.3rem;
    transition: transform 0.2s;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    padding: 16px 36px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Schibsted Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.btn-outline:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

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

.visual-block {
    background: var(--surface);
    border: 3px solid var(--ink);
    padding: 0;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.visual-block:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hover);
}

.visual-topbar {
    background: #f0f0ec;
    border-bottom: 2px solid var(--ink);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visual-topbar .circle {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--ink);
}

.visual-topbar .circle:nth-child(1) { background: #ff5f57; }
.visual-topbar .circle:nth-child(2) { background: #febc2e; }
.visual-topbar .circle:nth-child(3) { background: #28c840; }

.visual-topbar .filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-secondary);
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visual-body {
    padding: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 2;
    color: var(--ink-secondary);
    background: #fdfdfc;
}

.visual-body .line-num { color: #ccc; margin-right: 16px; user-select: none; }
.visual-body .keyword { color: var(--accent); font-weight: 600; }
.visual-body .func { color: var(--blue); font-weight: 600; }
.visual-body .string { color: var(--green); }
.visual-body .comment { color: #bbb; }

.visual-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--ink);
    margin: 24px 32px 32px;
    box-shadow: var(--shadow-sm);
}

.stats-row {
    display: flex;
    gap: 60px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 2px solid var(--border);
}

.stat-item .stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--ink);
}

.stat-item .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink-muted);
    margin-top: 6px;
    font-weight: 700;
}

.marquee-section {
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    background: var(--ink);
    color: #fff;
    padding: 18px 0;
    overflow: hidden;
    margin: 0 -40px;
}

.marquee-track {
    display: flex;
    gap: 48px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.marquee-track .sep { color: var(--accent); }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.services-section {
    padding: 120px 0 80px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-label .dash {
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.section-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--ink-secondary);
    margin-bottom: 56px;
    font-weight: 500;
    max-width: 650px;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--surface);
    border: 2px solid var(--ink);
    padding: 36px 28px 28px;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    grid-column: span 2;
}

.service-card.featured {
    grid-column: span 3;
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: rgba(255,255,255,0.7); }
.service-card.featured .service-icon-custom { color: var(--accent); }
.service-card.featured .card-number { color: rgba(255,255,255,0.3); }
.service-card.featured .feature-list li { color: rgba(255,255,255,0.7); }
.service-card.featured .feature-list li::before { color: var(--accent); }

.service-card.python-card {
    grid-column: span 3;
    background: #1e1e2e;
    color: #cdd6f4;
    border-color: #45475a;
}

.service-card.python-card h3 { color: #f5c542; }
.service-card.python-card p { color: #a6adc8; }
.service-card.python-card .service-icon-custom {
    color: #f5c542;
    border-color: #45475a;
    background: rgba(245, 197, 66, 0.05);
}
.service-card.python-card .card-number { color: rgba(166, 173, 200, 0.3); }
.service-card.python-card .feature-list li { color: #a6adc8; }
.service-card.python-card .feature-list li::before { color: #f5c542; }
.service-card.python-card .tech-tag {
    border-color: #45475a;
    background: rgba(166, 173, 200, 0.05);
    color: #a6adc8;
}

.service-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow);
}

.service-card .card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card.python-card .card-accent {
    background: #f5c542;
}

.service-card:hover .card-accent {
    transform: scaleX(1);
}

.service-icon-custom {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    background: var(--bg);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--ink);
    flex-shrink: 0;
}

.service-card.featured .service-icon-custom {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.service-card > p {
    color: var(--ink-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-list li {
    font-size: 0.78rem;
    color: var(--ink-secondary);
    font-weight: 500;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.service-card .card-number {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: 2px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--border-strong);
    color: var(--ink-muted);
    background: var(--bg);
    letter-spacing: 0.5px;
}

.service-card.featured .tech-tag,
.service-card.python-card .tech-tag {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
}

.all-models-banner {
    grid-column: 1 / -1;
    background: var(--yellow-light);
    border: 2px solid var(--yellow-accent);
    padding: 28px 36px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    margin-top: 8px;
}

.all-models-banner .banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.all-models-banner .banner-text {
    flex: 1;
    min-width: 200px;
}

.all-models-banner .banner-text strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #92400e;
    margin-bottom: 4px;
}

.all-models-banner .banner-text span {
    font-size: 0.85rem;
    color: #a16207;
    font-weight: 500;
    line-height: 1.5;
}

.all-models-banner .model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 6px 14px;
    border: 2px solid var(--yellow-accent);
    background: #fff;
    color: #92400e;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cta-section {
    padding: 60px 0 120px;
}

.cta-block {
    background: var(--ink);
    color: #fff;
    border: 3px solid var(--ink);
    padding: 72px 56px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    background: var(--accent);
    z-index: -1;
    border: 3px solid var(--ink);
}

.cta-block h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-block p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.btn-light {
    background: #fff;
    color: var(--ink);
    border: 2px solid var(--ink);
    padding: 16px 40px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Schibsted Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--accent);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow);
}

.site-footer {
    border-top: 2px solid var(--ink);
    padding: 56px 0 32px;
    background: #f5f5f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-link { margin-bottom: 12px; }

.footer-brand p {
    color: var(--ink-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    font-weight: 500;
}

.footer-col h4 {
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: var(--ink);
}

.footer-col a {
    display: block;
    color: var(--ink-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 2px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .service-card.featured,
    .service-card.python-card {
        grid-column: span 4;
    }
    .all-models-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-visual { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-card { grid-column: span 1; }
    .service-card.featured,
    .service-card.python-card { grid-column: span 2; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card,
    .service-card.featured,
    .service-card.python-card { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .stats-row { gap: 30px; flex-wrap: wrap; }
    .cta-block { padding: 40px 24px; }
    .hero-headline { font-size: 2.6rem; }
    .marquee-section { margin: 0 -20px; }
}