:root {
    --bg: #eef1f5;
    --bg-soft: #f7f9fc;
    --ink: #101318;
    --muted: #667085;
    --panel: #ffffff;
    --dark: #1f2329;
    --dark-2: #15181d;
    --line: #d9dee7;
    --blue: #84cc16;
    --blue-2: #65a30d;
    --cyan: #10b8d8;
    --green: #18a957;
    --red: #d33b3b;
    --amber: #f5b832;
    --shadow: 0 24px 60px rgba(16, 19, 24, 0.14);
    --shadow-soft: 0 14px 36px rgba(16, 19, 24, 0.1);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px max(20px, calc((100vw - 1180px) / 2));
    background: rgba(31, 35, 41, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    transition: min-height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
    min-height: 64px;
    background: rgba(21, 24, 29, 0.98);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

header:not(.site-header) {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px max(20px, calc((100vw - 1180px) / 2));
    background: rgba(31, 35, 41, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img,
.logo-container img {
    width: 148px;
    height: auto;
    display: block;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

header:not(.site-header) nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

header:not(.site-header) nav a {
    display: inline-flex;
    color: #d8dee9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: var(--radius);
}

header:not(.site-header) nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: #d8dee9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.main-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.hero-section {
    position: relative;
    min-height: calc(100vh - 76px);
    padding: 74px 0 56px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 117, 253, 0.12), transparent 42%),
        radial-gradient(circle at 82% 20%, rgba(16, 184, 216, 0.18), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef1f5 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(31, 35, 41, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 35, 41, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 18px 0 18px;
    color: var(--ink);
    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 900;
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 28px;
    color: #344054;
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.5;
}

.hero-actions,
.release-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary,
.btn-accent {
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 14px 28px rgba(0, 117, 253, 0.26);
}

.btn-primary:hover,
.btn-accent:hover {
    background: var(--blue-2);
}

.btn-secondary,
.btn-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--line);
}

.btn-secondary:hover,
.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-disabled,
.btn[aria-disabled="true"] {
    color: #8a94a6;
    background: #dfe4ec;
    border-color: #c9d1dd;
    box-shadow: none;
    pointer-events: none;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.hero-metrics div {
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(16, 19, 24, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-soft);
}

.hero-metrics strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
}

.hero-metrics span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.hero-product {
    position: relative;
}

.product-shell {
    position: relative;
    padding: 16px;
    border: 1px solid rgba(16, 19, 24, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #e9eef6);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-7deg) rotateX(3deg);
    animation: productFloat 6s ease-in-out infinite;
}

.product-toolbar {
    display: flex;
    gap: 7px;
    padding: 0 0 13px;
}

.product-toolbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c7ced9;
}

.product-toolbar span:nth-child(1) {
    background: var(--red);
}

.product-toolbar span:nth-child(2) {
    background: var(--amber);
}

.product-toolbar span:nth-child(3) {
    background: var(--green);
}

.product-shell img {
    display: block;
    width: 100%;
    min-height: 280px;
    object-fit: contain;
    border-radius: calc(var(--radius) - 2px);
    background: #f3f6fb;
}

.status-ribbon {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--green);
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 12px 26px rgba(24, 169, 87, 0.26);
}

.status-ribbon.is-disabled {
    background: var(--red);
    box-shadow: 0 12px 26px rgba(211, 59, 59, 0.2);
}

.trust-band {
    padding: 18px 0;
    background: var(--dark);
    color: #ffffff;
}

.trust-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
}

.trust-grid span {
    color: #aab3c2;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.trust-grid strong {
    font-size: clamp(18px, 2vw, 24px);
    color: #ffffff;
}

.trust-grid a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.section {
    padding: 92px 0;
}

.section-light {
    background: var(--bg);
}

.section-dark {
    background:
        linear-gradient(135deg, rgba(0, 117, 253, 0.14), transparent 40%),
        var(--dark);
    color: #ffffff;
}

.section-soft {
    background:
        linear-gradient(135deg, rgba(0, 117, 253, 0.08), transparent 38%),
        linear-gradient(180deg, #f8fafc, #edf2f8);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 12px 0 14px;
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: 0;
    font-weight: 900;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.section-dark .section-heading p {
    color: #c7ced9;
}

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

.feature-card {
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(16, 19, 24, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 117, 253, 0.36);
    box-shadow: var(--shadow-soft);
}

.feature-card > i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--blue);
    font-size: 18px;
}

.feature-card h3 {
    margin: 18px 0 8px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.2;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: 46px;
    align-items: center;
}

.workspace-panel {
    overflow: hidden;
    border: 1px solid rgba(16, 19, 24, 0.12);
    border-radius: var(--radius);
    background: var(--dark);
    box-shadow: var(--shadow);
}

.panel-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    color: #d8dee9;
    background: #15181d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #475467;
}

.panel-topbar span:nth-child(1) {
    background: var(--red);
}

.panel-topbar span:nth-child(2) {
    background: var(--amber);
}

.panel-topbar span:nth-child(3) {
    background: var(--green);
}

.panel-topbar strong {
    margin-left: 8px;
    font-size: 13px;
}

.workspace-shot {
    display: block;
    width: 100%;
    min-height: 380px;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
    background: #eef1f5;
}

.capability-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.capability-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: #344054;
    font-weight: 900;
    font-size: 13px;
}

.capability-list i {
    color: var(--green);
}

.operation-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
    gap: 56px;
    align-items: start;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    position: relative;
    padding: 22px 22px 22px 86px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.timeline-item span {
    position: absolute;
    left: 22px;
    top: 22px;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--blue);
    font-weight: 900;
}

.timeline-item h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.timeline-item p {
    margin: 0;
    color: #c7ced9;
}

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

.ops-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 19, 24, 0.08);
}

.ops-card i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--blue);
}

.ops-card h3 {
    margin: 18px 0 8px;
    font-size: 21px;
}

.ops-card p {
    margin: 0;
    color: var(--muted);
}

.downloads-section {
    background:
        linear-gradient(180deg, #eef1f5, #f8fafc 46%, #eef1f5);
}

.latest-release {
    min-height: 220px;
    margin-bottom: 18px;
}

.release-highlight {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(0, 117, 253, 0.22);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.release-icon {
    display: flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: #edf5ff;
}

.release-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.release-title {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.release-title h3 {
    margin: 0;
    font-size: 27px;
    line-height: 1.2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-badge.status-hab {
    color: #08743b;
    background: rgba(24, 169, 87, 0.12);
}

.status-badge.status-des {
    color: #a72d2d;
    background: rgba(211, 59, 59, 0.12);
}

.release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.release-meta code,
.hash-chip {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #344054;
    background: #f4f7fb;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.release-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 18px;
}

.release-toolbar div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.release-toolbar strong {
    font-size: 30px;
}

.release-toolbar span {
    color: var(--muted);
    font-weight: 800;
}

.release-list,
.history-list {
    display: grid;
    gap: 14px;
}

.release-row,
.history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 19, 24, 0.07);
}

.release-row h3,
.history-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.release-row p,
.history-card p {
    margin: 8px 0 12px;
    color: var(--muted);
}

.release-empty {
    padding: 28px;
    border: 1px dashed #b9c2cf;
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.65);
    font-weight: 800;
    text-align: center;
}

.page-hero {
    padding: 74px 0 52px;
    background:
        linear-gradient(135deg, rgba(0, 117, 253, 0.16), transparent 45%),
        var(--dark);
    color: #ffffff;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 34px;
    align-items: center;
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p {
    max-width: 760px;
    color: #c7ced9;
    font-size: 18px;
}

.page-hero-art {
    display: flex;
    justify-content: center;
}

.page-hero-art img {
    width: 150px;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.history-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 19, 24, 0.06);
}

.search-field i {
    color: var(--blue);
}

.search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-weight: 700;
}

.segmented {
    display: flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 19, 24, 0.06);
}

.segmented button {
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.segmented button.is-active {
    color: #ffffff;
    background: var(--blue);
}

.site-footer {
    padding: 54px 0;
    color: #d8dee9;
    background: var(--dark-2);
    border-top: 5px solid var(--blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) auto minmax(260px, 0.8fr);
    gap: 34px;
    align-items: start;
}

.footer-brand img {
    width: 150px;
    display: block;
    margin-bottom: 14px;
}

.footer-logo img {
    width: 132px;
    height: auto;
    display: block;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-content {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 28px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.credits {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    color: #aab3c2;
    text-align: center;
    font-size: 14px;
}

.credits a {
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.footer-brand p {
    max-width: 380px;
    margin: 0;
    color: #aab3c2;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: #d8dee9;
    text-decoration: none;
    font-weight: 800;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-credit {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.footer-credit span {
    display: block;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-credit strong {
    display: block;
    margin: 8px 0 4px;
    color: #ffffff;
    font-size: 20px;
}

.footer-credit a {
    color: #d8dee9;
    font-weight: 800;
    text-decoration: none;
}

.footer-credit a:hover {
    color: #ffffff;
}

.section-title {
    margin: 0 0 28px;
    padding-left: 16px;
    border-left: 6px solid var(--blue);
    color: var(--ink);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.section-dark .section-title {
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.search-container,
.contact-form,
.faq-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 19, 24, 0.08);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.search-container input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: #344054;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #f8fafc;
    outline: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    background: #ffffff;
}

.faq-box {
    overflow: hidden;
    margin-bottom: 14px;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    color: #ffffff;
    background: var(--dark);
    font-weight: 900;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 18px;
    color: var(--muted);
    background: #ffffff;
}

.faq-box.open .faq-answer {
    display: block;
    animation: fadeInSlide 220ms ease both;
}

.legal-content {
    max-width: 960px;
}

.legal-content h2 {
    margin-top: 34px;
    color: var(--ink);
}

.legal-content p,
.legal-content li {
    color: #475467;
}

.reveal,
.fade-in,
.scale-in,
.staggered-text {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.scale-in {
    transform: scale(0.97);
}

.reveal.is-visible,
.fade-in.visible,
.scale-in.visible,
.staggered-text.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-delay-1 {
    transition-delay: 120ms;
}

.reveal-delay-2 {
    transition-delay: 220ms;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 2000;
    padding: 11px 14px;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--dark);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    font-weight: 900;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes productFloat {
    0%,
    100% {
        transform: perspective(1000px) rotateY(-7deg) rotateX(3deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .operation-grid,
    .workspace-grid,
    .footer-grid,
    .page-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-product {
        max-width: 560px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .history-controls {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        min-height: 68px;
        padding: 12px 14px;
    }

    .brand img,
    .logo-container img {
        width: 128px;
    }

    header:not(.site-header) {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
    }

    header:not(.site-header) nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        background: var(--dark-2);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
    }

    .hero-section {
        padding: 48px 0 34px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .product-shell {
        transform: none;
        animation: none;
    }

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

    .capability-list {
        grid-template-columns: 1fr;
    }

    .release-highlight,
    .release-row,
    .history-card {
        grid-template-columns: 1fr;
    }

    .release-toolbar,
    .hero-actions,
    .release-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .segmented {
        overflow-x: auto;
    }

    .section {
        padding: 64px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal SmartScreen */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 19, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
    padding: 20px;
}
.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.modal-dialog {
    background: var(--panel);
    width: 100%;
    max-width: 540px;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 300ms ease;
    overflow: hidden;
}
.modal-overlay.is-open .modal-dialog {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--dark);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-header h3 i {
    color: var(--cyan);
}
.modal-close {
    background: transparent;
    border: none;
    color: #aab3c2;
    font-size: 20px;
    cursor: pointer;
    transition: color 150ms ease;
}
.modal-close:hover {
    color: #fff;
}
.modal-body {
    padding: 24px;
    color: #344054;
    font-size: 15px;
    line-height: 1.5;
}
.modal-body p {
    margin: 0 0 16px 0;
}
.modal-body strong {
    color: var(--ink);
}
.modal-body ol {
    margin: 0 0 16px 0;
    padding-left: 20px;
    color: var(--ink);
    font-weight: 600;
}
.modal-body ol li {
    margin-bottom: 8px;
}
.modal-footer {
    padding: 16px 24px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}
