/* Hematite App Forge - primary stylesheet */
:root {
    --color-bg: #f5f7fb;
    --color-bg-soft: #ffffff;
    --color-bg-highlight: #eef2ff;
    --color-surface: #ffffff;
    --color-surface-alt: #eef2ff;
    --color-text: #1c2241;
    --color-muted: #5a657f;
    --color-accent: #4f46e5;
    --color-accent-alt: #06b6d4;
    --color-link: #2563eb;
    --color-outline: rgba(79, 70, 229, 0.28);
    --space-unit: 1.1rem;
    --font-stack: "Poppins", "Inter", "Segoe UI", Arial, sans-serif;
    --transition-snappy: 220ms ease-in-out;
    --shadow-lg: 0 36px 70px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 18px 38px rgba(15, 23, 42, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    background: linear-gradient(180deg, #f9fbff 0%, #eef3ff 100%);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-snappy);
}

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

main {
    display: block;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

header.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.18);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--space-unit) * 0.8) 0;
    gap: 1.4rem;
}

.logo {
    font-weight: 700;
    font-size: 1.24rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.4);
    color: var(--color-accent);
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition-snappy), border-color var(--transition-snappy), color var(--transition-snappy);
    align-items: center;
    gap: 0.6rem;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(79, 70, 229, 0.18);
    border-color: var(--color-accent);
    color: #ffffff;
}

.nav-toggle .nav-toggle-label {
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
}

.nav-toggle .nav-toggle-icon {
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform var(--transition-snappy), background var(--transition-snappy);
}

.nav-toggle .nav-toggle-icon::before,
.nav-toggle .nav-toggle-icon::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    left: 0;
    background: currentColor;
    transition: transform var(--transition-snappy), opacity var(--transition-snappy);
}

.nav-toggle .nav-toggle-icon::before {
    top: -6px;
}

.nav-toggle .nav-toggle-icon::after {
    top: 6px;
}

.nav-toggle.is-active .nav-toggle-icon {
    background: transparent;
}

.nav-toggle.is-active .nav-toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle.is-active {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

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

.main-nav ul {
    list-style: none;
    display: flex;
    gap: calc(var(--space-unit) * 1.2);
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    color: var(--color-muted);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--color-accent);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    color: #f9fafc;
    font-weight: 600;
    transition: transform var(--transition-snappy), box-shadow var(--transition-snappy);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.22);
}

.hero {
    padding: calc(var(--space-unit) * 4.2) 0 calc(var(--space-unit) * 3.4);
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, rgba(79, 70, 229, 0.1) 0%, rgba(6, 182, 212, 0.1) 45%, rgba(255, 255, 255, 0.96) 100%);
    border-radius: 42px;
    margin: calc(var(--space-unit) * 2.4) auto 0;
    width: min(1180px, 95vw);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

.hero-glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 480px;
    background: radial-gradient(circle at 30% 40%, rgba(79, 70, 229, 0.2), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(79, 70, 229, 0.18), transparent 55%);
    pointer-events: none;
}

.hero-layout {
    display: block;
    padding: 0 clamp(1.6rem, 4vw, 4rem);
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.4rem, 2vw, 2rem);
}

.hero-eyebrow,
.hero-headline,
.hero-subheadline,
.hero-points,
.hero-actions,
.hero-metrics {
    grid-column: 1 / -1;
}

.hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hero-headline {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    line-height: 1.08;
    color: #10163a;
    margin: 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(79, 70, 229, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    letter-spacing: 0.02em;
}

.hero-subheadline {
    font-size: 1.08rem;
    color: var(--color-muted);
    max-width: 48ch;
    margin: 0;
}

.hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.hero-points li {
    display: grid;
    gap: 0.3rem;
    padding-left: 1.4rem;
    position: relative;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.12);
}

.hero-point-label {
    font-weight: 600;
    color: #10163a;
}

.hero-point-copy {
    color: var(--color-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 14px;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(79, 70, 229, 0.12);
    transition: transform var(--transition-snappy), box-shadow var(--transition-snappy), background var(--transition-snappy), color var(--transition-snappy);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(79, 70, 229, 0.18);
    background: rgba(79, 70, 229, 0.18);
}

.hero-metrics {
    margin-top: 0.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.22);
    padding: 1.2rem 1.4rem;
    display: grid;
    gap: 0.35rem;
}

.hero-metric strong {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.hero-metric span {
    color: var(--color-muted);
    font-size: 0.92rem;
}

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

.hero-device {
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
    border-radius: 28px;
    padding: 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.28);
    width: min(420px, 100%);
    gap: 1.2rem;
}

.hero-device-header,
.hero-device-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.85);
}

.hero-status,
.hero-step {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero-slider {
    position: relative;
    background: var(--color-surface);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    min-height: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.slide-track {
    display: grid;
    position: relative;
}

.slide {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 420ms ease, transform 420ms ease;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
}

.slide h4 {
    margin: 0;
    font-size: 1.5rem;
    color: #0f172a;
}

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

.slide figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    aspect-ratio: 16 / 10;
    background: radial-gradient(circle at 30% 30%, rgba(79, 70, 229, 0.12), transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.slider-controls {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.slider-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(79, 70, 229, 0.12);
    color: var(--color-accent);
    cursor: pointer;
    transition: background var(--transition-snappy), transform var(--transition-snappy);
}

.slider-controls button:hover,
.slider-controls button:focus-visible {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
}

.hero-device-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1rem;
}

.hero-slider {
    position: relative;
    background: var(--color-surface);
    border-radius: 30px;
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
    min-height: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.slide-track {
    display: grid;
    position: relative;
}

.slide {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 420ms ease, transform 420ms ease;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
}

.slide h4 {
    margin: 0;
    font-size: 1.5rem;
    color: #0f172a;
}

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

.slide figure {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    aspect-ratio: 16 / 10;
    background: radial-gradient(circle at 30% 30%, rgba(79, 70, 229, 0.12), transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.slider-controls {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.slider-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(79, 70, 229, 0.12);
    color: var(--color-accent);
    cursor: pointer;
    transition: background var(--transition-snappy), transform var(--transition-snappy);
}

.slider-controls button:hover,
.slider-controls button:focus-visible {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
}

section {
    padding: calc(var(--space-unit) * 3.8) 0;
}

.section-shell {
    background: var(--color-bg-soft);
    border-radius: 36px;
    width: min(1180px, 95vw);
    margin: calc(var(--space-unit) * 2.4) auto;
    padding: calc(var(--space-unit) * 3.2) 0;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

.section-shell .container {
    padding: 0 clamp(1.6rem, 4vw, 3.2rem);
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin-bottom: 1rem;
    color: #0f172a;
}

.section-intro {
    color: var(--color-muted);
    margin-bottom: calc(var(--space-unit) * 2.4);
    max-width: 720px;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

.card {
    background: var(--color-surface);
    border-radius: 24px;
    padding: 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform var(--transition-snappy), box-shadow var(--transition-snappy);
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(148, 163, 184, 0.18);
}


.image-frame img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.card .image-frame {
    aspect-ratio: 16 / 10;
    margin-bottom: 1.1rem;
}

.case-card .image-frame {
    aspect-ratio: 4 / 3;
}

.insight-card .image-frame {
    aspect-ratio: 16 / 9;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(79, 70, 229, 0.16);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.22rem;
    color: #111827;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    font-size: 0.82rem;
    color: var(--color-accent);
    font-weight: 600;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.process-step {
    background: var(--color-surface);
    border-radius: 24px;
    padding: 1.9rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.18);
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    font-size: 3.2rem;
    color: rgba(79, 70, 229, 0.1);
    font-weight: 700;
}

.case-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.case-card {
    background: var(--color-surface);
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.22);
}

.case-card strong {
    font-size: 1.1rem;
    color: #0f172a;
}

.case-stat {
    font-size: 1.6rem;
    color: var(--color-accent);
    font-weight: 600;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tech-stack span {
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.08);
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 500;
}

.insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem;
}

.insight-card {
    background: var(--color-surface);
    border-radius: 24px;
    padding: 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 1rem;
    box-shadow: 0 14px 36px rgba(148, 163, 184, 0.18);
}

.cta-panel {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.12));
    border-radius: 30px;
    padding: clamp(2rem, 4vw, 3.2rem);
    display: grid;
    gap: 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 48px rgba(79, 70, 229, 0.16);
}

[data-accordion] {
    display: grid;
    gap: 1rem;
}

[data-accordion] .btn-ghost {
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
}

[data-accordion] .btn-ghost[aria-expanded="true"] {
    background: rgba(79, 70, 229, 0.12);
    border-color: var(--color-accent);
}

[data-accordion] > div {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-muted);
}

[data-accordion] > div[hidden] {
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--color-surface);
    border-radius: 28px;
    padding: 2.2rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 44px rgba(148, 163, 184, 0.22);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.9rem;
}

.contact-list li span {
    display: block;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color var(--transition-snappy), box-shadow var(--transition-snappy), transform var(--transition-snappy);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
    transform: translateY(-1px);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: none;
    border-color: var(--color-outline);
    box-shadow: 0 0 0 4px rgba(255, 143, 143, 0.18);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

footer {
    background: #0f172a;
    padding: calc(var(--space-unit) * 3) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
}

.footer-grid h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #e2e8f0;
}

.footer-grid p,
.footer-grid li {
    color: rgba(226, 232, 240, 0.72);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(226, 232, 240, 0.72);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #f8fafc;
}

.footer-bottom {
    margin-top: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: rgba(248, 250, 252, 0.6);
    font-size: 0.88rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 1.6rem;
    right: 1.6rem;
    max-width: 360px;
    padding: 1.6rem;
    border-radius: 18px;
    background: #ffffff;
    color: var(--color-text);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: none;
    z-index: 1000;
}

.cookie-banner.active {
    display: grid;
    gap: 0.9rem;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(79, 70, 229, 0.28);
    color: var(--color-accent);
    border-radius: 14px;
    padding: 0.55rem 1.2rem;
    cursor: pointer;
    transition: background var(--transition-snappy), transform var(--transition-snappy), border-color var(--transition-snappy), color var(--transition-snappy);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(79, 70, 229, 0.12);
    transform: translateY(-1px);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Thanks page */
.thanks {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: calc(var(--space-unit) * 4) 0;
}

.thanks-card {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 560px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.legal-page {
    padding: calc(var(--space-unit) * 4) 0;
}

.legal-page article {
    background: var(--color-surface);
    border-radius: 28px;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-md);
}

.legal-page h1 {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.legal-page p,
.legal-page li {
    color: var(--color-muted);
}

.legal-page ul {
    padding-left: 1.2rem;
    margin: 1rem 0;
}

.legal-updated {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.4rem;
}

/* Responsive tweaks */
@media (max-width: 980px) {
    body.nav-open {
        overflow: hidden;
    }

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

    .main-nav {
        position: fixed;
        inset: 0 0 auto 0;
        top: 70px;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem 0;
        transform: translateY(-120%);
        transition: transform var(--transition-snappy);
        width: 100%;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        justify-content: center;
    }

    .main-nav.open {
        transform: translateY(0);
        box-shadow: 0 28px 40px rgba(15, 23, 42, 0.18);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .hero-content {
        align-items: flex-start;
    }

    .hero-visual {
        order: -1;
    }

    .hero-device {
        width: min(520px, 100%);
        margin: 0 auto;
    }

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

@media (max-width: 720px) {
    .top-bar {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .main-nav ul {
        gap: 1rem;
    }

    section {
        padding: calc(var(--space-unit) * 2.8) 0;
    }

    .hero {
        padding-top: calc(var(--space-unit) * 3);
    }

    .hero-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-slider {
        padding: 1.5rem;
    }

    .slide {
        gap: 1rem;
    }

    .hero-device {
        padding: 1.2rem;
    }

    .hero-device-header,
    .hero-device-footer {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.4rem;
        align-items: flex-start;
    }

    .hero-status,
    .hero-step {
        align-self: flex-end;
    }

    .slider-controls {
        justify-content: center;
    }

    .case-card {
        padding: 1.6rem;
    }

    .contact-card {
        padding: 1.6rem;
    }

    .footer-bottom {
        align-items: flex-start;
    }

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

    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
    }
}

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


