
:root {
    --bg: #050816;
    --bg-alt: #070b1f;
    --card-bg: #0b1024;
    --border-subtle: rgba(148, 163, 184, 0.3);
    --text-main: #f3f4f6;
    --text-muted: #d1d5db;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-red: #ef4444;
    --accent-soft: rgba(56, 189, 248, 0.25);
    --radius-lg: 1.4rem;
    --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.75);
}

/* Theme overrides */
.body-root.theme-ocean {
    --bg: #020617;
    --bg-alt: #020617;
    --accent-blue: #0ea5e9;
    --accent-purple: #6366f1;
    --accent-red: #38bdf8;
}

.body-root.theme-emerald {
    --bg: #022c22;
    --bg-alt: #022c22;
    --accent-blue: #22c55e;
    --accent-purple: #16a34a;
    --accent-red: #22d3ee;
}

.body-root.theme-sunset {
    --bg: #111827;
    --bg-alt: #020617;
    --accent-blue: #f97316;
    --accent-purple: #ec4899;
    --accent-red: #ef4444;
    --accent-soft: rgba(251, 113, 133, 0.35);
}

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

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #111827 0, #020617 48%, #000 100%);
    color: var(--text-main);
    scroll-behavior: smooth;
}

.body-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, var(--bg-alt) 0, #020617 40%, #000 100%);
    color: var(--text-main);
}

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

/* Layout */

.container {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
}

.site-main {
    flex: 1;
}

/* Header / Nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.75), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: conic-gradient(from 210deg, #2563eb, #7c3aed, #ef4444, #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.45),
        0 10px 30px rgba(59, 130, 246, 0.45);
}

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

.brand-title {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a,
.nav-parent {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.2rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.nav-links a::after,
.nav-parent::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    height: 2px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple), var(--accent-red));
    transition: width 0.18s ease-out;
}

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

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-parent:hover::after,
.nav-parent:focus-visible::after {
    width: 100%;
}

/* Services dropdown */

.nav-item-has-children {
    position: relative;
}

.nav-parent-caret {
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.nav-child-menu {
    position: absolute;
    top: 2rem;
    left: 0;
    min-width: 15rem;
    padding: 0.5rem;
    margin: 0;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
    list-style: none;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.14s ease-out, transform 0.14s ease-out;
    z-index: 50;
}

.nav-child-menu li {
    border-radius: 0.5rem;
}

.nav-child-menu a {
    display: block;
    padding: 0.35rem 0.6rem;
    font-size: 0.86rem;
}

.nav-child-menu a::after {
    display: none;
}

.nav-item-has-children:hover .nav-child-menu,
.nav-item-has-children:focus-within .nav-child-menu,
.nav-child-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Nav actions & theme switcher */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.95));
}

.theme-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: radial-gradient(circle at center, #f9fafb, #e5e7eb);
    cursor: pointer;
    padding: 0;
}

.theme-dot[data-theme-choice="default"] {
    background: conic-gradient(from 210deg, #2563eb, #7c3aed, #ef4444, #2563eb);
}

.theme-dot[data-theme-choice="ocean"] {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.theme-dot[data-theme-choice="emerald"] {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.theme-dot[data-theme-choice="sunset"] {
    background: linear-gradient(135deg, #f97316, #ec4899, #ef4444);
}

.theme-dot.is-active {
    border-color: #f9fafb;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.15s ease-out, border-color 0.15s ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-red));
    box-shadow:
        0 15px 35px rgba(37, 99, 235, 0.55),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 20px 45px rgba(37, 99, 235, 0.7),
        0 0 0 1px rgba(248, 250, 252, 0.85);
}

.btn-outline {
    border-color: rgba(148, 163, 184, 0.6);
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.65);
}

.btn-outline:hover {
    border-color: rgba(248, 250, 252, 0.85);
}

.btn-ghost {
    border-color: transparent;
    background: rgba(15, 23, 42, 0.16);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.3);
    color: var(--text-main);
}

.btn-small {
    padding-inline: 1rem;
    padding-block: 0.5rem;
    font-size: 0.82rem;
}

.full-width {
    width: 100%;
}

/* Mobile nav */

.nav-toggle {
    display: none;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
}

.nav-toggle-bar {
    width: 1.1rem;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
}

/* Hero */

.hero {
    padding-block: 4.5rem 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.8rem;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.54rem;
    border-radius: 999px;
    border: 1px solid rgba(94, 234, 212, 0.8);
    background: radial-gradient(circle at left, rgba(45, 212, 191, 0.45), rgba(8, 47, 73, 0.1));
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ccfbf1;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin-top: 1.1rem;
    margin-bottom: 0.9rem;
}

.hero p {
    margin: 0;
    color: var(--text-muted);
    max-width: 36rem;
}

.gradient-text {
    background-image: linear-gradient(120deg, var(--accent-blue), var(--accent-purple), var(--accent-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-stats {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.hero-stats dt {
    font-size: 1.4rem;
    font-weight: 700;
}

.hero-stats dd {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.hero-badges {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-chip {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
}

.hero-media {
    position: relative;
}

.hero-card {
    position: relative;
    padding: 1.4rem 1.35rem 1.2rem;
    border-radius: 1.45rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.26), rgba(15, 23, 42, 0.98));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card-title {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #bfdbfe;
}

.hero-card-subtitle {
    margin-top: 0.55rem;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
}

.hero-chip-list li {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.7);
}

.hero-visual {
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.85);
}

.hero-card-footnote {
    margin-top: 0.8rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Sections */

.section {
    padding-block: 3.5rem;
}

.section-alt {
    background: radial-gradient(circle at center top, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.99));
}

.section-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.section-header p {
    margin: 0 auto;
    max-width: 34rem;
    color: var(--text-muted);
}

/* Cards */

.cards-grid {
    display: grid;
    gap: 1.4rem;
}

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

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

.card {
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.4rem 1.3rem 1.3rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.8);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, border-color 0.15s ease-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
    border-color: rgba(248, 250, 252, 0.5);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

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

.card-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.card-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    color: #e5e7eb;
    margin-bottom: 0.3rem;
}

.card-list li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.5rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: radial-gradient(circle at center, #22d3ee, var(--accent-purple));
}

.card-link {
    display: inline-flex;
    margin-top: 0.9rem;
    font-size: 0.86rem;
    color: #e5e7eb;
    text-decoration: none;
    gap: 0.25rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Pill cards */

.pill-card {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.1rem 1.3rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.3), rgba(15, 23, 42, 0.95));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
}

.pill-card h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
}

.pill-card p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Trusted grid */

.trusted-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.trusted-tag {
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
}

/* AI Lab */

.ai-lab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 1.9rem;
    align-items: center;
}

.icon-list {
    list-style: none;
    padding: 0;
    margin: 0.9rem 0 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.3rem;
}

.icon-list li::before {
    content: "◆";
    font-size: 0.55rem;
    margin-top: 0.3rem;
    color: #38bdf8;
}

.ai-lab-panel {
    border-radius: 1.35rem;
    padding: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 55%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.18), rgba(15, 23, 42, 0.95));
    box-shadow: var(--shadow-soft);
}

.ai-lab-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.ai-pill {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-pill .dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: radial-gradient(circle at center, #22c55e, #16a34a);
}

.ai-lab-image {
    margin-top: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.8);
}

/* Timeline */

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: flex-start;
}

.timeline-marker {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: radial-gradient(circle at center, var(--accent-blue), var(--accent-purple));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid rgba(15, 23, 42, 0.98);
    box-shadow:
        0 0 0 2px rgba(148, 163, 184, 0.5),
        0 10px 25px rgba(15, 23, 42, 0.95);
}

.timeline-content h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.timeline-content p {
    margin: 0;
    color: var(--text-muted);
}

/* Contact */

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

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.7rem;
}

label {
    font-size: 0.86rem;
    color: #e5e7eb;
}

input,
select,
textarea {
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    padding: 0.55rem 0.75rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(56, 189, 248, 0.7);
    outline-offset: 1px;
}

.form-helper {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.contact-info {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.98));
}

.contact-highlight {
    margin-top: 1.1rem;
    padding: 0.9rem;
    border-radius: 0.95rem;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
}

.muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Stack */

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

.stack-card h3 {
    font-size: 1rem;
}

/* FAQ */

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

/* Service detail */

.service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 1.6rem;
}

/* Final CTA */

.final-cta {
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.98));
}

.final-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.7rem;
}

.final-cta-inner p {
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top, #020617, #000);
    padding-top: 2rem;
    padding-bottom: 1.4rem;
    margin-top: 2.4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    padding-bottom: 1.4rem;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-heading {
    margin-top: 0;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid rgba(30, 64, 175, 0.9);
    padding-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--text-main);
}

/* Utilities */

.mt-lg {
    margin-top: 1.1rem;
}

/* Animations & motion */

@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.float-card {
    animation: floatCard 7s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.9s ease-out both;
}

.fade-in-up-slow {
    animation: fadeInUp 1.1s ease-out both;
}

.stagger > .card {
    animation: fadeInUp 0.9s ease-out both;
}

.stagger > .card:nth-child(2) {
    animation-delay: 0.08s;
}

.stagger > .card:nth-child(3) {
    animation-delay: 0.16s;
}

/* Responsive */

@media (max-width: 1024px) {
    .nav-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        inset-inline: 0;
        top: 3.6rem;
        padding: 0.75rem 1.6rem 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid rgba(148, 163, 184, 0.35);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    }

    .nav-links.is-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

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

    .main-nav > .btn-outline {
        display: none;
    }

    .nav-item-has-children {
        width: 100%;
    }

    .nav-child-menu {
        position: static;
        margin-top: 0.4rem;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 0.8rem;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr);
    }

    .hero-media {
        order: -1;
    }

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

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

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

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

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

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

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

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

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

@media (max-width: 640px) {
    .hero {
        padding-block: 3.1rem 2.8rem;
    }

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

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

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

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

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