:root {
    --paper: #f7f8f5;
    --white: #ffffff;
    --sage: #eef2ed;
    --ink: #17322e;
    --ink-soft: #50615c;
    --muted: #74827c;
    --line: #d7dfd9;
    --accent: #b28a4c;
    --accent-light: #e9dcc1;
    --shadow: rgba(23, 50, 46, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 90% 4%, rgba(233, 220, 193, 0.55), transparent 28rem),
        linear-gradient(180deg, var(--white) 0%, var(--paper) 58%, var(--sage) 100%);
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(23, 50, 46, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 50, 46, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    content: '';
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(215, 223, 217, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(23, 50, 46, 0.05);
    backdrop-filter: blur(16px);
}

.nav-shell,
.section-shell,
.footer-inner,
.footer-bottom {
    width: min(1180px, calc(100% - 5rem));
    margin: 0 auto;
}

.nav-shell {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--accent-light);
    border-radius: 50%;
    color: var(--ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.brand > span:last-child {
    display: grid;
    line-height: 1;
}

.brand strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.brand small {
    margin-top: 0.28rem;
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0.75rem;
    color: var(--ink-soft);
    font-size: 0.83rem;
}

.nav-links a::after {
    position: absolute;
    right: 0.75rem;
    bottom: 0.2rem;
    left: 0.75rem;
    height: 1px;
    background: var(--accent);
    content: '';
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links .nav-login {
    margin-left: 0.4rem;
    border-left: 1px solid var(--line);
    color: var(--ink);
}

.nav-links .nav-cta {
    margin-left: 0.5rem;
    border: 1px solid var(--ink);
    border-radius: 2px;
    color: var(--white);
    background: var(--ink);
}

.nav-links .nav-cta::after {
    display: none;
}

.nav-links .nav-cta:hover {
    background: #244b44;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.5rem 0.75rem;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
}

.hero {
    padding: 6rem 0 5rem;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 58%, rgba(255, 255, 255, 0.5) 100%),
        url('../PicturesVideos/FrontPage/officelogo1.jpg') right center / min(43vw, 650px) auto no-repeat;
}

.hero-shell {
    display: grid;
    width: min(1180px, calc(100% - 5rem));
    min-height: 600px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
}

.hero-copy {
    animation: rise-in 0.8s ease-out both;
}

.eyebrow,
.section-index {
    display: inline-block;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 1rem 0 1.45rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.8rem, 7vw, 7rem);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.02em;
}

.hero-lead {
    max-width: 620px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 0.82rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    color: var(--white);
    background: var(--ink);
    box-shadow: 0 10px 24px var(--shadow);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #244b44;
    box-shadow: 0 14px 28px var(--shadow);
    transform: translateY(-2px);
}

.text-link {
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 500;
}

.text-link span,
.model-card a span,
.button span {
    display: inline-block;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.text-link:hover span,
.model-card a:hover span,
.button:hover span {
    transform: translate(3px, -3px);
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-top: 4rem;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-note span:nth-child(odd) {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.hero-visual {
    min-height: 460px;
    padding: 1.3rem;
    border: 1px solid rgba(23, 50, 46, 0.16);
    background: rgba(238, 242, 237, 0.68);
    box-shadow: 0 24px 54px var(--shadow);
    transform: rotate(1.5deg);
}

.visual-topline,
.visual-caption {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.visual-topline {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.document-stack {
    position: relative;
    height: 340px;
    margin: 1.6rem 0;
}

.document-card {
    position: absolute;
    display: grid;
    width: min(82%, 320px);
    min-height: 190px;
    padding: 1.15rem;
    border: 1px solid rgba(23, 50, 46, 0.15);
    background: var(--white);
    box-shadow: 0 18px 35px rgba(23, 50, 46, 0.11);
}

.document-card span:not(.sheet-dot) {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.document-card strong {
    align-self: center;
    color: var(--ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
}

.document-card small {
    align-self: end;
    color: var(--muted);
    font-size: 0.72rem;
}

.document-back {
    top: 2rem;
    left: 6%;
    transform: rotate(-8deg);
}

.document-middle {
    top: 4.8rem;
    right: 3%;
    transform: rotate(5deg);
}

.document-front {
    bottom: 0;
    left: 11%;
    min-height: 180px;
    transform: rotate(-2deg);
}

.sheet-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #6a9b78;
}

.mini-bars {
    display: flex;
    gap: 0.35rem;
    align-items: end;
    height: 35px;
}

.mini-bars i {
    display: block;
    width: 13px;
    background: var(--accent-light);
}

.mini-bars i:nth-child(1) { height: 45%; }
.mini-bars i:nth-child(2) { height: 72%; }
.mini-bars i:nth-child(3) { height: 58%; }
.mini-bars i:nth-child(4) { height: 90%; }
.mini-bars i:nth-child(5) { height: 78%; }

.visual-caption {
    align-items: center;
    gap: 0.7rem;
}

.caption-line {
    flex: 1;
    height: 1px;
    background: var(--accent);
}

.workflow-section,
.models-section,
.research-section {
    padding: 8rem 0;
}

.workflow-section {
    background: var(--white);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 3.5rem;
}

.section-heading h2,
.research-copy h2,
.cta-inner h2 {
    margin: 0.75rem 0 1rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 5.1rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.01em;
}

.section-heading > p:last-child,
.split-heading > p,
.research-copy > p,
.cta-inner > p {
    max-width: 580px;
    color: var(--ink-soft);
    font-size: 1rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.workflow-step {
    min-height: 250px;
    padding-top: 1.2rem;
    border-top: 1px solid var(--ink);
}

.step-number,
.model-number {
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.workflow-step h3 {
    margin: 2.5rem 0 0.7rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.workflow-step p,
.model-card p {
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.models-section {
    background: var(--sage);
}

.split-heading {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 5rem;
    align-items: end;
    max-width: 100%;
}

.split-heading > p {
    padding-bottom: 0.35rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.model-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--white);
}

.model-card.model-featured {
    background: var(--ink);
}

.model-card.model-featured h3,
.model-card.model-featured p,
.model-card.model-featured a {
    color: var(--white);
}

.model-card h3 {
    margin: 3.5rem 0 1rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 0.95;
}

.model-card a {
    margin-top: auto;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 500;
}

.research-section {
    background: var(--white);
}

.research-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 9vw, 9rem);
    align-items: center;
}

.research-copy .text-link {
    display: inline-block;
    margin-top: 2rem;
}

.research-panel {
    padding: 1.4rem;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 22px 48px var(--shadow);
}

.panel-label {
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.review-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.review-status {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: #6a9b78;
    font-size: 0.7rem;
}

.review-pending .review-status {
    color: var(--ink);
    background: var(--accent-light);
}

.review-row strong,
.review-row small {
    display: block;
}

.review-row strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.review-row small {
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.review-row em {
    color: #4f8b61;
    font-size: 0.7rem;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-pending em {
    color: var(--accent);
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cta-section {
    padding: 7rem 0;
    background: var(--ink);
}

.cta-inner {
    text-align: center;
}

.cta-inner .eyebrow {
    color: var(--accent-light);
}

.cta-inner h2 {
    max-width: 750px;
    margin-right: auto;
    margin-left: auto;
    color: var(--white);
}

.cta-inner > p:not(.eyebrow) {
    margin: 0 auto 2rem;
    color: #c1d0ca;
}

.cta-inner .button-primary {
    color: var(--ink);
    background: var(--white);
}

.cta-inner .button-primary:hover {
    background: var(--accent-light);
}

.site-footer {
    padding: 3rem 0 1.3rem;
    color: #c1d0ca;
    background: var(--ink);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand {
    color: var(--white);
}

.footer-brand .brand-mark {
    border-color: rgba(233, 220, 193, 0.4);
    color: var(--white);
}

.footer-inner p {
    margin-top: 1rem;
    color: #91a59d;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: end;
}

.footer-links a {
    color: #b7c7c0;
    font-size: 0.82rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(215, 223, 217, 0.18);
    color: #91a59d;
    font-size: 0.75rem;
    text-align: center;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .hero-shell,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.8)),
            url('../PicturesVideos/FrontPage/officelogo1.jpg') center / cover no-repeat;
    }

    .hero-shell {
        gap: 4rem;
    }

    .hero-visual {
        width: min(100%, 560px);
        margin: 0 auto;
    }

    .workflow-grid,
    .model-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-heading {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 700px) {
    .nav-shell,
    .section-shell,
    .footer-inner,
    .footer-bottom,
    .hero-shell {
        width: min(100% - 2rem, 1180px);
    }

    .nav-shell {
        min-height: 68px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-basis: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 0.7rem 0;
        border-top: 1px solid var(--line);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a,
    .nav-links .nav-login,
    .nav-links .nav-cta {
        margin: 0;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        padding: 0.75rem 0;
    }

    .nav-links a::after {
        right: 0;
        bottom: 0;
        left: 0;
    }

    .hero {
        padding: 4.5rem 0 4rem;
    }

    .hero-shell {
        min-height: 0;
    }

    .hero h1 {
        font-size: clamp(3.4rem, 15vw, 5.2rem);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.1rem;
    }

    .hero-note {
        margin-top: 3rem;
    }

    .workflow-section,
    .models-section,
    .research-section {
        padding: 5.5rem 0;
    }

    .workflow-grid,
    .model-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        min-height: 0;
        padding-bottom: 1.8rem;
    }

    .model-card {
        min-height: 280px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}