:root {
    color-scheme: light;
    --humnio-bg: #fcfdfb;
    --humnio-surface: #ffffff;
    --humnio-surface-alt: #f3faec;
    --humnio-text: #101510;
    --humnio-muted: #536153;
    --humnio-accent: #38b000;
    --humnio-accent-strong: #008000;
    --humnio-accent-soft: #e8ffd4;
    --humnio-border: rgba(16, 21, 16, 0.08);
    --humnio-footer-bg: #061206;
    --humnio-footer-text: #e4fadb;
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --humnio-bg: #111111;
    --humnio-surface: #1c1c1c;
    --humnio-surface-alt: #252525;
    --humnio-text: #f5f5f5;
    --humnio-muted: #b2b2b2;
    --humnio-accent: #70e000;
    --humnio-accent-strong: #38b000;
    --humnio-accent-soft: rgba(112, 224, 0, 0.18);
    --humnio-border: rgba(255, 255, 255, 0.1);
    --humnio-footer-bg: #0b0b0b;
    --humnio-footer-text: #f0f0f0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--humnio-bg);
    color: var(--humnio-text);
    line-height: 1.6;
    transition: background 0.25s ease, color 0.25s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

a {
    color: var(--humnio-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    background: var(--humnio-surface);
    border-bottom: 1px solid var(--humnio-border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem 2.5rem;
    padding: 0.85rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    display: block;
}

.primary-nav {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.primary-nav a {
    color: var(--humnio-muted);
    padding-bottom: 0.15rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a.active {
    color: var(--humnio-accent);
    border-bottom-color: var(--humnio-accent);
}

.nav-actions {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
}

.language-switch {
    display: inline-flex;
    border: 1px solid var(--humnio-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--humnio-surface-alt);
}

.lang-option {
    border: none;
    background: transparent;
    color: var(--humnio-muted);
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.lang-option.active {
    background: var(--humnio-accent);
    color: #0f1f0f;
}

.lang-option:focus-visible {
    outline: 2px solid var(--humnio-accent);
    outline-offset: 2px;
}

.theme-toggle {
    border: 1px solid var(--humnio-border);
    background: var(--humnio-surface-alt);
    color: var(--humnio-muted);
    width: 52px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.35rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle .toggle-icon {
    font-size: 0.9rem;
    opacity: 0.45;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--humnio-accent);
    outline-offset: 2px;
}

.theme-toggle[data-mode="light"] .sun,
.theme-toggle[data-mode="dark"] .moon {
    opacity: 1;
    color: var(--humnio-accent-strong);
}

.site-main {
    padding: 3rem 0 4rem;
    flex: 1;
}

.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: var(--humnio-muted);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--humnio-muted);
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    background-image: linear-gradient(120deg, #70e000 0%, #38b000 55%, #008000 100%);
    background-size: 200% 100%;
    color: #fff;
    font-weight: 600;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
    box-shadow: 0 15px 30px rgba(0, 128, 0, 0.25);
}

.primary-cta:hover {
    text-decoration: none;
    transform: translateY(-1px);
    background-position: 100% 0;
    box-shadow: 0 18px 34px rgba(0, 128, 0, 0.32);
}

.primary-cta:focus-visible {
    outline: 2px solid rgba(112, 224, 0, 0.65);
    outline-offset: 3px;
}

.section {
    background: var(--humnio-surface);
    border-radius: 1.25rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--humnio-border);
    box-shadow: 0 20px 45px rgba(10, 20, 15, 0.05);
}

:root[data-theme='dark'] .section {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

.section p {
    margin: 0;
    color: var(--humnio-muted);
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
}

.dimension-card {
    border: 1px solid var(--humnio-border);
    border-radius: 1rem;
    padding: 1.5rem;
    background: var(--humnio-surface-alt);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

:root[data-theme='dark'] .dimension-card,
:root[data-theme='dark'] .product-section article {
    background: var(--humnio-surface);
}

.dimension-card h3 {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.dimension-card:hover,
.dimension-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--humnio-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.vision-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(112, 224, 0, 0.08), rgba(56, 176, 0, 0.1));
    border: 1px solid rgba(56, 176, 0, 0.2);
}

:root[data-theme='dark'] .vision-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.45));
    border-color: rgba(255, 255, 255, 0.14);
}

.vision-card p {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    color: var(--humnio-text);
}

.vision-card .primary-cta {
    margin-top: 1rem;
}

.product-section {
    display: grid;
    gap: 1.8rem;
}

.product-section article {
    border: 1px solid var(--humnio-border);
    border-radius: 1rem;
    padding: 1.8rem;
    background: var(--humnio-surface-alt);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-section h3 {
    margin-top: 0;
}

.product-section article:hover,
.product-section article:focus-within {
    transform: translateY(-4px);
    border-color: var(--humnio-accent);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.ai-note {
    border-left: 4px solid var(--humnio-accent);
    padding: 1rem 1.25rem;
    background: var(--humnio-accent-soft);
    color: var(--humnio-text);
}

:root[data-theme='dark'] .ai-note {
    color: var(--humnio-text);
}

.story {
    font-size: 1.05rem;
    color: var(--humnio-muted);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-links.compact a {
    font-weight: 600;
}

.founder-highlight {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--humnio-surface) 0%, var(--humnio-surface-alt) 100%);
}

.founder-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(56, 176, 0, 0.12), transparent 40%),
        radial-gradient(circle at 90% 0%, rgba(56, 176, 0, 0.12), transparent 35%);
    pointer-events: none;
}

:root[data-theme='dark'] .founder-highlight {
    background: linear-gradient(135deg, #161616 0%, #1f1f1f 100%);
}

.founder-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 260px) 1fr;
    gap: 1.5rem;
    align-items: center;
    z-index: 1;
}

.founder-photo .photo-placeholder {
    border: 1px dashed var(--humnio-border);
    border-radius: 50%;
    width: clamp(200px, 24vw, 260px);
    height: clamp(200px, 24vw, 260px);
    padding: 1.2rem;
    display: grid;
    place-items: center;
    text-align: center;
    background: radial-gradient(circle at 25% 20%, rgba(56, 176, 0, 0.16), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(56, 176, 0, 0.12), transparent 50%),
        var(--humnio-surface);
    color: var(--humnio-muted);
}

:root[data-theme='dark'] .founder-photo .photo-placeholder {
    background: radial-gradient(circle at 25% 20%, rgba(112, 224, 0, 0.16), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(112, 224, 0, 0.1), transparent 50%),
        #111111;
}

.placeholder-tag {
    display: inline-block;
    background: var(--humnio-surface-alt);
    color: var(--humnio-text);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--humnio-border);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.placeholder-note {
    max-width: 18ch;
    color: var(--humnio-muted);
    font-weight: 600;
}

.founder-details .eyebrow {
    margin-bottom: 0.2rem;
    text-align: left;
}

.founder-name {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
}

.founder-role {
    margin: 0 0 0.75rem;
    color: var(--humnio-accent-strong);
    font-weight: 700;
}

.founder-quote {
    margin: 0 0 1rem;
    color: var(--humnio-muted);
    max-width: 540px;
}

.founder-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.email-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--humnio-border);
    background: var(--humnio-surface);
    color: var(--humnio-text);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.founder-email a {
    font-weight: 700;
}

.site-footer {
    background: var(--humnio-footer-bg);
    color: var(--humnio-footer-text);
    padding: 2.25rem 0;
    --footer-badge-height: 48px;
    flex-shrink: 0;
}

.site-footer a {
    color: var(--humnio-footer-text);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-left {
    flex: 1 1 240px;
    align-items: flex-start;
}

.footer-right {
    flex: 1 1 280px;
    align-items: flex-end;
    gap: 0.85rem;
}

.footer-logo-full {
    width: 180px;
    max-width: 100%;
}

.footer-copy {
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: inherit;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social:hover {
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.05rem;
    line-height: 1;
}

.footer-badge-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
    width: 100%;
}

.footer-badge {
    display: block;
    max-height: var(--footer-badge-height);
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-signature {
    max-width: 560px;
}

@media (max-width: 900px) {
    .primary-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .nav-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1rem;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .language-switch {
        order: 1;
    }

    .theme-toggle {
        order: 2;
    }

    .section {
        padding: 1.75rem;
    }

    .founder-wrapper {
        grid-template-columns: 1fr;
    }

    .founder-photo .photo-placeholder {
        width: clamp(180px, 55vw, 240px);
        height: clamp(180px, 55vw, 240px);
    }

    .hero {
        padding: 3rem 0 1rem;
    }

    .container {
        padding: 0 1.1rem;
    }

    .site-footer {
        --footer-badge-height: 48px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer-badge-row {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
