:root {
    --ink: #07111f;
    --ink-soft: #203044;
    --blue: #0759f2;
    --blue-bright: #2f7bff;
    --blue-pale: #eaf1ff;
    --paper: #f7f9fc;
    --white: #ffffff;
    --line: #dce4ef;
    --muted: #627083;
    --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    padding: .75rem 1rem;
    background: var(--white);
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    width: min(calc(100% - 3rem), var(--max));
    height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand img { width: 190px; }

nav { display: flex; align-items: center; gap: 2rem; }

nav a {
    color: var(--ink-soft);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

nav a:hover, nav a:focus-visible { color: var(--blue); }

.hero {
    width: min(calc(100% - 3rem), var(--max));
    min-height: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 5rem;
    padding: 5rem 0 6rem;
}

.hero-copy { min-width: 0; }

.eyebrow, .section-label {
    margin: 0 0 1.25rem;
    color: var(--blue);
    font: 700 .78rem/1 "Segoe UI", Inter, Arial, sans-serif;
    letter-spacing: .17em;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin-top: 0;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    letter-spacing: -.045em;
}

h1 {
    max-width: 750px;
    margin-bottom: 1.75rem;
    font-size: clamp(3.2rem, 6.4vw, 6.15rem);
    line-height: .98;
    font-weight: 700;
}

h1 span { color: var(--blue); }

.hero-intro {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.12rem, 1.7vw, 1.35rem);
    line-height: 1.6;
}

.hero-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    padding: .8rem 1.45rem;
    border-radius: 8px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(7, 89, 242, .2);
    transition: transform .2s ease, background .2s ease;
}

.button:hover, .button:focus-visible { background: #004bd4; transform: translateY(-2px); }

.text-link {
    color: var(--ink-soft);
    font-weight: 700;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.hero-mark {
    position: relative;
    min-height: 500px;
    isolation: isolate;
}

.hero-mark::before {
    content: "";
    position: absolute;
    inset: 4% 3% 13% 12%;
    z-index: -2;
    border-radius: 42% 58% 52% 48%;
    background: linear-gradient(145deg, #0759f2, #00399d);
    box-shadow: 0 45px 90px rgba(7, 33, 77, .2);
    transform: rotate(-5deg);
}

.hero-mark::after {
    content: "";
    position: absolute;
    inset: 13% 10% 20% 19%;
    z-index: -1;
    opacity: .25;
    background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
    background-size: 40px 40px;
}

.experience-card {
    position: absolute;
    top: 13%;
    right: 4%;
    width: 220px;
    padding: 1.8rem;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 18px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 24px 50px rgba(0, 24, 69, .2);
    backdrop-filter: blur(8px);
}

.experience-card strong {
    display: block;
    color: var(--blue);
    font: 800 5rem/.9 "Segoe UI", Inter, Arial, sans-serif;
    letter-spacing: -.08em;
}

.experience-card strong span { font-size: 2.2rem; vertical-align: top; }
.experience-card p { margin: 1rem 0 0; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }

.logic-card {
    position: absolute;
    left: 0;
    bottom: 7%;
    width: 82%;
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    border-radius: 14px;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 24px 50px rgba(0, 13, 34, .28);
    font-weight: 600;
}

.logic-card i { width: 28px; height: 1px; background: var(--blue-bright); }

.orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
}

.orbit-one { top: 7%; left: 5%; width: 90px; height: 90px; }
.orbit-two { right: 7%; bottom: 9%; width: 58px; height: 58px; }

.statement, .work {
    width: min(calc(100% - 3rem), var(--max));
    margin: 0 auto;
    padding: 7rem 0;
}

.statement { border-top: 1px solid var(--line); }

.statement-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 7rem;
    align-items: start;
}

.statement h2, .section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2.5rem, 4.8vw, 4.4rem);
    line-height: 1.06;
}

.statement-copy { max-width: 630px; color: var(--muted); font-size: 1.08rem; }
.statement-copy .lead { margin-top: 0; color: var(--ink); font-size: 1.45rem; line-height: 1.5; }

.work { border-top: 1px solid var(--line); }

.section-heading {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 3.5rem;
}

.section-heading > p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.work-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    grid-template-rows: repeat(2, minmax(260px, auto));
    gap: 1rem;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: -1rem 0 1.5rem;
}

.category {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .55rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
}

.category.active {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.product-grid {
    grid-template-rows: minmax(540px, auto);
}

.product-grid .featured { grid-row: auto; }

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.feature-card.featured {
    grid-row: 1 / 3;
    min-height: 550px;
    background: var(--blue-pale);
    border-color: #cbdcff;
}

.card-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status { color: var(--blue); }
.feature-content { position: relative; z-index: 1; max-width: 510px; }
.feature-type { color: var(--blue); font-weight: 700; }
.product-category {
    display: inline-flex;
    margin: 0 0 1rem;
    padding: .35rem .7rem;
    border-radius: 6px;
    background: rgba(7, 89, 242, .1);
    color: var(--blue) !important;
    font-size: .78rem !important;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.feature-card h3 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; }
.feature-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }

.product-link {
    display: inline-block;
    margin-top: 1.6rem;
    color: var(--blue);
    font-weight: 700;
}

.product-link.pending { opacity: .72; }

.catalogue-card {
    min-height: 540px;
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.catalogue-card .card-topline,
.catalogue-card p:last-child { color: #aebbc9; }

.catalogue-path {
    display: grid;
    gap: .8rem;
    margin-top: 2rem;
}

.catalogue-path span {
    width: fit-content;
    padding: .5rem .8rem;
    border: 1px solid #34445a;
    border-radius: 6px;
    color: #dce7f5;
    font-size: .88rem;
    font-weight: 700;
}

.catalogue-path i {
    width: 1px;
    height: 22px;
    margin-left: 1.25rem;
    background: var(--blue-bright);
}

.dark-card { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dark-card .card-topline, .dark-card p:last-child { color: #aebbc9; }

.puzzle-motif {
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    opacity: .85;
    transform: rotate(-8deg);
}

.puzzle-motif span { aspect-ratio: 1; border: 2px solid rgba(7, 89, 242, .25); background: rgba(255,255,255,.48); }
.puzzle-motif span:nth-child(1), .puzzle-motif span:nth-child(4) { border-radius: 50% 8% 50% 8%; }
.puzzle-motif span:nth-child(2), .puzzle-motif span:nth-child(3) { border-radius: 8% 50% 8% 50%; }

.approach {
    padding: 7rem max(1.5rem, calc((100% - var(--max)) / 2));
    background: var(--ink);
    color: var(--white);
}

.section-heading.light .section-label { color: #70a1ff; }
.section-heading.light > p { color: #aebbc9; }

.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #2a394c;
}

.principles article { padding: 2.5rem 2.5rem 1rem 0; }
.principles article + article { padding-left: 2.5rem; border-left: 1px solid #2a394c; }
.principles span { color: #70a1ff; font-size: .85rem; font-weight: 700; letter-spacing: .1em; }
.principles h3 { margin: 2.5rem 0 .8rem; font-size: 1.55rem; }
.principles p { color: #aebbc9; }

footer {
    width: min(calc(100% - 3rem), var(--max));
    margin: 0 auto;
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 2rem;
}

footer img { width: 160px; }
footer p { margin: 0; color: var(--muted); }
.copyright { font-size: .9rem; }

@media (max-width: 900px) {
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 3rem; padding: 4rem 0; }
    .hero-mark { min-height: 440px; width: min(100%, 560px); margin: 0 auto; }
    .statement-grid, .section-heading { grid-template-columns: 1fr; gap: 2rem; }
    .work-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .feature-card.featured { grid-row: auto; min-height: 480px; }
    .principles { grid-template-columns: 1fr; }
    .principles article { padding: 2.2rem 0; }
    .principles article + article { padding-left: 0; border-left: 0; border-top: 1px solid #2a394c; }
    .principles h3 { margin-top: 1.25rem; }
    footer { grid-template-columns: 1fr 1fr; }
    footer img { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .site-header { width: min(calc(100% - 2rem), var(--max)); height: 78px; }
    .brand img { width: 148px; }
    nav { gap: 1rem; }
    nav a { font-size: .88rem; }
    nav a:first-child,
    nav a:last-child { display: none; }
    .hero, .statement, .work { width: min(calc(100% - 2rem), var(--max)); }
    .hero { padding-top: 3rem; }
    h1 { font-size: clamp(2.8rem, 13vw, 3.4rem); line-height: 1; }
    .hero-links { align-items: flex-start; flex-direction: column; }
    .hero-mark { min-height: 370px; }
    .experience-card { width: 185px; padding: 1.4rem; }
    .experience-card strong { font-size: 4rem; }
    .logic-card { width: 95%; padding: 1.1rem; font-size: .86rem; }
    .logic-card i { width: 14px; }
    .statement, .work { padding: 5rem 0; }
    .statement h2, .section-heading h2 { font-size: 2.75rem; }
    .feature-card { padding: 1.5rem; }
    .feature-card.featured { min-height: 440px; }
    .catalogue-card { min-height: 400px; }
    .approach { padding-top: 5rem; padding-bottom: 5rem; }
    footer { grid-template-columns: 1fr; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
