/* ============================================================
   OFC Network Manager — product site
   Dark technical theme · 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: #070b10;
    --bg-2: #090f15;
    --panel: #0d151e;
    --panel-2: #111b26;
    --panel-3: #16222f;
    --line: rgba(148, 177, 204, 0.14);
    --line-strong: rgba(148, 177, 204, 0.28);
    --text: #eef4fa;
    --muted: #94a6b8;
    --muted-2: #6f8296;
    --blue: #5b8cff;
    --green: #47c97a;
    --orange: #f3a33a;
    --copper: #c58a5a;
    /* 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 24px 80px rgba(0, 0, 0, 0.45);
    --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(91, 140, 255, 0.12), transparent 62%),
        radial-gradient(800px 600px at 8% 6%, rgba(71, 201, 122, 0.06), transparent 60%),
        radial-gradient(760px 520px at 48% 104%, rgba(243, 163, 58, 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::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.028;
    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(91, 140, 255, 0.28);
    color: #fff;
}

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(--cyan);
    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(--cyan);
    color: #041014;
    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;
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.open {
    background: rgba(6, 10, 15, 0.82);
    border-bottom-color: var(--line);
    -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 6px 18px rgba(46, 98, 217, 0.30));
}

.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(255, 255, 255, 0.045);
}

.nav-desktop a.active {
    color: var(--cyan);
    background: rgba(91, 140, 255, 0.07);
}

.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: rgba(255, 255, 255, 0.03);
    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: #070b10;
    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: #031014;
    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, #5b8cff 0%, #63d99a 100%);
    color: #031014;
    box-shadow: 0 12px 32px rgba(91, 140, 255, 0.16);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(91, 140, 255, 0.26);
}

.btn-ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(91, 140, 255, 0.55);
    color: var(--cyan);
    background: rgba(91, 140, 255, 0.05);
    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(--cyan);
    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(148, 177, 204, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 177, 204, 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(91, 140, 255, 0.14), transparent 64%);
    pointer-events: none;
}

.hero-strands {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.55;
    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(--cyan);
}

.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(--cyan) 8%, var(--green) 54%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    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: rgba(255, 255, 255, 0.025);
    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(--cyan);
    border-color: rgba(91, 140, 255, 0.45);
    background: rgba(91, 140, 255, 0.05);
}

.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(91, 140, 255, 0.20), transparent 60%),
        radial-gradient(circle at 78% 70%, rgba(71, 201, 122, 0.13), transparent 58%);
    filter: blur(30px);
    z-index: -1;
}

.app-window {
    position: relative;
    border: 1px solid rgba(148, 177, 204, 0.23);
    border-radius: 16px;
    background: #0a121b;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.3) 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(148, 177, 204, 0.13);
    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: var(--green);
    border: 1px solid rgba(71, 201, 122, 0.3);
    border-radius: 40px;
    padding: 3px 7px;
    flex: none;
}

.app-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

.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 rgba(148, 177, 204, 0.24);
    border-radius: 13px;
    background: rgba(10, 17, 24, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    -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(--cyan);
}

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

.float-splice {
    left: -26px;
    top: 52px;
    animation-delay: -3.5s;
}

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

@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: rgba(9, 15, 21, 0.6);
}

.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(--cyan);
    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(91, 140, 255, 0.05), 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(--cyan);
}

/* ---------- 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, rgba(255, 255, 255, 0.035), transparent 52%),
        var(--panel);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.bento-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.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 rgba(91, 140, 255, 0.22);
    border-radius: 12px;
    background: rgba(91, 140, 255, 0.07);
    color: var(--cyan);
}

.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: rgba(71, 201, 122, 0.22);
    background: rgba(71, 201, 122, 0.07);
    color: var(--green);
}

.bento-card.accent-amber .icon-box {
    border-color: rgba(243, 163, 58, 0.22);
    background: rgba(243, 163, 58, 0.07);
    color: var(--amber);
}

.bento-card.accent-pink .icon-box {
    border-color: rgba(197, 138, 90, 0.22);
    background: rgba(197, 138, 90, 0.07);
    color: var(--pink);
}

/* ---------- 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(--cyan);
}

.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 var(--line-strong);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    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(91, 140, 255, 0.18), 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 var(--line-strong);
    border-radius: 14px;
    background: #0b1219;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.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(148, 177, 204, 0.24);
    border-radius: 7px;
    background: rgba(8, 13, 19, 0.8);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.media-caption.green { color: var(--green); }
.media-caption.amber { color: var(--amber); }

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

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 50%), var(--panel);
    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(--cyan), var(--green) 60%, var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    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: var(--panel);
    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: 1px rgba(148, 177, 204, 0.38);
}

.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 rgba(148, 177, 204, 0.28);
    border-radius: 26px;
    background: #131d28;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
    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: var(--panel);
}

.price-card.featured {
    border-color: rgba(91, 140, 255, 0.42);
    background:
        radial-gradient(500px 260px at 50% 0%, rgba(91, 140, 255, 0.11), transparent 70%),
        var(--panel);
    box-shadow: 0 30px 80px rgba(91, 140, 255, 0.08);
}

.price-flag {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 4px 10px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: #031014;
    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(--cyan);
}

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

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

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

.download-panel {
    position: relative;
    padding: 64px 48px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(700px 360px at 50% -10%, rgba(91, 140, 255, 0.13), transparent 70%),
        radial-gradient(500px 300px at 85% 110%, rgba(71, 201, 122, 0.08), transparent 70%),
        var(--panel);
    text-align: center;
    overflow: hidden;
}

.download-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(148, 177, 204, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 177, 204, 0.035) 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: rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.store-card:hover {
    border-color: rgba(91, 140, 255, 0.45);
    background: rgba(91, 140, 255, 0.055);
    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: #060a0e;
    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(--cyan);
}

.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(--cyan);
}

/* ---------- 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(91, 140, 255, 0.10), transparent 65%),
        linear-gradient(rgba(148, 177, 204, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 177, 204, 0.035) 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(--cyan);
}

.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(91, 140, 255, 0.10), transparent 70%),
        var(--panel);
    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 rgba(71, 201, 122, 0.28);
    border-radius: 100px;
    background: rgba(71, 201, 122, 0.07);
    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: rgba(243, 163, 58, 0.28);
    background: rgba(243, 163, 58, 0.07);
    color: var(--amber);
}

.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: var(--panel);
    transition: transform 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.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(--cyan);
}

/* ---------- 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(--cyan);
}

.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: var(--panel);
}

.principle .icon-box {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border: 1px solid rgba(91, 140, 255, 0.2);
    border-radius: 11px;
    background: rgba(91, 140, 255, 0.06);
    color: var(--cyan);
}

.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: var(--panel);
}

.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(--cyan);
    border-bottom: 1px solid rgba(91, 140, 255, 0.35);
    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(--cyan);
}

/* ---------- 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(--cyan);
    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: var(--panel);
}

.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: rgba(255, 255, 255, 0.025);
}

.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(91, 140, 255, 0.09), transparent 70%),
        var(--panel);
}

.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 {
    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(--cyan), var(--green) 55%, var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    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-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;
    }

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