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

:root {
    --white: #fff;
    --black: #0a0a0a;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-900: #171717;
    --green: #14532d;
    --green-light: #16a34a;
    --green-bg: #ecfdf5;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --max-w: 1080px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Nav === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gray-200);
}

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav__brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--green);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav__links a:hover { color: var(--gray-900); }

.nav__cta {
    background: var(--green);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    transition: background 0.2s, transform 0.15s !important;
}

.nav__cta:hover {
    background: var(--black) !important;
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-900);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
    .nav__toggle { display: block; }

    .nav__links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--gray-200);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
    }

    .nav__links.open { display: flex; }

    .nav__links a { font-size: 1rem; }
}

/* === Hero === */
.hero {
    padding-top: 140px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero__tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.hero__name {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.accent-dot {
    color: var(--green);
}

.hero__role {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--green);
    font-weight: 600;
}

.hero__claim {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-500);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.hero__photo {
    width: 340px;
    height: 340px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero { padding-top: 100px; padding-bottom: 60px; }
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero__visual { order: -1; }
    .hero__photo { width: 200px; height: 200px; border-radius: 50%; }
    .hero__claim { margin-left: auto; margin-right: auto; }
}

/* === Button === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background: var(--green);
    color: var(--white);
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(22, 101, 52, 0.25);
}

.btn:hover {
    background: var(--black);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn--large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* === Sections === */
.section {
    padding: 100px 0;
}

.section__tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 1rem;
}

.section__headline {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section__intro {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.section__header {
    margin-bottom: 3.5rem;
}

/* === Services (vertical list) === */
.services {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
}

.service:last-child {
    border-bottom: 1px solid var(--gray-200);
}

.service__num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green);
    font-variant-numeric: tabular-nums;
    min-width: 2rem;
    padding-top: 0.15rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}

.service__line {
    width: 40px;
    height: 1px;
    background: var(--gray-200);
    margin-top: 0.85rem;
    flex-shrink: 0;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.service:hover .service__num {
    transform: scale(1.35);
    color: var(--green-light);
}

.service:hover .service__line {
    width: 64px;
    background: var(--green);
}

.service__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.service__text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 500px;
}

@media (max-width: 640px) {
    .service { flex-wrap: wrap; gap: 0.75rem; }
    .service__line { display: none; }
}

.guardrails {
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: var(--gray-500);
    font-style: italic;
    border-left: 3px solid var(--green);
    padding-left: 1.25rem;
    max-width: 560px;
}

.guardrails strong {
    color: var(--gray-900);
    font-style: normal;
}

/* === Stats Section === */
.section--stats {
    background: var(--gray-900);
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    text-align: center;
}

.stat__number {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat__suffix {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--green-light);
    margin-left: 0.25rem;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .stats {
        flex-direction: column;
        gap: 2.5rem;
    }
}

/* === Pipeline (dark section) === */
.section--dark {
    background: var(--gray-900);
    color: var(--white);
}

.section--dark .section__tag {
    color: var(--green-light);
}

.section--dark .section__headline {
    color: var(--white);
}

.pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.pipeline__step {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.25s, transform 0.25s;
}

.pipeline__step:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.pipeline__num {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--black);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pipeline__label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.pipeline__desc {
    font-size: 0.8rem;
    color: var(--gray-400);
    line-height: 1.5;
}

.pipeline__arrow {
    display: flex;
    align-items: center;
    color: var(--green-light);
    font-size: 1.25rem;
    padding-top: 2.5rem;
    flex-shrink: 0;
    opacity: 0.6;
}

.pipeline__note {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    border-left: 3px solid var(--green-light);
    padding-left: 1.25rem;
    max-width: 640px;
}

@media (max-width: 768px) {
    .pipeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .pipeline__arrow {
        display: none;
    }
    .pipeline__step {
        padding: 1.25rem 0.75rem;
    }
}

/* === Profil Grid === */
.profil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .profil-grid { grid-template-columns: 1fr; }
}

.profil-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.25s, box-shadow 0.25s;
}

.profil-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.profil-card__title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.profil-card__text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* === Mindset Section === */
.section--mindset {
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.mindset__quote {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--gray-900);
    max-width: 680px;
    margin: 0 auto 2rem;
    border: none;
    padding: 0;
}

.mindset__values {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
}

/* === CTA Section === */
.section--cta {
    background: var(--green);
    text-align: center;
    padding: 120px 0;
}

.cta__headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta__headline .accent-dot {
    color: var(--green-light);
}

.cta__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.section--cta .btn {
    background: var(--white);
    color: var(--green);
}

.section--cta .btn:hover {
    background: var(--black);
    color: var(--white);
}

/* === Contact Form === */
.contact-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form__row {
    display: flex;
    gap: 1rem;
}

@media (max-width: 480px) {
    .contact-form__row { flex-direction: column; }
}

.contact-form__input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
}

.contact-form__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.contact-form__input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__btn {
    border: none;
    cursor: pointer;
    align-self: center;
    margin-top: 0.5rem;
}

.cta__alt {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.cta__alt a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s;
}

.cta__alt a:hover {
    border-color: var(--white);
}

/* === Footer === */
.footer {
    border-top: 1px solid var(--gray-200);
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.footer__inner p { margin-bottom: 0.25rem; }

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover { color: var(--gray-900); }

.footer__legal { margin-top: 0.5rem; }

/* === Hero Word Reveal Animation === */
.word-reveal {
    opacity: 0;
    transform: translateY(50px);
    animation: wordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.word-reveal:nth-child(1) { animation-delay: 0.1s; }
.word-reveal:nth-child(2) { animation-delay: 0.25s; }
.word-reveal:nth-child(3) { animation-delay: 0.4s; }
.word-reveal:nth-child(4) { animation-delay: 0.55s; }
.word-reveal:nth-child(5) { animation-delay: 0.7s; }
.word-reveal:nth-child(6) { animation-delay: 0.85s; }

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

/* Animated underline on AI-First */
.highlight--animated {
    position: relative;
}

.highlight--animated::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--green);
    animation: drawLine 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes drawLine {
    to { width: 100%; }
}

/* === Marquee === */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 0;
}

.marquee__track {
    display: inline-flex;
    gap: 2rem;
    animation: scroll 25s linear infinite;
}

.marquee__track span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    flex-shrink: 0;
}

@keyframes scroll {
    to { transform: translateX(-50%); }
}

/* === Scroll Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered service items */
.service.reveal:nth-child(1) { transition-delay: 0s; }
.service.reveal:nth-child(2) { transition-delay: 0.1s; }
.service.reveal:nth-child(3) { transition-delay: 0.2s; }
.service.reveal:nth-child(4) { transition-delay: 0.3s; }
.service.reveal:nth-child(5) { transition-delay: 0.4s; }
.service.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Staggered profil cards */
.profil-card.reveal:nth-child(1) { transition-delay: 0s; }
.profil-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.profil-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.profil-card.reveal:nth-child(4) { transition-delay: 0.3s; }

/* === Mobile Spacing === */
@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
    .section { padding: 60px 0; }
    .section--cta { padding: 80px 0; }
    .section--stats { padding: 60px 0; }
    .btn--large { padding: 1rem 2rem; font-size: 1rem; }
}

/* === Legal Pages === */
.legal {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 140px 2rem 100px;
}

.legal h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.legal h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal p {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 1rem;
}
