/* ============================================================
   OFC Network Manager — product site
   Light technical theme · paper, ink & fibre-spectrum accents
   ============================================================ */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/space-grotesk-var.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f6f8fc;
    --bg-2: #eef3f9;
    --panel: #ffffff;
    --panel-2: #f9fbfe;
    --panel-3: #eef3fa;
    --line: #dfe6f0;
    --line-strong: #c9d5e4;
    --text: #0f1b2d;
    --muted: #52647a;
    --muted-2: #596a80;
    --blue: #2e62d9;
    --blue-strong: #1d4bb0;
    --green: #167a44;
    --green-bright: #2e9e5b;
    --orange: #b45309;
    --orange-bright: #e8821e;
    --copper: #7a5230;
    --blue-soft: #edf3ff;
    --green-soft: #eaf7ef;
    --orange-soft: #fff4e6;
    --copper-soft: #f7efe9;
    /* Legacy aliases: the original classes still read these names. */
    --cyan: var(--blue);
    --amber: var(--orange);
    --pink: var(--copper);
    --primary: var(--blue);
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    --shadow: 0 26px 70px rgba(15, 27, 45, 0.11);
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(1000px 700px at 82% -12%, rgba(46, 98, 217, 0.10), transparent 62%),
        radial-gradient(800px 600px at 8% 6%, rgba(46, 158, 91, 0.06), transparent 60%),
        radial-gradient(760px 520px at 48% 104%, rgba(232, 130, 30, 0.045), transparent 64%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 10001;
    pointer-events: none;
    background: linear-gradient(90deg, var(--blue) 0 25%, var(--orange-bright) 25% 50%, var(--green-bright) 50% 75%, var(--copper) 75% 100%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.014;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
    background: rgba(46, 98, 217, 0.18);
    color: var(--text);
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

ul,
ol {
    padding-left: 1.2em;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--text);
    color: #fff;
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.container-narrow {
    width: min(100% - 48px, 840px);
    margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 76px;
    background: rgba(246, 248, 252, 0.74);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.open {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(15, 27, 45, 0.06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    flex: none;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(15, 27, 45, 0.26)) drop-shadow(0 5px 12px rgba(15, 27, 45, 0.13));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-text span {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-top: 4px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-desktop a {
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-desktop a:hover {
    color: var(--text);
    background: rgba(15, 27, 45, 0.05);
}

.nav-desktop a.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.25s ease;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.site-header.open .menu-toggle span { background: transparent; }
.site-header.open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 16px 24px 24px;
}

.mobile-menu.open {
    display: block;
    min-height: calc(100vh - 75px);
    min-height: calc(100dvh - 75px);
    overflow-y: auto;
}

.mobile-menu a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.98rem;
    color: var(--muted);
}

.mobile-menu a:last-of-type {
    border-bottom: 0;
}

.mobile-menu .btn {
    width: 100%;
    justify-content: center;
    margin-top: 14px;
}

.mobile-menu .btn-primary {
    color: #fff;
    border-bottom: 0;
    padding: 13px 21px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 21px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.15;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn svg {
    width: 17px;
    height: 17px;
    flex: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(46, 98, 217, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(46, 98, 217, 0.29);
}

.btn-ghost {
    border-color: var(--line-strong);
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04);
}

.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-soft);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.82rem;
    border-radius: 9px;
}

.btn-lg {
    padding: 16px 26px;
    font-size: 1rem;
    border-radius: 13px;
}

.btn-block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.text-link svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.text-link:hover svg {
    transform: translateX(3px);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 164px 0 94px;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(15, 27, 45, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 27, 45, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

.hero::after {
    content: '';
    position: absolute;
    width: 760px;
    height: 760px;
    right: -160px;
    top: -260px;
    z-index: -1;
    background: radial-gradient(circle, rgba(46, 98, 217, 0.11), transparent 64%);
    pointer-events: none;
}

.hero-strands {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.38;
    pointer-events: none;
}

.hero-strands path {
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-dasharray: 8 12;
    animation: strand-flow 26s linear infinite;
}

.hero-strands path:nth-child(2) { animation-duration: 32s; opacity: 0.7; }
.hero-strands path:nth-child(3) { animation-duration: 38s; opacity: 0.5; }
.hero-strands path:nth-child(4) { animation-duration: 44s; opacity: 0.4; }

@keyframes strand-flow {
    to { stroke-dashoffset: -400; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 58px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.hero h1 {
    margin-top: 22px;
    font-size: clamp(2.9rem, 5.4vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.grad {
    background: linear-gradient(100deg, var(--blue) 8%, var(--green) 54%, var(--orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    margin-top: 26px;
    max-width: 570px;
    font-size: 1.07rem;
    line-height: 1.72;
    color: var(--muted);
}

.hero-sub strong {
    color: var(--text);
    font-weight: 500;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    font-size: 0.78rem;
    color: var(--muted-2);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-meta svg {
    width: 14px;
    height: 14px;
    color: var(--green);
    flex: none;
}

.platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.platform-pills a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: #fff;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.platform-pills a:hover {
    color: var(--blue);
    border-color: #a9c0ef;
    background: var(--blue-soft);
}

.platform-pills svg {
    width: 15px;
    height: 15px;
    flex: none;
}

/* Hero visual */

.hero-visual {
    position: relative;
    min-width: 0;
    perspective: 1400px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 8% -8% -12%;
    background:
        radial-gradient(circle at 55% 45%, rgba(46, 98, 217, 0.16), transparent 60%),
        radial-gradient(circle at 78% 70%, rgba(46, 158, 91, 0.10), transparent 58%);
    filter: blur(30px);
    z-index: -1;
}

.hero-main-image {
    position: relative;
    margin: 0;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(15, 27, 45, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-main-image img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-visual:hover .hero-main-image {
    transform: translateY(-4px);
    box-shadow: 0 38px 82px rgba(15, 27, 45, 0.17), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.app-window {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: #0a121b;
    box-shadow: 0 32px 80px rgba(15, 27, 45, 0.22), 0 0 0 1px rgba(15, 27, 45, 0.08) inset;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual:hover .app-window {
    transform: rotateY(-1deg) rotateX(0.5deg);
}

.app-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: #0d1722;
}

.app-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2c3a48;
}

.app-bar .dot:nth-child(1) { background: #ff6b5e; }
.app-bar .dot:nth-child(2) { background: #ffc14d; }
.app-bar .dot:nth-child(3) { background: #47c97a; }

.app-title {
    margin-left: 8px;
    font-family: var(--mono);
    font-size: 0.62rem;
    color: #7f94a8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
    color: #6ee7a0;
    border: 1px solid rgba(110, 231, 160, 0.30);
    border-radius: 40px;
    padding: 3px 7px;
    flex: none;
}

.app-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6ee7a0;
}

.app-screen {
    background: #f8fafc;
    line-height: 0;
}

.app-screen img {
    width: 100%;
    display: block;
}

.float-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 13px 15px;
    min-width: 176px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(15, 27, 45, 0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: float 7s ease-in-out infinite;
}

.float-card .fc-label {
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
}

.float-card .fc-main {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
}

.float-card .fc-sub {
    font-size: 0.62rem;
    color: var(--muted-2);
}

.float-trace {
    right: -18px;
    bottom: 40px;
    border-top: 2px solid var(--blue);
}

.float-splice {
    left: -26px;
    top: 52px;
    border-top: 2px solid var(--orange);
    animation-delay: -3.5s;
}

.float-splice .fc-label { color: var(--orange); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- Platform strip ---------- */

.platform-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.platform-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.platform-strip-label {
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.platform-strip-list {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.platform-strip-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}

.platform-strip-list svg {
    width: 17px;
    height: 17px;
    color: var(--muted-2);
}

.platform-strip-note {
    font-size: 0.72rem;
    color: var(--muted-2);
}

.platform-strip-note strong {
    color: var(--blue);
    font-weight: 600;
}

/* ---------- Sections ---------- */

.section {
    position: relative;
    padding: 108px 0;
}

.section-sm {
    padding: 72px 0;
}

.section-alt {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(700px 400px at 80% 0%, rgba(46, 98, 217, 0.055), transparent 60%),
        var(--bg-2);
}

.section-head {
    max-width: 780px;
    margin-bottom: 54px;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head.center .eyebrow {
    justify-content: center;
}

.section-head.center .eyebrow::after {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.section-head h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 3.7vw, 3.2rem);
    letter-spacing: -0.045em;
}

.section-head p {
    margin-top: 18px;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

.section-head.center p {
    margin-inline: auto;
}

.section-head h2 em {
    font-style: normal;
    color: var(--blue);
}

/* ---------- Cards / bento ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.bento-card {
    grid-column: span 4;
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #ffffff, #fbfcff 62%);
    box-shadow: 0 1px 2px rgba(15, 27, 45, 0.035), 0 14px 34px rgba(15, 27, 45, 0.035);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
    transform: translateY(-3px);
    border-color: #b9cdf5;
    box-shadow: 0 18px 44px rgba(15, 27, 45, 0.08);
}

.bento-card.wide {
    grid-column: span 6;
}

.bento-card.full {
    grid-column: span 12;
}

.bento-card .icon-box {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border: 1px solid #cad9fb;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
}

.bento-card .icon-box svg {
    width: 21px;
    height: 21px;
}

.bento-card h3 {
    font-size: 1.14rem;
    letter-spacing: -0.02em;
}

.bento-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.bento-card .card-index {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--muted-2);
}

.bento-card.accent-green .icon-box {
    border-color: #bfe3cc;
    background: var(--green-soft);
    color: var(--green);
}

.bento-card.accent-amber .icon-box {
    border-color: #f0d1a8;
    background: var(--orange-soft);
    color: var(--orange);
}

.bento-card.accent-pink .icon-box {
    border-color: #e2cec0;
    background: var(--copper-soft);
    color: var(--copper);
}

/* ---------- Showcase ---------- */

.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.showcase:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.showcase:last-of-type {
    padding-bottom: 0;
}

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

.showcase-copy h3 {
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    letter-spacing: -0.04em;
}

.showcase-copy h3 span {
    color: var(--blue);
}

.showcase-copy > p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.72;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: flex;
    gap: 11px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.check-list li strong {
    color: var(--text);
    font-weight: 500;
}

.check-list svg {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex: none;
    color: var(--green);
}

.showcase.reverse .showcase-copy {
    order: 2;
}

.showcase.reverse .showcase-media {
    order: 1;
}

.showcase-media {
    position: relative;
    min-width: 0;
}

.shot-frame {
    position: relative;
    padding: 8px;
    border: 1px solid #0f1b2d;
    border-radius: 18px;
    background: #0f1b2d;
    box-shadow: var(--shadow);
}

.shot-frame::before {
    content: '';
    position: absolute;
    inset: 18% 8% -8%;
    z-index: -1;
    background: radial-gradient(circle at 55% 50%, rgba(46, 98, 217, 0.14), transparent 65%);
    filter: blur(34px);
}

.shot-frame img {
    display: block;
    width: 100%;
    border-radius: 11px;
}

.media-stack {
    position: relative;
    padding-bottom: 52px;
    padding-left: 48px;
}

.media-stack .shot-inset {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46%;
    padding: 6px;
    border: 1px solid #0f1b2d;
    border-radius: 14px;
    background: #0f1b2d;
    box-shadow: 0 24px 60px rgba(15, 27, 45, 0.16);
}

.media-stack .shot-inset img {
    display: block;
    width: 100%;
    border-radius: 9px;
}

.media-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: rgba(10, 17, 28, 0.88);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dbe5f0;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.media-caption.green { color: #6ee7a0; }
.media-caption.amber { color: #f8c06a; }

/* ---------- Stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 27, 45, 0.04);
    overflow: hidden;
}

.stat {
    padding: 34px 28px;
    border-right: 1px solid var(--line);
    min-width: 0;
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(100deg, var(--blue), var(--green) 60%, var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.stat span {
    display: block;
    margin-top: 10px;
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted-2);
}

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    border-color: #d5e0ee;
    box-shadow: 0 12px 30px rgba(15, 27, 45, 0.045);
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 44px;
    right: -16px;
    width: 32px;
    height: 1px;
    background: var(--line-strong);
}

.step-card:last-child::after {
    display: none;
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1.1px rgba(46, 98, 217, 0.52);
}

.step-card h3 {
    margin-top: 26px;
    font-size: 1.16rem;
}

.step-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ---------- Mobile band ---------- */

.mobile-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.mobile-copy h2 {
    font-size: clamp(1.9rem, 3.3vw, 2.9rem);
    letter-spacing: -0.045em;
}

.mobile-copy > p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.72;
}

.phones {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    perspective: 1000px;
}

.phone {
    width: 31%;
    max-width: 200px;
    padding: 5px;
    border: 1px solid #0f1b2d;
    border-radius: 26px;
    background: #131d28;
    box-shadow: 0 22px 50px rgba(15, 27, 45, 0.16);
    overflow: hidden;
}

.phone:nth-child(1) { transform: rotate(-3deg) translateY(16px); }
.phone:nth-child(2) { transform: translateY(-6px); z-index: 2; }
.phone:nth-child(3) { transform: rotate(3deg) translateY(16px); }

.phone img {
    display: block;
    width: 100%;
    border-radius: 21px;
}

/* ---------- Pricing ---------- */

.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 940px;
    margin: 0 auto;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 27, 45, 0.04);
}

.price-card.featured {
    border-color: #a9c0ef;
    background:
        radial-gradient(500px 260px at 50% 0%, rgba(46, 98, 217, 0.08), transparent 70%),
        #fff;
    box-shadow: 0 22px 56px rgba(46, 98, 217, 0.10);
}

.price-flag {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--blue);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.2rem;
}

.price-line {
    margin-top: 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-line strong {
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
}

.price-line span {
    color: var(--muted-2);
    font-size: 0.8rem;
}

.price-desc {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
    display: grid;
    gap: 11px;
}

.price-list li {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.45;
}

.price-list svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 2px;
    color: var(--green);
}

.price-card .btn {
    margin-top: auto;
}

.price-note {
    max-width: 760px;
    margin: 24px auto 0;
    text-align: center;
    color: var(--muted-2);
    font-size: 0.78rem;
    line-height: 1.6;
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 840px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--muted-2);
    transition: transform 0.25s ease, color 0.25s ease;
}

.faq details[open] summary svg {
    transform: rotate(45deg);
    color: var(--blue);
}

.faq-a {
    padding: 0 48px 24px 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.72;
}

.faq-a a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Download ---------- */

.download-panel {
    position: relative;
    padding: 64px 48px;
    border: 1px solid #c9d9f7;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(700px 360px at 50% -10%, rgba(46, 98, 217, 0.10), transparent 70%),
        radial-gradient(500px 300px at 85% 110%, rgba(46, 158, 91, 0.06), transparent 70%),
        #fff;
    box-shadow: 0 24px 60px rgba(15, 27, 45, 0.07);
    text-align: center;
    overflow: hidden;
}

.download-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(15, 27, 45, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 27, 45, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
    pointer-events: none;
}

.download-panel > * {
    position: relative;
}

.download-panel h2 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    letter-spacing: -0.05em;
}

.download-panel p {
    max-width: 620px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 880px;
    margin: 34px auto 0;
}

.store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 18px 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 27, 45, 0.035);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.store-card:hover {
    border-color: #a9c0ef;
    background: var(--blue-soft);
    transform: translateY(-2px);
}

.store-card svg {
    width: 25px;
    height: 25px;
    margin-bottom: 7px;
    color: var(--text);
}

.store-label {
    font-size: 0.57rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.store-name {
    font-family: var(--font-display);
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.download-note {
    margin-top: 22px;
    font-size: 0.72rem;
    color: var(--muted-2);
}

.download-note a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: #eaf0f7;
    padding: 64px 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 44px;
}

.footer-brand .brand {
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 300px;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.65;
}

.footer-brand .footer-location {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--muted-2);
}

.footer-col h4 {
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.footer-col a {
    display: block;
    width: fit-content;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.84rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--blue);
}

.footer-col a .ext {
    display: inline-block;
    margin-left: 3px;
    color: var(--muted-2);
    font-size: 0.7rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 0.73rem;
}

.footer-bottom a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom a:hover {
    color: var(--blue);
}

/* ---------- Page hero / inner pages ---------- */

.page-hero {
    position: relative;
    padding: 154px 0 52px;
    overflow: hidden;
    isolation: isolate;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(800px 460px at 80% 0%, rgba(46, 98, 217, 0.08), transparent 65%),
        linear-gradient(rgba(15, 27, 45, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 27, 45, 0.04) 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
    mask-image: linear-gradient(180deg, #000, transparent 92%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.page-hero h1 {
    max-width: 920px;
    margin-top: 20px;
    font-size: clamp(2.5rem, 4.6vw, 4.1rem);
    letter-spacing: -0.05em;
}

.page-hero .lead {
    max-width: 700px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.72;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    font-size: 0.72rem;
    color: var(--muted-2);
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--blue);
}

.breadcrumbs span {
    opacity: 0.5;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ---------- Projects ---------- */

.project-feature {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(500px 300px at 15% 0%, rgba(46, 98, 217, 0.07), transparent 70%),
        #fff;
    box-shadow: 0 18px 50px rgba(15, 27, 45, 0.06);
    overflow: hidden;
    margin-bottom: 18px;
}

.project-feature-copy {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-feature-media {
    min-height: 300px;
    border-left: 1px solid var(--line);
    background: #f8fafc;
    overflow: hidden;
}

.project-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 9px;
    border: 1px solid #bfe3cc;
    border-radius: 100px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.project-status.preview {
    border-color: #f0d1a8;
    background: var(--orange-soft);
    color: var(--orange);
}

.project-feature h2 {
    margin-top: 18px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.045em;
}

.project-feature p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 560px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.project-tags span {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--muted-2);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 27, 45, 0.035);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 44px rgba(15, 27, 45, 0.08);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--project, var(--cyan));
    opacity: 0.8;
}

.project-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.project-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, var(--project, var(--cyan)) 30%, transparent);
    border-radius: 13px;
    background: color-mix(in srgb, var(--project, var(--cyan)) 12%, transparent);
    color: var(--project, var(--cyan));
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.project-card h3 {
    margin-top: 22px;
    font-size: 1.24rem;
    letter-spacing: -0.03em;
}

.project-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.89rem;
    line-height: 1.65;
}

.project-card .project-links {
    margin-top: auto;
    padding-top: 22px;
}

.project-card .text-link {
    font-size: 0.82rem;
}

.project-card .text-link.muted {
    color: var(--muted);
}

.project-card .text-link.muted:hover {
    color: var(--blue);
}

/* ---------- PostTender project profile ---------- */

.posttender-profile {
    padding-top: 24px;
    scroll-margin-top: 96px;
}

.posttender-profile .container {
    border-top: 1px solid var(--line);
    padding-top: 56px;
}

.posttender-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 40px;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--line-strong);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(620px 320px at 0% 0%, rgba(46, 98, 217, 0.08), transparent 70%),
        #fff;
    box-shadow: 0 24px 60px rgba(15, 27, 45, 0.07);
}

.posttender-summary h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 3.4vw, 3rem);
    letter-spacing: -0.045em;
}

.posttender-summary h2 em {
    font-style: normal;
    color: var(--blue);
}

.posttender-lead {
    margin-top: 18px;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.75;
}

.posttender-summary > p + p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

.posttender-facts {
    align-self: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
}

.posttender-facts h3 {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.posttender-facts dl {
    display: grid;
    gap: 14px;
    margin: 20px 0 0;
}

.posttender-facts dl div {
    display: grid;
    gap: 3px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

.posttender-facts dl div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.posttender-facts dt {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.posttender-facts dd {
    margin: 0;
    color: var(--text);
    font-size: 0.85rem;
    line-height: 1.5;
}

.posttender-facts a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.posttender-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.posttender-detail-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 27, 45, 0.035);
}

.posttender-detail-card h3 {
    margin-top: 14px;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.posttender-detail-card > p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.posttender-detail-card .check-list {
    margin-top: 18px;
}

.posttender-steps {
    display: grid;
    gap: 16px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: pt-step;
}

.posttender-steps li {
    position: relative;
    padding-left: 38px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    counter-increment: pt-step;
}

.posttender-steps li::before {
    content: counter(pt-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--blue-soft);
    color: var(--blue);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
}

.posttender-steps strong {
    color: var(--text);
    font-weight: 500;
}

.posttender-note {
    margin-top: 18px !important;
    color: var(--muted-2) !important;
    font-size: 0.78rem !important;
}

.posttender-best {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
    align-items: start;
    margin-top: 16px;
    padding: 32px;
    border: 1px solid #c9d9f7;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f7faff, #eef4ff);
}

.posttender-best h3 {
    margin-top: 14px;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    letter-spacing: -0.035em;
}

.posttender-best p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.posttender-best p + p {
    margin-top: 12px;
}

.posttender-faq {
    margin-top: 64px;
}

.posttender-faq .section-head {
    margin-bottom: 24px;
}

.posttender-faq .section-head h3 {
    margin-top: 16px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
}

.posttender-faq + .cta-inner {
    margin-top: 32px;
}

@media (max-width: 960px) {
    .posttender-panel {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .posttender-detail-grid,
    .posttender-best {
        grid-template-columns: 1fr;
    }

    .posttender-best {
        gap: 20px;
    }
}

@media (max-width: 720px) {
    .posttender-profile {
        padding-top: 8px;
    }

    .posttender-profile .container {
        padding-top: 40px;
    }

    .posttender-panel {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .posttender-detail-card,
    .posttender-best {
        padding: 24px;
    }

    .posttender-faq {
        margin-top: 48px;
    }
}

/* ---------- About ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: start;
}

.about-copy h2 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    letter-spacing: -0.045em;
}

.about-copy p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.78;
}

.about-copy p strong {
    color: var(--text);
    font-weight: 500;
}

.about-copy .btn {
    margin-top: 26px;
}

.fact-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    overflow: hidden;
}

.fact-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--line);
}

.fact-row:last-child {
    border-bottom: 0;
}

.fact-row dt {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    flex: none;
}

.fact-row dd {
    margin: 0;
    text-align: right;
    font-size: 0.84rem;
    color: var(--text);
    line-height: 1.5;
}

.fact-row dd a {
    color: var(--blue);
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.principle {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 27, 45, 0.035);
}

.principle .icon-box {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border: 1px solid #cad9fb;
    border-radius: 11px;
    background: var(--blue-soft);
    color: var(--blue);
}

.principle .icon-box svg {
    width: 19px;
    height: 19px;
}

.principle h3 {
    font-size: 1.05rem;
}

.principle p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.62;
}

/* ---------- Support ---------- */

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.support-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 27, 45, 0.035);
}

.support-card h2 {
    font-size: 1.45rem;
    letter-spacing: -0.035em;
}

.support-card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.68;
}

.support-card .btn {
    margin-top: 22px;
}

.support-card .support-email {
    display: inline-block;
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 0.92rem;
    color: var(--blue);
    border-bottom: 1px solid #a9c0ef;
    padding-bottom: 3px;
}

.support-checklist {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.support-checklist li {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.55;
}

.support-checklist svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 2px;
    color: var(--blue);
}

/* ---------- Prose (legal) ---------- */

.prose {
    max-width: 820px;
    padding-bottom: 40px;
}

.prose h2 {
    margin: 42px 0 14px;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.prose h2:first-of-type {
    margin-top: 0;
}

.prose h3 {
    margin: 28px 0 10px;
    font-size: 1.08rem;
}

.prose p,
.prose li {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.78;
}

.prose p {
    margin-bottom: 14px;
}

.prose ul {
    margin: 0 0 18px;
    padding-left: 20px;
}

.prose li {
    margin-bottom: 7px;
}

.prose a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose strong {
    color: var(--text);
    font-weight: 500;
}

.prose-meta {
    display: inline-block;
    margin-bottom: 34px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: var(--muted-2);
}

/* ---------- Comparison table ---------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 27, 45, 0.035);
}

.compare {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.compare th,
.compare td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 0.86rem;
    vertical-align: top;
}

.compare tr:last-child td {
    border-bottom: 0;
}

.compare th {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    background: #f1f5fb;
}

.compare td {
    color: var(--muted);
}

.compare td:first-child {
    color: var(--text);
    font-weight: 500;
    width: 30%;
}

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

.compare .no {
    color: var(--muted-2);
}

/* ---------- CTA band ---------- */

.cta-band {
    padding: 26px 0 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 38px 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 240px at 10% 0%, rgba(46, 98, 217, 0.06), transparent 70%),
        #fff;
    box-shadow: 0 18px 44px rgba(15, 27, 45, 0.05);
}

.cta-inner h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    letter-spacing: -0.04em;
}

.cta-inner p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.cta-inner .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: none;
}

/* ---------- 404 ---------- */

.error-page {
    min-height: 72vh;
    display: grid;
    place-items: center;
    padding: 140px 0 80px;
    text-align: center;
}

.error-code {
    width: fit-content;
    margin-inline: auto;
    font-family: var(--font-display);
    font-size: clamp(5rem, 14vw, 11rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.08em;
    background: linear-gradient(100deg, var(--blue), var(--green) 55%, var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.error-page h1 {
    margin-top: 22px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.error-page p {
    max-width: 480px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ---------- Small utilities ---------- */

.bento + .stats {
    margin-top: 16px;
}

.stats + .section-foot {
    margin-top: 22px;
}

.section-foot {
    max-width: 780px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

.section-foot.center {
    margin-inline: auto;
    text-align: center;
}

.showcase[id],
.support-card[id] {
    scroll-margin-top: 96px;
}

/* ---------- Reveal ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

.js .reveal.delay-1 { transition-delay: 0.08s; }
.js .reveal.delay-2 { transition-delay: 0.16s; }
.js .reveal.delay-3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .hero-grid {
        gap: 40px;
    }

    .float-trace {
        right: 4px;
    }

    .float-splice {
        left: 0;
    }

    .showcase {
        gap: 44px;
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 960px) {
    .nav-desktop,
    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .hero-sub {
        max-width: 640px;
    }

    .hero-visual {
        max-width: 720px;
        margin-inline: auto;
        width: 100%;
    }

    .float-trace {
        right: -4px;
        bottom: 24px;
    }

    .float-splice {
        left: -8px;
        top: 32px;
    }

    .showcase,
    .mobile-band,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .showcase.reverse .showcase-copy,
    .showcase.reverse .showcase-media {
        order: initial;
    }

    .showcase-media {
        max-width: 720px;
    }

    .showcase.reverse .showcase-media {
        order: 0;
    }

    .mobile-band .phones {
        order: 2;
    }

    .project-feature {
        grid-template-columns: 1fr;
    }

    .project-feature-media {
        min-height: 260px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .bento-card {
        grid-column: span 6;
    }

    .bento-card.wide {
        grid-column: span 12;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step-card::after {
        display: none;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(1),
    .stat:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .container,
    .container-narrow {
        width: min(100% - 36px, var(--container));
    }

    .hero-strands {
        display: none;
    }

    .hero {
        padding: 128px 0 72px;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 10.5vw, 3.5rem);
    }

    .hero-sub {
        font-size: 0.98rem;
    }

    .hero-main-image {
        border-radius: 16px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .float-card {
        min-width: 148px;
        padding: 10px 12px;
    }

    .float-card .fc-main {
        font-size: 1.05rem;
    }

    .float-splice {
        top: 14px;
    }

    .float-trace {
        bottom: 12px;
    }

    .platform-strip-inner {
        justify-content: center;
        text-align: center;
    }

    .platform-strip-list {
        gap: 14px 24px;
        justify-content: center;
    }

    .section {
        padding: 76px 0;
    }

    .section-head {
        margin-bottom: 38px;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-card.wide,
    .bento-card.full {
        grid-column: span 1;
    }

    .showcase {
        padding: 52px 0;
        gap: 30px;
    }

    .media-stack {
        padding-left: 26px;
        padding-bottom: 40px;
    }

    .media-stack .shot-inset {
        width: 52%;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 24px 18px;
    }

    .phones {
        gap: 8px;
    }

    .phone {
        border-radius: 20px;
        padding: 4px;
    }

    .phone img {
        border-radius: 16px;
    }

    .price-grid,
    .support-grid,
    .projects-grid,
    .principles {
        grid-template-columns: 1fr;
    }

    .download-panel {
        padding: 46px 22px;
    }

    .store-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-inner {
        padding: 28px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    .page-hero {
        padding: 128px 0 36px;
    }

    .project-feature-copy {
        padding: 28px;
    }

    .project-card {
        padding: 24px;
    }
}

@media (max-width: 460px) {
    .brand-text span {
        display: none;
    }

    .hero-meta {
        gap: 8px 14px;
        font-size: 0.72rem;
    }

    .platform-pills {
        gap: 7px;
    }

    .platform-pills a {
        padding: 7px 10px;
        font-size: 0.72rem;
    }

    .float-card {
        display: none;
    }

    .phones {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 4px 16px;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .phone {
        scroll-snap-align: center;
    }

    .phones::-webkit-scrollbar {
        display: none;
    }

    .phone {
        flex: 0 0 46%;
        max-width: none;
    }

    .store-grid {
        gap: 8px;
    }

    .store-card {
        padding: 14px 8px;
    }

    .fact-row {
        flex-direction: column;
        gap: 5px;
    }

    .fact-row dd {
        text-align: left;
    }
}

@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;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
