@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap);
@import url(https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap);

/* VARIABLES */
:root {
    --primary-color: #00d4aa;
    --primary-hover: #00b892;
    --accent-blue: #3b82f6;
    --secondary-color: #0a2540;
    --bg-dark: #0a0e1a;
    --bg-darker: #060810;
    --bg-card: #111827;
    --bg-card-hover: #1a2235;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #1f2937;
    --green: #00d4aa;
    --red: #ff5c6c;
    --yellow: #fbbf24;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.2;
}

/* UTILITY CLASSES */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2D3E61 0%, #58B9B7 100%);
    color: #fff;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.section-subheading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--text-primary);
    max-width: 650px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
}

/* GLOBAL */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--text-secondary);
    background-color: var(--bg-dark);
}

section {
    position: relative;
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* HEADER */
header {
    padding: 1rem 0;
    width: 100%;
    position: fixed;
    z-index: 999;
    top: 0;
    transition: all 0.3s ease;
}

header.sticky {
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border-color);
}

.header__logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header__menu {
    gap: 2rem;
}

.header__menu li a {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.header__menu li a:hover {
    color: var(--text-primary);
}

header .right {
    gap: 1rem;
}

header .right .btn-primary {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.menu-btn {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem !important;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 170, 0.15) 0%, transparent 60%);
}

.hero__content {
    max-width: 700px;
}

.hero__badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.1);
    margin-bottom: 1.5rem;
}

.hero__content h1 {
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero__tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero__content .text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* PROBLEM */
#problem {
    border-top: 1px solid var(--border-color);
}

.problem__content {
    max-width: 720px;
}

.problem__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.problem__content p:last-child {
    margin-bottom: 0;
}

/* SOLUTION */
#solution {
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.03) 0%, transparent 50%);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature {
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.feature:hover {
    border-color: rgba(0, 212, 170, 0.3);
    background: var(--bg-card-hover);
}

.feature__icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 212, 170, 0.1);
}

.feature__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature__text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.pull-quote {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--primary-color);
    background: rgba(0, 212, 170, 0.04);
    border-radius: 0 8px 8px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pull-quote p {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin: 0;
}

/* HOW IT WORKS */
#how-it-works {
    border-top: 1px solid var(--border-color);
}

.code-block {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    background: var(--bg-darker);
}

.code-block__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.code-block__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-block__dot.red { background: #ff5f57; }
.code-block__dot.yellow { background: #febc2e; }
.code-block__dot.green { background: #28c840; }

.code-block__filename {
    margin-left: 0.75rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.code-block__body {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.code-block__body code {
    font-family: inherit;
}

.code-key { color: #7dd3fc; }
.code-string { color: #86efac; }
.code-number { color: #fbbf24; }
.code-approved { color: var(--green); }
.code-blocked { color: var(--red); }

/* STEPS */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step__number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 212, 170, 0.15);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.step__content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.step__content p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.latency-callout {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.2);
    color: var(--green);
    font-size: 0.9rem;
}

.latency-callout i {
    font-size: 1rem;
}

/* VERIFICATION RESPONSE */
#verification {
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.03) 0%, transparent 50%);
}

.response-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.response-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-darker);
}

.response-card__header {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.response-card__badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.response-card__badge.approved {
    color: var(--green);
    background: rgba(0, 212, 170, 0.12);
}

.response-card__badge.blocked {
    color: var(--red);
    background: rgba(255, 92, 108, 0.12);
}

.response-card__body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-secondary);
    overflow-x: auto;
}

.response-card__body code {
    font-family: inherit;
}

/* ARCHITECTURE */
#architecture {
    border-top: 1px solid var(--border-color);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pillar {
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.pillar:hover {
    border-color: rgba(0, 212, 170, 0.3);
}

.pillar__icon {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 212, 170, 0.1);
}

.pillar__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pillar__text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* WHY INNTRIS */
#why-inntris {
    border-top: 1px solid var(--border-color);
}

.why-inntris__content {
    max-width: 650px;
}

.why-inntris__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.why-inntris__content em {
    color: var(--primary-color);
    font-style: italic;
}

/* DESIGN PARTNERS */
#partners {
    border-top: 1px solid var(--border-color);
}

.partners__wrapper {
    max-width: 800px;
}

.partners__intro {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.partners__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.partners__col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.partners__col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.partners__col ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}

.partners__col ul li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* TECHNICAL SPECS */
#specs {
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.03) 0%, transparent 50%);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.spec {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.spec__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.spec__value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* FOUNDER */
#founder {
    border-top: 1px solid var(--border-color);
}

.founder__content {
    max-width: 650px;
}

.founder__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* FOOTER */
footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer__content {
    display: grid;
    gap: 3rem;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    margin-bottom: 3rem;
}

.footer__logo .logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer__tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.footer__menu-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer__menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__menu-list li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer__menu-list li a:hover {
    color: var(--text-primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__bottom-icons {
    display: flex;
    gap: 1rem;
}

.footer__bottom-icons a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.footer__bottom-icons a:hover {
    color: var(--text-primary);
}

/* MEDIA QUERIES */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    /* HEADER */
    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--bg-dark);
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .header__menu.show {
        transform: translateX(0);
    }

    .header__menu li {
        margin: 1rem 0;
    }

    .header__menu li a {
        font-size: 1.1rem;
        color: var(--text-primary);
    }

    .menu-btn {
        display: block;
        z-index: 999;
    }

    header .right .btn-primary {
        display: none;
    }

    /* HERO */
    #hero {
        padding-top: 7rem !important;
        min-height: auto;
    }

    .hero__content h1 {
        font-size: 2.25rem;
    }

    .hero__content .text {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* FEATURES */
    .features {
        grid-template-columns: 1fr;
    }

    /* STEPS */
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step {
        flex-direction: row;
        align-items: flex-start;
    }

    /* RESPONSE GRID */
    .response-grid {
        grid-template-columns: 1fr;
    }

    /* PILLARS */
    .pillars {
        grid-template-columns: 1fr;
    }

    /* PARTNERS */
    .partners__grid {
        grid-template-columns: 1fr;
    }

    /* SPECS */
    .specs-grid {
        grid-template-columns: 1fr;
    }

    /* FOOTER */
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .features {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
