/* ==================================================================
   OZAVION — Home page styles (W2)
   Hero ecosystem visual, trust strip, transformation journey,
   flagship highlight. Loaded via $page_styles on index.php only.
   ================================================================== */

/* ------------------------------------------------------------------
   HERO (dark, two-column: copy + ecosystem visual)
   ------------------------------------------------------------------ */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5.5rem);
}
.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    /* One restrained whisper of accent — no multi-colour wash, no drift. */
    background: radial-gradient(48% 38% at 80% 0%, rgba(91, 121, 240, 0.10), transparent 72%);
}
.home-hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.home-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.home-hero__title { font-size: var(--fs-4xl); letter-spacing: -0.03em; }
.home-hero__lead { font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem); color: var(--color-text-soft); max-width: 56ch; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ------------------------------------------------------------------
   ECOSYSTEM VISUAL (CSS-only network: core + 8 brand nodes)
   ------------------------------------------------------------------ */
.ecosystem {
    --r: 168px;                 /* orbit radius */
    --node: 92px;               /* node diameter */
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
}
.ecosystem__orbit {
    position: absolute;
    inset: 8%;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    animation: eco-spin 60s linear infinite;
}
.ecosystem__orbit::after {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
/* connector spokes from centre out to each node */
.eco-spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 1px;
    width: var(--r);
    transform-origin: 0 50%;
    transform: rotate(var(--a));
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
    z-index: 1;
}
.eco-spoke::after { content: none; } /* travelling-pulse cliché removed */
/* core */
.ecosystem__core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    z-index: 3;
    color: var(--color-text);
    font-weight: var(--fw-semibold);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-strong);
    box-shadow: inset 0 0 0 1px rgba(91, 121, 240, 0.18), var(--shadow-md);
}
.ecosystem__core span { font-size: var(--fs-md); letter-spacing: var(--tracking-tight); }
.ecosystem__core small { display: block; font-size: 0.62rem; font-weight: var(--fw-medium); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-soft); margin-top: 2px; }
/* nodes */
.eco-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--node);
    height: var(--node);
    margin: calc(var(--node) / -2) 0 0 calc(var(--node) / -2);
    transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
    z-index: 2;
}
.eco-node__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-md);
    animation: eco-float 6s var(--ease) infinite;
    animation-delay: var(--d, 0s);
    transition: transform var(--transition), border-color var(--transition);
}
.eco-node__inner:hover { transform: translateY(-4px); border-color: var(--node-accent, var(--color-accent)); }
.eco-node__glyph {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: var(--fw-bold);
    color: #fff;
    background: var(--node-accent, var(--color-accent));
}
.eco-node__name { font-size: 0.7rem; font-weight: var(--fw-semibold); color: var(--color-text); }
.eco-node__glyph svg { width: 16px; height: 16px; }

@keyframes eco-spin   { to { transform: rotate(360deg); } }
@keyframes eco-glow   { 0%,100% { box-shadow: 0 0 0 1px rgba(59,130,246,0.25), 0 0 50px rgba(59,130,246,0.3); } 50% { box-shadow: 0 0 0 1px rgba(59,130,246,0.4), 0 0 80px rgba(59,130,246,0.5); } }
@keyframes eco-float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes eco-pulse  { 0% { left: 0; opacity: 0; } 15% { opacity: 0.9; } 85% { opacity: 0.9; } 100% { left: calc(var(--r) - 24px); opacity: 0; } }

/* ------------------------------------------------------------------
   TRUST STRIP
   ------------------------------------------------------------------ */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.trust-strip__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}
.trust-strip__item .icon { color: var(--color-accent-2); flex: none; }

/* ------------------------------------------------------------------
   TRANSFORMATION JOURNEY (horizontal scroll-snap rail)
   ------------------------------------------------------------------ */
.journey {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-4);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.journey__step {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 168px;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform var(--transition), border-color var(--transition);
}
.journey__step:hover { transform: translateY(-4px); border-color: var(--color-border-strong); }
.journey__step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: calc(-1 * var(--space-3) + 2px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent-2);
    font-weight: var(--fw-bold);
    z-index: 1;
}
.journey__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-md); color: var(--color-accent-2); background: var(--color-accent-soft); border: 1px solid rgba(59,130,246,0.25); }
.journey__num { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--color-text-muted); }
.journey__label { font-size: var(--fs-base); font-weight: var(--fw-semibold); }
.journey__brand { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--color-accent-2); margin-top: auto; }
.journey__brand--muted { color: var(--color-text-muted); }

/* ------------------------------------------------------------------
   FLAGSHIP HIGHLIGHT (Ozavios)
   ------------------------------------------------------------------ */
.flagship { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.flagship__visual {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-xl);
    background: linear-gradient(155deg, var(--color-surface-2), var(--color-surface));
    border: 1px solid var(--color-border-strong);
    overflow: hidden;
    display: grid;
    place-items: center;
}
.flagship__visual .icon { width: 120px; height: 120px; color: rgba(255,255,255,0.5); }
.flagship__grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%);
    mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%);
}

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 980px) {
    .home-hero__inner { grid-template-columns: 1fr; }
    .home-hero__visual { order: -1; }
    .flagship { grid-template-columns: 1fr; }
    .flagship__visual { order: -1; }
}
@media (max-width: 720px) {
    .trust-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .ecosystem { --r: 120px; --node: 72px; }
    .ecosystem__core { width: 92px; height: 92px; }
    .home-hero__actions { width: 100%; }
    .home-hero__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .ecosystem__orbit, .eco-spoke::after, .ecosystem__core, .eco-node__inner { animation: none; }
}
