/* Orixa Studio — design system & global styles */

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

:root {
    /* Logo-derived: canvas #050a18, blue #0ea5e9→#2563eb, magenta→violet #d946ef→#7c3aed */
    --color-brand-navy: #050a18;
    --color-bg: #f1f5f9;
    --color-bg-subtle: #e8eef4;
    --color-elevated: rgba(255, 255, 255, 0.78);
    --color-elevated-strong: rgba(255, 255, 255, 0.96);
    --color-border: rgba(5, 10, 24, 0.09);
    --color-border-hover: rgba(37, 99, 235, 0.38);

    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #bfdbfe;
    --accent-bright: #0ea5e9;
    --accent-cyan: #06b6d4;
    --accent-magenta: #d946ef;
    --accent-violet: #7c3aed;

    --text-light: #0f172a;
    --text-muted: #475569;
    --text-subtle: #64748b;
    --text-dark: #020617;
    --text-on-primary: #ffffff;

    --card-bg: rgba(255, 255, 255, 0.88);

    --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --shadow-soft: 0 4px 24px rgba(5, 10, 24, 0.06), 0 1px 3px rgba(5, 10, 24, 0.04);
    --shadow-card-hover: 0 24px 48px -16px rgba(37, 99, 235, 0.22), 0 12px 24px -12px rgba(124, 58, 237, 0.12);
    --shadow-glow: 0 0 100px -24px rgba(124, 58, 237, 0.35);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.2s;
    --duration-med: 0.45s;

    --header-h: 72px;
    --header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
    color-scheme: light;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-light);
    overflow-x: hidden;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
}

body:has(.site-header) {
    padding-top: var(--header-offset);
}

main {
    min-width: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.75rem;
    z-index: 10000;
    padding: 0.65rem 1.25rem;
    background: var(--primary-color);
    color: var(--text-on-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
    left: 0.75rem;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.logo-link:focus-visible,
.header-cta:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ambient background */
.animated-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(ellipse 120% 80% at 50% -25%, rgba(124, 58, 237, 0.14), transparent 52%),
        radial-gradient(ellipse 75% 55% at 100% 45%, rgba(37, 99, 235, 0.11), transparent 50%),
        radial-gradient(ellipse 65% 50% at 0% 85%, rgba(217, 70, 239, 0.09), transparent 48%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-subtle) 50%, var(--color-bg) 100%);
}

.animated-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(5, 10, 24, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 10, 24, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 20%, transparent 75%);
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: float 22s var(--ease-out) infinite;
}

.circle1 {
    width: min(520px, 90vw);
    height: min(520px, 90vw);
    top: -18%;
    left: -12%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.32) 0%, rgba(124, 58, 237, 0.15) 45%, transparent 70%);
    animation-delay: 0s;
}

.circle2 {
    width: min(420px, 75vw);
    height: min(420px, 75vw);
    top: 38%;
    right: -14%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(14, 165, 233, 0.12) 50%, transparent 70%);
    animation-delay: -7s;
}

.circle3 {
    width: min(480px, 85vw);
    height: min(480px, 85vw);
    bottom: -22%;
    left: 28%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.26) 0%, rgba(5, 10, 24, 0.06) 55%, transparent 70%);
    animation-delay: -14s;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(3%, 4%) scale(1.03);
    }
    66% {
        transform: translate(-2%, 2%) scale(0.98);
    }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Site header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition:
        background var(--duration-med) var(--ease-out),
        border-color var(--duration-med) var(--ease-out),
        backdrop-filter var(--duration-med) var(--ease-out);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(1.25);
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 32px -12px rgba(5, 10, 24, 0.08);
}

.site-header--legal {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(1.25);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.legal-header-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-elevated);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out);
}

.legal-header-home:hover {
    color: var(--text-light);
    border-color: var(--color-border-hover);
    background: var(--color-elevated-strong);
}

.header-inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 max(1.25rem, env(safe-area-inset-right, 0px)) 0 max(1.25rem, env(safe-area-inset-left, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    transition: color var(--duration-fast) var(--ease-out);
    min-width: 0;
}

.logo-link > span:last-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo-link:hover {
    color: var(--primary-color);
}

.logo-img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: cover;
    box-shadow:
        var(--shadow-soft),
        0 0 0 1px rgba(37, 99, 235, 0.12),
        0 12px 28px -8px rgba(5, 10, 24, 0.15);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.65rem 0.85rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    transition:
        color var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out);
}

.nav-links a:hover {
    color: var(--text-light);
    background: var(--color-elevated);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-on-primary);
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 55%, var(--accent-violet) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: var(--shadow-soft), 0 0 24px -8px rgba(124, 58, 237, 0.45);
    transition:
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        filter var(--duration-fast) var(--ease-out);
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
    filter: brightness(1.05);
}

.header-cta svg {
    width: 16px;
    height: 16px;
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-elevated);
    color: var(--text-light);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
}

.nav-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition:
        transform var(--duration-fast) var(--ease-out),
        opacity var(--duration-fast) var(--ease-out);
}

.site-header.nav-open .nav-toggle {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--primary-color);
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .nav-toggle-bar {
        transition: none;
    }
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(5, 10, 24, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--duration-fast) var(--ease-out),
        visibility var(--duration-fast) var(--ease-out);
    pointer-events: none;
}

.nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .nav-backdrop {
        transition: none;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;
        column-gap: 0.75rem;
        row-gap: 0;
        padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
        padding-bottom: 0.5rem;
    }

    .logo-link {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .nav-toggle {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .nav-links,
    .header-cta-wrap {
        display: none;
    }

    .site-header {
        z-index: 110;
    }

    .site-header.nav-open {
        height: auto;
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px) saturate(1.25);
        border-bottom-color: var(--color-border);
        box-shadow: 0 8px 32px -8px rgba(5, 10, 24, 0.15);
    }

    .site-header.nav-open .nav-links,
    .site-header.nav-open .header-cta-wrap {
        display: flex;
    }

    .site-header.nav-open .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem 0 0.5rem;
        margin: 0.35rem 0 0;
        border-top: 1px solid var(--color-border);
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .site-header.nav-open .nav-links a {
        width: 100%;
        justify-content: flex-start;
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
        border-radius: var(--radius-sm);
    }

    .site-header.nav-open .nav-links a:active {
        background: rgba(37, 99, 235, 0.08);
    }

    .site-header.nav-open .header-cta-wrap {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        padding: 0.5rem 0 max(0.85rem, env(safe-area-inset-bottom, 0px));
    }

    .site-header.nav-open .header-cta {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
        min-height: 48px;
        padding: 0.65rem 1.15rem;
        white-space: normal;
        text-align: center;
        line-height: 1.35;
    }
}

/* Hero */
.hero {
    min-height: calc(100vh - var(--header-offset));
    min-height: calc(100svh - var(--header-offset));
    min-height: calc(100dvh - var(--header-offset));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.75rem max(1.25rem, env(safe-area-inset-right, 0px)) max(4.5rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
    position: relative;
}

.hero-content {
    max-width: 920px;
    width: 100%;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.98));
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(5, 10, 24, 0.04);
    animation: fade-up 0.9s var(--ease-out) forwards;
    opacity: 0;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-magenta), var(--primary-color));
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.5);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(0.85);
    }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw + 0.5rem, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.125rem;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    background: linear-gradient(
        120deg,
        var(--color-brand-navy) 0%,
        var(--text-light) 28%,
        var(--primary-color) 52%,
        var(--accent-violet) 78%,
        var(--accent-magenta) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fade-up 0.9s var(--ease-out) 0.08s forwards, gradient-shift 10s ease infinite;
    opacity: 0;
}

@keyframes gradient-shift {
    0%,
    100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero-lead {
    font-size: clamp(1.125rem, 2.2vw, 1.35rem);
    max-width: 560px;
    margin: 0 auto 1.875rem;
    color: var(--text-muted);
    font-weight: 400;
    animation: fade-up 0.9s var(--ease-out) 0.16s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-bottom: 2.75rem;
    animation: fade-up 0.9s var(--ease-out) 0.24s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    min-height: 44px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    color: var(--text-on-primary);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 45%, #4338ca 100%);
    box-shadow: var(--shadow-soft), 0 0 40px -8px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.btn-ghost {
    color: var(--text-light);
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    border-color: rgba(124, 58, 237, 0.28);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(5, 10, 24, 0.08);
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 760px;
    margin: 0.75rem auto 0;
    padding: 1.35rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(5, 10, 24, 0.07);
    border-radius: var(--radius-xl);
    box-shadow:
        0 1px 2px rgba(5, 10, 24, 0.04),
        0 12px 40px -16px rgba(37, 99, 235, 0.12);
    animation: fade-up 0.9s var(--ease-out) 0.32s forwards;
    opacity: 0;
}

@media screen and (max-width: 639px) {
    .metric:not(:last-child) {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(5, 10, 24, 0.06);
    }

    .metric:last-child {
        padding-bottom: 0;
    }
}

@media screen and (min-width: 640px) {
    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem 1.75rem;
        padding: 1.35rem 1.75rem;
    }

    .metric:not(:last-child) {
        padding-bottom: 0.35rem;
        border-bottom: none;
    }
}

.metric {
    text-align: center;
    padding: 0.35rem 0.25rem;
    position: relative;
    min-width: 0;
}

@media screen and (min-width: 640px) {
    .metric:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        right: calc(-0.875rem - 1px);
        transform: translateY(-50%);
        width: 1px;
        height: 2.5rem;
        background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.25), transparent);
        pointer-events: none;
    }
}

.metric-value {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-light);
}

.metric-text {
    color: var(--color-brand-navy);
}

.metric-em {
    color: var(--primary-color);
    font-weight: 800;
}

.metric-sep {
    display: inline-block;
    margin: 0 0.2em;
    color: var(--accent-violet);
    font-weight: 800;
    opacity: 0.85;
}

.metric-label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-top: 0.45rem;
    line-height: 1.4;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services / features */
.services {
    padding: 3.5rem max(1.25rem, env(safe-area-inset-right, 0px)) 5rem max(1.25rem, env(safe-area-inset-left, 0px));
    position: relative;
}

.services::before {
    content: "";
    display: block;
    width: min(120px, 30vw);
    height: 3px;
    margin: 0 auto 2.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-bright), var(--primary-color), var(--accent-violet));
    opacity: 0.85;
}

.services-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-violet);
    margin-bottom: 0.75rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature {
    position: relative;
    background: var(--card-bg);
    padding: 1.85rem 1.6rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(14px) saturate(1.1);
    box-shadow: var(--shadow-soft);
    transition:
        transform var(--duration-med) var(--ease-out),
        border-color var(--duration-med) var(--ease-out),
        box-shadow var(--duration-med) var(--ease-out);
    overflow: hidden;
}

.feature::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity var(--duration-med) var(--ease-out);
}

.feature:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-card-hover);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.16), rgba(217, 70, 239, 0.08));
    border: 1px solid var(--color-border);
    color: var(--accent-bright);
    position: relative;
    z-index: 1;
    transition: transform var(--duration-med) var(--ease-out);
}

.feature:hover .feature-icon-wrap {
    transform: scale(1.06);
}

.feature-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.feature p {
    font-size: 0.9375rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.feature:nth-child(1) {
    animation: fade-up 0.8s var(--ease-out) 0.1s forwards;
    opacity: 0;
}
.feature:nth-child(2) {
    animation: fade-up 0.8s var(--ease-out) 0.2s forwards;
    opacity: 0;
}
.feature:nth-child(3) {
    animation: fade-up 0.8s var(--ease-out) 0.3s forwards;
    opacity: 0;
}

/* Contact strip */
.contact-strip {
    padding: 0 max(1.25rem, env(safe-area-inset-right, 0px)) max(5rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
}

.contact-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(124, 58, 237, 0.06), rgba(255, 255, 255, 0.92));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-light);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(5, 10, 24, 0.07);
    background: linear-gradient(180deg, #e8eef5 0%, #dfe7f0 100%);
    backdrop-filter: blur(12px);
    padding: 3rem max(1.25rem, env(safe-area-inset-right, 0px)) max(2rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
    text-align: left;
}

.footer-brand .logo-link {
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-subtle);
    max-width: 280px;
    line-height: 1.55;
}

.footer-col h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.65rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--duration-fast) var(--ease-out);
}

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

.footer-bottom {
    max-width: 1120px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-subtle);
}

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

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

.separator {
    margin: 0 0.35rem;
    opacity: 0.4;
}

/* Legacy fade-in (legal / 404) */
.fade-in {
    opacity: 0;
    animation: fade-up 0.85s var(--ease-out) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

/* 404 page */
.page-error {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem max(1.25rem, env(safe-area-inset-right, 0px)) max(2rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
}

.page-error__card {
    width: 100%;
    max-width: 520px;
    padding: 3rem 2.25rem;
    text-align: center;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: var(--color-elevated-strong);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

.page-error__code {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 14vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    background: linear-gradient(120deg, var(--color-brand-navy), var(--primary-color), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-error__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.page-error__message {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-brand .logo-link {
        justify-content: center;
    }

    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.25rem;
    }

    .contact-card {
        text-align: center;
        justify-content: center;
        padding: 1.75rem 1.35rem;
    }

    .contact-card > div:last-child {
        width: 100%;
    }

    .contact-card .btn {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    }

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

    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
    }

    .hero-metrics {
        padding: 1.15rem 1.15rem;
        gap: 1rem;
    }

    .metric-value {
        font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    }

    .section-head {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 380px) {
    .logo-link {
        font-size: 1rem;
        gap: 0.45rem;
    }

    .hero-content h1 {
        font-size: clamp(1.65rem, 12vw, 2.5rem);
    }
}
