/* ============================================================
   ORENTIQ — PHASE 2 PAGE-SPECIFIC STYLES
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: clamp(560px, calc(100svh - 76px), 720px);
    padding-block: clamp(3rem, 5vw, 4.5rem);
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    top: 8%;
    right: -7rem;
    width: min(42vw, 600px);
    height: min(42vw, 600px);
    background: radial-gradient(circle, var(--color-hero-glow) 0, transparent 68%);
    opacity: .7;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: clamp(var(--space-8), 5vw, var(--space-16));
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px var(--space-3);
    border-radius: var(--radius-pill);
    background-color: var(--color-hover);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    margin-bottom: var(--space-5);
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, 5.5vw, 6rem);
    line-height: .94;
    letter-spacing: var(--tracking-tight);
    max-width: 620px;
    margin-bottom: var(--space-5);
}

.hero p.lead {
    font-size: var(--text-body-large);
    color: var(--color-text-muted);
    max-width: 510px;
    margin-bottom: var(--space-8);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Homepage technology intelligence scene. */
.hero h1 .heading-accent { color: var(--color-accent); }
.hero-visual { position: relative; width: 100%; min-height: clamp(440px, 38vw, 560px); display: grid; place-items: center; overflow: clip; }
.tech-scene { position: relative; width: min(100%, 620px); aspect-ratio: 1.18 / 1; isolation: isolate; }
.tech-scene::before { content: ""; position: absolute; inset: 15% 8%; z-index: -2; border-radius: 50%; background: radial-gradient(ellipse, var(--color-hero-glow), transparent 65%); filter: blur(12px); opacity: .75; }
.tech-scene::after { content: ""; position: absolute; inset: 13% 6%; z-index: -1; background: linear-gradient(28deg, transparent 49.65%, var(--color-border) 50%, transparent 50.35%), linear-gradient(151deg, transparent 49.65%, var(--color-hover) 50%, transparent 50.35%); opacity: .7; }
.tech-orbit { position: absolute; top: 50%; left: 50%; border: 1px solid var(--color-border-strong); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); transform-origin: center; opacity: .7; }
.tech-orbit-one { width: 77%; height: 40%; animation: sceneOrbit 30s linear infinite; }.tech-orbit-two { width: 64%; height: 65%; border-color: var(--color-hover); animation: sceneOrbitReverse 38s linear infinite; }.tech-orbit-three { width: 92%; height: 53%; border-style: dashed; border-color: var(--color-border); animation: sceneOrbit 48s linear infinite; }.tech-orbit-four { width: 48%; height: 82%; border-color: var(--color-hover); opacity: .42; animation: sceneOrbitReverse 42s linear infinite; }.tech-orbit-five { width: 98%; height: 33%; border-color: var(--color-border); opacity: .45; animation: sceneOrbit 44s linear infinite; }
.tech-core { position: absolute; top: 47%; left: 50%; z-index: 3; width: clamp(270px, 28vw, 380px); aspect-ratio: 380 / 340; transform: translate(-50%, -50%); background: url("../images/hero/hero-3d-core.e203daa35801.png?v=transparent-alpha-1") center / contain no-repeat; filter: drop-shadow(0 22px 17px rgba(43, 29, 16, .28)); animation: cubeFloat 5s ease-in-out infinite; }
[data-theme="light"] .tech-core { mix-blend-mode: multiply; }
[data-theme="dark"] .tech-core { opacity: .82; }
.tech-node { position: absolute; z-index: 4; display: flex; align-items: center; gap: var(--space-3); width: 205px; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-glass); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); animation: nodeFloat 7s ease-in-out infinite; }.tech-node h4 { margin: 0 0 3px; color: var(--color-text); font-size: var(--text-body-small); }.tech-node p { margin: 0; color: var(--color-text-muted); font-size: var(--text-caption); line-height: 1.45; }.tech-node .node-icon { display: grid; width: 44px; height: 44px; place-items: center; flex: 0 0 auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-accent); box-shadow: var(--shadow-sm); }.tech-node .node-icon svg { width: 22px; height: 22px; }
.node-ai { top: 7%; left: 15%; animation-delay: -1s; }.node-products { top: 14%; right: 0; animation-delay: -2.5s; }.node-data { top: 49%; left: 0; animation-delay: -4s; }.node-cloud { top: 53%; right: 0; animation-delay: -5.5s; }.node-enterprise { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: -3s; }
.tech-particle { position: absolute; z-index: 2; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 10px var(--color-accent); animation: particlePulse 4s ease-in-out infinite; }.particle-one { top: 20%; left: 29%; }.particle-two { top: 26%; right: 21%; animation-delay: -1s; }.particle-three { bottom: 22%; right: 30%; animation-delay: -2s; }.particle-four { bottom: 18%; left: 26%; animation-delay: -3s; }.particle-five { top: 8%; right: 33%; width: 13px; height: 13px; opacity: .45; animation-delay: -2.5s; }.particle-six { bottom: 8%; right: 13%; width: 16px; height: 16px; opacity: .28; animation-delay: -1.5s; }

/* ---------- Trust strip ---------- */
.trust-strip {
    position: relative;
    padding: 0 var(--gutter-desktop) var(--space-8);
    border: 0;
    background: transparent;
}

.trust-strip .container {
    max-width: var(--container-wide);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface-elevated);
    box-shadow: var(--shadow-sm);
}

.trust-strip-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
    padding-block: var(--space-6);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
}

.trust-item + .trust-item { border-left: 1px solid var(--color-border); }

.trust-item .trust-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background-color: var(--color-hover);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-item .trust-icon svg {
    width: 20px;
    height: 20px;
}

.trust-item strong { display: block; color: var(--color-text); font-size: var(--text-body-small); }
.trust-item span { display: block; margin-top: 2px; color: var(--color-text-muted); font-size: var(--text-caption); }

/* Homepage statistics retain their existing data while gaining a quieter hierarchy. */
.trust-strip + .section .card-stat {
    position: relative;
    padding: var(--space-6) var(--space-5);
    background: var(--color-surface-elevated);
    box-shadow: var(--shadow-sm);
}

.trust-strip + .section .card-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--space-5);
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.trust-strip + .section .card-stat .stat-value {
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: var(--tracking-tight);
}

/* ---------- Section heading center ---------- */
.section-heading-center {
    margin-inline: auto;
    text-align: center;
}

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.process-step {
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    position: relative;
}

.process-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--color-hover);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-h5);
    margin-bottom: var(--space-4);
}

.process-step h3 {
    margin-bottom: var(--space-2);
}

/* ---------- CTA ---------- */
.cta-section {
    padding-block: clamp(3rem, 6vw, 5.5rem);
}

.cta-section .cta-card {
    display: grid;
    min-height: 300px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(3rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(209, 157, 113, .36);
    border-radius: 22px;
    background: radial-gradient(circle at 82% 50%, rgba(191, 124, 77, .22), transparent 25%), linear-gradient(120deg, #211914, #39271d 56%, #2b1c16);
    box-shadow: 0 20px 45px rgba(48, 31, 21, .14);
    position: relative;
    overflow: hidden;
}

.cta-section .cta-card::before {
    content: "";
    position: absolute;
    inset: auto -10% -80% auto;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(229, 178, 132, .18);
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
}

.cta-section .cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0;
    color: #fff8ef;
}

.cta-section .cta-content h2 {
    max-width: 600px;
    margin: .7rem 0 1rem;
    color: #fff8ef;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 4vw, 3.625rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.cta-section .cta-content .eyebrow {
    display: block;
    margin: 0;
    color: #e3ad83;
}

.cta-section .cta-content p {
    max-width: 560px;
    margin: 0;
    color: #ddcabe !important;
    font-size: 1rem;
    line-height: 1.6;
}

.cta-section .cta-content .flex { gap: .75rem; margin-top: 1.5rem; }
.cta-section .cta-content .btn-primary { border-color: #c58a62; background: #c58a62; color: #211914; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.cta-section .cta-content .btn-primary:hover { background: #d19a72; transform: translateY(-2px); }
.cta-section .cta-content .btn-outline { border-color: rgba(255,248,239,.48); color: #fff8ef; }
.cta-section .cta-content .btn-outline:hover { border-color: #e3ad83; background: rgba(255,248,239,.08); transform: translateY(-2px); }

.cta-visual { position: relative; width: min(100%, 280px); aspect-ratio: 1; justify-self: center; isolation: isolate; }
.cta-visual__glow { position: absolute; inset: 20%; z-index: -1; border-radius: 50%; background: rgba(205, 142, 97, .4); filter: blur(30px); animation: ctaGlow 8s ease-in-out infinite alternate; }
.cta-visual__orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(232, 190, 151, .43); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); animation: ctaOrbit 36s linear infinite; }
.cta-visual__orbit--one { width: 94%; height: 41%; }.cta-visual__orbit--two { width: 64%; height: 86%; border-color: rgba(232, 190, 151, .27); animation-duration: 29s; animation-direction: reverse; }.cta-visual__orbit--three { width: 76%; height: 30%; border-color: rgba(232, 190, 151, .2); animation-duration: 42s; }
.cta-visual__emblem { position: absolute; top: 50%; left: 50%; display: grid; width: 104px; aspect-ratio: 1; place-content: center; border: 1px solid rgba(238, 204, 170, .65); border-radius: 50%; background: radial-gradient(circle at 31% 25%, #fff8ef 0 6%, #e2b78f 43%, #9c5b34 100%); box-shadow: inset 9px 10px 17px rgba(255,255,255,.55), inset -12px -14px 19px rgba(81,42,22,.25), 0 14px 28px rgba(0,0,0,.2); color: #2b1911; text-align: center; transform: translate(-50%, -50%); animation: ctaEmblemFloat 7s ease-in-out infinite; }.cta-visual__emblem::after { position: absolute; inset: 9px; border: 1px solid rgba(255,248,239,.52); border-radius: inherit; content: ""; }.cta-visual__emblem small { position: relative; z-index: 1; font-size: .42rem; font-weight: 700; letter-spacing: .14em; }.cta-visual__emblem b { position: relative; z-index: 1; margin-top: .2rem; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; letter-spacing: -.13em; line-height: .8; }
.cta-visual__node { position: absolute; z-index: 2; width: 7px; height: 7px; border: 2px solid #fff8ef; border-radius: 50%; background: #dba879; box-shadow: 0 0 0 4px rgba(219,168,121,.12), 0 0 13px rgba(219,168,121,.8); animation: ctaNodePulse 3.5s ease-in-out infinite; }.cta-visual__node--one { top: 19%; left: 18%; }.cta-visual__node--two { right: 15%; bottom: 24%; animation-delay: -1.5s; }
@keyframes ctaOrbit { from { transform: translate(-50%, -50%) rotate(-18deg); } to { transform: translate(-50%, -50%) rotate(342deg); } } @keyframes ctaGlow { from { opacity: .55; transform: scale(.9); } to { opacity: .95; transform: scale(1.08); } } @keyframes ctaEmblemFloat { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 5px)); } } @keyframes ctaNodePulse { 0%, 100% { opacity: .65; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    padding-block: var(--space-16) var(--space-12);
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

.page-hero .eyebrow {
    display: block;
    margin-bottom: var(--space-3);
}

.page-hero h1 {
    margin-bottom: var(--space-4);
}

.page-hero p {
    color: var(--color-text-muted);
    max-width: 640px;
}

/* ---------- Phase 5: public page presentation ---------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(var(--space-16), 9vw, var(--space-24)) clamp(var(--space-12), 6vw, var(--space-20));
    background: linear-gradient(112deg, var(--color-surface-elevated), var(--color-bg) 68%);
}

.page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(46vw, 640px);
    height: min(46vw, 640px);
    right: -9%;
    bottom: -60%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-hero-glow), transparent 68%);
    pointer-events: none;
}

.page-hero .container { position: relative; }
.page-hero .eyebrow { margin-bottom: var(--space-4); }
.page-hero h1 {
    max-width: 840px;
    margin-bottom: var(--space-5);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.75rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: var(--tracking-tight);
}
.page-hero p { font-size: var(--text-body-large); line-height: 1.7; }

/* Public content cards retain their shared structure while gaining page-level hierarchy. */
.card-service,
.card-technology,
.card-portfolio,
.ecosystem-branch,
.process-step,
.faq-item {
    box-shadow: var(--shadow-sm);
}

.card-service,
.card-technology,
.card-portfolio {
    position: relative;
    overflow: hidden;
}

.card-service::before,
.card-technology::before,
.card-portfolio::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--space-6);
    width: 34px;
    height: 2px;
    background: var(--color-accent);
    opacity: .8;
}

.card-service h3,
.card-technology h3,
.portfolio-body h3 { letter-spacing: var(--tracking-tight); }
.card-service p,
.card-technology p,
.portfolio-body p { color: var(--color-text-muted); }
.card-service .link { font-weight: 600; }
.card-technology { text-align: center; }
.card-technology .card-icon { margin-inline: auto; }

.card-portfolio { padding: 0; }
.portfolio-media {
    display: flex;
    align-items: flex-end;
    min-height: 146px;
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-surface-elevated));
}
.portfolio-media .caption {
    padding: 5px var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface-glass);
    color: var(--color-accent);
    font-weight: 600;
}
.portfolio-body { padding: var(--space-6); }
.portfolio-body h3 { margin-bottom: var(--space-3); }

.process-step {
    background: var(--color-surface-elevated);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.process-step:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}
.process-number {
    box-shadow: inset 0 0 0 1px var(--color-border), var(--shadow-sm);
}

.faq-item { transition: border-color var(--transition-fast), background-color var(--transition-fast); }
.faq-item:hover { border-color: var(--color-border-strong); background-color: var(--color-surface-elevated); }
.ecosystem-card { background: linear-gradient(145deg, var(--color-surface-elevated), var(--color-surface)); box-shadow: var(--shadow-sm); }
.ecosystem-branch { transition: transform var(--transition-fast), border-color var(--transition-fast); }
.ecosystem-branch:hover { transform: translateY(-2px); border-color: var(--color-accent); }

/* Contact and project forms use the existing inputs while receiving a clearer public-page frame. */
.contact-form,
.project-form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form .form-group,
.project-form .form-group { margin-bottom: 0; }
.contact-form .btn,
.project-form > .btn { align-self: flex-start; }

@media (max-width: 768px) {
    .page-hero { padding-block: var(--space-16) var(--space-12); }
    .page-hero h1 { font-size: clamp(2.5rem, 11vw, 3.75rem); }
    .portfolio-media { min-height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
    .process-step,
    .ecosystem-branch { transition: none; }
    .process-step:hover,
    .ecosystem-branch:hover { transform: none; }
}

/* ============================================================
   PHASE 9 â€” AUTHENTICATION PRESENTATION
   ============================================================ */
.auth-shell {
    position: relative;
    display: grid;
    min-height: calc(100svh - 76px);
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, var(--color-bg), var(--color-bg-secondary));
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.auth-shell::before {
    top: -16rem;
    right: -12rem;
    width: min(48vw, 560px);
    height: min(48vw, 560px);
    background: radial-gradient(circle, var(--color-hero-glow), transparent 68%);
}

.auth-shell::after {
    bottom: -18rem;
    left: -10rem;
    width: min(38vw, 440px);
    height: min(38vw, 440px);
    border: 1px solid var(--color-border);
    opacity: .45;
}

.auth-shell .container-narrow { position: relative; z-index: 1; }
.auth-shell .auth-card {
    width: 100%;
    max-width: 600px;
    padding: clamp(var(--space-6), 4vw, var(--space-10));
    background: var(--color-surface-elevated);
    box-shadow: var(--shadow-elevated);
}

.auth-shell .auth-card::before {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-bottom: var(--space-6);
    background: var(--color-accent);
}

.auth-shell .auth-header { margin-bottom: var(--space-8); }
.auth-shell .auth-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: var(--tracking-tight);
}

.auth-shell .auth-form { gap: var(--space-2); }
.auth-shell .auth-form .form-group { margin-bottom: var(--space-4); }
.auth-shell .auth-form .form-control {
    min-height: 46px;
    background: var(--color-surface);
}

.auth-shell .password-toggle {
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
}
.auth-shell .password-toggle:hover { color: var(--color-accent); background: var(--color-hover); }
.auth-shell .btn-primary { box-shadow: var(--shadow-accent); }
.auth-shell .auth-footer { margin-top: var(--space-8); }
.auth-shell .auth-footer a:not(.btn) { font-weight: 600; }
.auth-shell .form-error,
.auth-shell .form-success { box-shadow: var(--shadow-sm); }

@media (max-width: 768px) {
    .auth-shell { min-height: 0; padding-block: var(--space-12); }
    .auth-shell .auth-card { padding: var(--space-6); }
}

@media (max-width: 480px) {
    .auth-shell { padding-inline: 0; }
    .auth-shell .auth-card { padding: var(--space-5); border-radius: var(--radius-md); }
    .auth-shell .auth-card::before { margin-bottom: var(--space-5); }
}

@media (max-width: 760px) {
    .cta-section .cta-card { grid-template-columns: 1fr; gap: 1.5rem; min-height: 0; padding: 2.75rem 1.5rem; }
    .cta-section .cta-content { text-align: center; }
    .cta-section .cta-content h2, .cta-section .cta-content p { margin-inline: auto; }
    .cta-section .cta-content .flex { justify-content: center; }
    .cta-visual { width: min(100%, 210px); }
}

@media (max-width: 480px) {
    .cta-section { padding-block: 2.75rem; }
    .cta-section .cta-card { padding: 2.35rem 1.25rem; border-radius: 18px; }
    .cta-section .cta-content h2 { font-size: clamp(2rem, 10vw, 2.375rem); }
    .cta-section .cta-content .flex { flex-direction: column; width: 100%; }
    .cta-section .cta-content .btn { width: 100%; }
    .cta-visual { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .cta-visual, .cta-visual * { animation: none !important; }
    .cta-section .cta-content .btn { transition: none; }
}

/* ---------- Feature list ---------- */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--color-text);
    font-size: var(--text-body);
}

.feature-list li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-4);
    background-color: var(--color-surface);
}

.faq-item h4 {
    margin-bottom: var(--space-2);
    font-size: var(--text-body);
}

.faq-item p {
    color: var(--color-text-muted);
    font-size: var(--text-body-small);
}

/* ---------- Product Ecosystem ---------- */
.ecosystem-card {
    position: relative;
    isolation: isolate;
    margin-top: var(--space-6);
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.ecosystem-map { position: relative; min-height: 370px; overflow: hidden; background: radial-gradient(circle at 50% 48%, var(--color-hero-glow), transparent 22%), repeating-linear-gradient(0deg, transparent 0 43px, color-mix(in srgb, var(--color-border) 11%, transparent) 44px), linear-gradient(145deg, color-mix(in srgb, var(--color-surface-elevated) 48%, transparent), transparent 72%); }
.ecosystem-map::before, .ecosystem-map::after { content: ""; position: absolute; z-index: 0; left: 50%; top: 50%; width: min(46vw, 560px); height: min(19vw, 190px); border: 1px solid color-mix(in srgb, var(--color-border-strong) 35%, transparent); border-radius: 50%; transform: translate(-50%, -50%) rotate(11deg); opacity: .45; pointer-events: none; }
.ecosystem-map::after { width: min(33vw, 390px); height: min(25vw, 250px); transform: translate(-50%, -50%) rotate(-22deg); border-color: color-mix(in srgb, var(--color-accent) 20%, transparent); opacity: .35; }
.ecosystem-root { position: absolute; z-index: 3; top: 51%; left: 50%; display: grid; width: clamp(190px, 17vw, 228px); aspect-ratio: 1; place-items: center; transform: translate(-50%, -50%); border: 1px solid color-mix(in srgb, var(--color-accent) 72%, var(--color-border)); border-radius: 50%; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--color-surface-elevated) 96%, transparent), color-mix(in srgb, var(--color-bg) 94%, transparent)); box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-accent) 5%, transparent), 0 12px 36px color-mix(in srgb, var(--color-accent) 10%, transparent), inset 0 1px 0 color-mix(in srgb, white 14%, transparent); text-align: center; }
.ecosystem-root::before { content: ""; position: absolute; inset: 14px; border: 1px dotted color-mix(in srgb, var(--color-text-muted) 34%, transparent); border-radius: 50%; }
.ecosystem-root-ring { position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--color-accent) 58%, transparent); border-radius: 50%; animation: ecosystemOrbit 22s linear infinite; }
.ecosystem-root-glow { position: absolute; top: 28%; left: 50%; width: 70px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--color-accent); filter: blur(24px); opacity: .13; animation: ecosystemGlow 5s ease-in-out infinite; }
.ecosystem-robot { position: absolute; top: 8%; left: 50%; width: 61%; transform: translateX(-50%); animation: ecosystemRobotFloat 6s ease-in-out infinite; }
.ecosystem-robot svg { width: 100%; height: auto; overflow: visible; }
.ecosystem-robot path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.robot-shoulders { stroke: color-mix(in srgb, var(--color-text) 80%, var(--color-accent)); stroke-width: 4; }
.robot-neck, .robot-detail { stroke: color-mix(in srgb, var(--color-accent) 72%, var(--color-text)); stroke-width: 2; }
.ecosystem-robot .robot-head { fill: var(--color-surface-elevated); stroke: color-mix(in srgb, var(--color-accent) 62%, var(--color-text)); stroke-width: 2.5; }
.robot-panel { fill: color-mix(in srgb, var(--color-bg) 72%, var(--color-surface)); stroke: color-mix(in srgb, var(--color-text-muted) 55%, transparent); stroke-width: 1.4; }
.robot-eye { stroke: var(--color-accent-light); stroke-width: 3; filter: drop-shadow(0 0 3px var(--color-accent)); animation: ecosystemEyePulse 5s ease-in-out infinite; }
.robot-chin { stroke: color-mix(in srgb, var(--color-text-muted) 58%, transparent); stroke-width: 1.5; }
.ecosystem-root .eyebrow { position: absolute; bottom: 20%; margin: 0; color: var(--color-accent); font-size: var(--text-caption); letter-spacing: var(--tracking-caps); }
.ecosystem-core-label { position: absolute; bottom: 12%; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; }
.ecosystem-branches { display: contents; }
.ecosystem-branch { position: absolute; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); width: min(250px, 24vw); min-height: 104px; padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-surface-glass) 92%, transparent); box-shadow: var(--shadow-md), inset 0 1px 0 color-mix(in srgb, white 12%, transparent); color: var(--color-text); text-align: left; text-decoration: none; transition: transform 260ms ease-out, border-color 260ms ease-out, box-shadow 260ms ease-out, background-color 260ms ease-out; }
.ecosystem-branch::before { content: ""; position: absolute; top: 0; left: var(--space-5); width: 28px; height: 2px; background: var(--color-accent); opacity: .7; }
.ecosystem-branch:hover, .ecosystem-branch:focus-visible { transform: translateY(-3px); border-color: var(--color-accent); background: color-mix(in srgb, var(--color-hover) 56%, var(--color-surface)); box-shadow: var(--shadow-lg), 0 0 22px color-mix(in srgb, var(--color-accent) 12%, transparent); }
.ecosystem-branch--ai { top: 36%; left: 3%; }
.ecosystem-branch--travel { right: 3%; bottom: 9%; }
.ecosystem-branch--property { right: 3%; top: 9%; }
.ecosystem-branch .badge { grid-column: 1 / -1; width: fit-content; margin-bottom: -2px; color: var(--color-accent); background: color-mix(in srgb, var(--color-hover) 72%, transparent); }
.ecosystem-product { min-width: 0; font-size: var(--text-body-small); font-weight: 600; line-height: var(--line-h5); }
.ecosystem-visual { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid color-mix(in srgb, var(--color-accent) 48%, var(--color-border)); border-radius: 50%; color: var(--color-accent); background: color-mix(in srgb, var(--color-hover) 62%, transparent); transition: transform 260ms ease-out, box-shadow 260ms ease-out, background-color 260ms ease-out, border-color 260ms ease-out; }
.ecosystem-visual svg { width: 32px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.3; }
.ecosystem-branch:hover .ecosystem-visual { transform: scale(1.03); border-color: var(--color-accent); background: var(--color-hover); box-shadow: 0 0 16px color-mix(in srgb, var(--color-accent) 20%, transparent); }
.ecosystem-line { position: absolute; z-index: 1; height: 1px; transform-origin: left center; background: linear-gradient(90deg, color-mix(in srgb, var(--color-accent) 70%, transparent), color-mix(in srgb, var(--color-border-strong) 75%, transparent)); }
.ecosystem-line::after { content: ""; position: absolute; inset: -1px 0; background: linear-gradient(90deg, transparent 0 35%, color-mix(in srgb, var(--color-accent-light) 80%, transparent) 48%, transparent 62% 100%); background-size: 42% 100%; background-repeat: no-repeat; opacity: .7; animation: ecosystemDataFlow 6s linear infinite; }
.ecosystem-line--ai { top: 51%; left: 27%; width: 23%; transform: rotate(0); }
.ecosystem-line--travel { top: 63%; left: 50%; width: 23%; transform: rotate(22deg); }
.ecosystem-line--property { top: 39%; left: 50%; width: 23%; transform: rotate(-22deg); }
.ecosystem-node-point { position: absolute; z-index: 2; width: 7px; height: 7px; border: 1px solid var(--color-accent); border-radius: 50%; background: var(--color-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 9%, transparent); animation: ecosystemNodePulse 3.6s ease-in-out infinite; }
.ecosystem-node-point--ai { top: 51%; left: 27%; }
.ecosystem-node-point--travel { top: 71%; left: 73%; }
.ecosystem-node-point--property { top: 29%; left: 73%; }
@keyframes ecosystemOrbit { to { transform: rotate(360deg); } }
@keyframes ecosystemRobotFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -3px); } }
@keyframes ecosystemGlow { 0%, 100% { opacity: .09; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: .18; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes ecosystemEyePulse { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
@keyframes ecosystemDataFlow { from { background-position: -42% 0; } to { background-position: 142% 0; } }
@keyframes ecosystemNodePulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
 .ecosystem-node-point--travel { animation-delay: -1.2s; }
 .ecosystem-node-point--property { animation-delay: -2.4s; }
@media (max-width: 860px) { .ecosystem-map { min-height: 400px; }.ecosystem-branch { width: min(230px, 31vw); }.ecosystem-branch--ai { left: 1%; }.ecosystem-branch--travel, .ecosystem-branch--property { right: 1%; } }
@media (max-width: 640px) { .ecosystem-card { margin-top: var(--space-6); }.ecosystem-map { display: flex; min-height: 0; flex-direction: column; align-items: center; gap: var(--space-4); padding: 1.25rem 1rem 1.5rem; background-size: 100% 100%, 100% 42px, 100% 100%; }.ecosystem-map::before, .ecosystem-map::after { width: 78vw; height: 76%; transform: translate(-50%, -50%) rotate(0); }.ecosystem-root { position: relative; top: auto; left: auto; flex: 0 0 auto; width: 190px; transform: none; }.ecosystem-root::after, .ecosystem-branch::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1px; height: var(--space-4); background: var(--color-accent); }.ecosystem-branch { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: min(100%, 340px); min-height: 96px; }.ecosystem-line, .ecosystem-node-point { display: none; } }
@media (prefers-reduced-motion: reduce) { .ecosystem-root-ring, .ecosystem-robot, .ecosystem-root-glow, .robot-eye, .ecosystem-node-point, .ecosystem-line::after { animation: none; }.ecosystem-branch, .ecosystem-visual { transition: none; } }

/* ---------- Authentication ---------- */
.auth-card {
    max-width: 560px;
    margin-inline: auto;
    padding: var(--space-8);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-header .eyebrow {
    display: block;
    margin-bottom: var(--space-3);
}

.auth-header h1 {
    margin-bottom: var(--space-3);
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-errors,
.auth-messages {
    margin-bottom: var(--space-6);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: var(--space-10);
}

.password-field .password-toggle {
    position: absolute;
    right: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
}

.w-full {
    width: 100%;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-hover);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: var(--text-h4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .hero { min-height: 0; }
    .hero-visual { min-height: 440px; }

    .trust-strip-inner {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ecosystem-branches {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-block: var(--space-16) var(--space-12);
    }

    .hero h1 {
        font-size: clamp(2.75rem, 12vw, 4.25rem);
    }

    .hero-visual { min-height: 500px; }
    .tech-scene { width: min(100%, 540px); }

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

    .trust-strip { padding-inline: var(--gutter-tablet); }
    .trust-item + .trust-item { border-top: 1px solid var(--color-border); border-left: 0; }

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

    .cta-card {
        padding: var(--space-12) var(--space-6);
    }
}

@media (max-width: 480px) {
    .hero { padding-block: var(--space-12) var(--space-10); }
    .trust-strip { padding-inline: var(--gutter-mobile); }
    .hero-actions { gap: var(--space-3); }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-visual { min-height: 440px; }
    .tech-scene { width: 100%; height: 440px; aspect-ratio: auto; }
    .tech-core { width: min(44vw, 212px); height: auto; aspect-ratio: 380 / 340; }
    .tech-node { width: min(30vw, 112px); gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius-md); }
    .tech-node .node-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); }
    .tech-node .node-icon svg { width: 16px; height: 16px; }
    .tech-node h4 { font-size: .6875rem; line-height: 1.2; }
    .tech-node p { display: none; }
    .node-ai { top: 3%; left: 0; }.node-products { top: 3%; right: 0; }.node-data { top: 42%; left: 0; }.node-cloud { top: 42%; right: 0; }.node-enterprise { bottom: 2%; }
    .tech-orbit-three, .tech-orbit-four, .tech-orbit-five { display: none; }
}

/* ============================================================
   PHASE 8 â€” CLIENT PORTAL PRESENTATION
   Reuses account and booking views without adding client data or controls.
   ============================================================ */
.client-portal {
    position: relative;
    background: linear-gradient(180deg, var(--color-bg), var(--color-bg-secondary));
}

.client-portal .section-heading {
    max-width: 680px;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.client-portal .section-heading h1,
.client-portal .section-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: var(--tracking-tight);
}

.client-portal > .container > .grid > .card,
.client-portal .booking-stack > .card,
.client-portal .price-summary,
.client-booking-card {
    background: var(--color-surface-elevated);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.client-portal .avatar-lg {
    background: linear-gradient(145deg, var(--color-hover), var(--color-surface));
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.client-portal .divider { margin-block: var(--space-5); }

.client-portal .form-success,
.client-portal .demo-banner {
    box-shadow: var(--shadow-sm);
}

.client-booking-card {
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.client-booking-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--space-6);
    width: 34px;
    height: 2px;
    background: var(--color-accent);
}

.client-booking-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}

.client-portal .price-summary {
    background: linear-gradient(155deg, var(--color-surface-elevated), var(--color-surface));
}

.client-portal .price-summary .eyebrow { display: block; margin-bottom: var(--space-2); }
.client-portal .price-total-row { border-top-color: var(--color-accent); }

.client-portal .booking-actions .btn,
.client-portal .flex-col .btn { justify-content: flex-start; }

.client-portal .badge-status.confirmed,
.client-portal .badge-status.pending {
    animation: client-status-pulse 3s ease-in-out infinite;
}

@keyframes client-status-pulse {
    50% { box-shadow: 0 0 0 4px var(--color-hover); }
}

@media (max-width: 900px) {
    .client-portal .price-summary { position: static; }
}

@media (max-width: 480px) {
    .client-portal .section-heading { padding-bottom: var(--space-5); }
    .client-portal .booking-actions .btn,
    .client-portal .flex-col .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .client-booking-card { transition: none; }
    .client-booking-card:hover { transform: none; }
    .client-portal .badge-status.confirmed,
    .client-portal .badge-status.pending { animation: none; }
}

/* ============================================================
   ORENTIQ — PHASE 9 BOOKING WORKFLOW
   ============================================================ */

/* Demo disclaimer — impossible to miss */
.demo-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    margin-bottom: var(--space-8);
    border: 1px solid rgba(178, 106, 0, 0.45);
    border-left-width: 5px;
    border-radius: var(--radius-md);
    background-color: rgba(178, 106, 0, 0.1);
    color: var(--color-text);
}

.demo-banner .demo-banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(178, 106, 0, 0.2);
    color: var(--color-warning);
    font-weight: 700;
}

.demo-banner h2 {
    font-size: var(--text-h4);
    margin-bottom: var(--space-1);
    color: var(--color-warning);
}

.demo-banner p {
    font-size: var(--text-body-small);
    color: var(--color-text-muted);
    margin: 0;
}

/* Booking layout */
.booking-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
    align-items: start;
}

@keyframes sceneOrbit { to { transform: translate(-50%, -50%) rotate(342deg); } }
@keyframes sceneOrbitReverse { to { transform: translate(-50%, -50%) rotate(-378deg); } }
@keyframes cubeFloat { 50% { translate: 0 -5px; filter: drop-shadow(0 22px 17px rgba(43, 29, 16, .26)); } }
@keyframes nodeFloat { 50% { translate: 0 -5px; } }
@keyframes particlePulse { 50% { opacity: .35; scale: .72; } }

.booking-grid > *,
.booking-stack,
.price-summary {
    min-width: 0;
}

.booking-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.badge-demo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-3);
    border-radius: var(--radius-pill);
    font-size: var(--text-caption);
    font-weight: 700;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    background-color: rgba(178, 106, 0, 0.12);
    color: var(--color-warning);
    border: 1px solid rgba(178, 106, 0, 0.35);
}

/* Price summary — visually prominent */
.price-summary {
    position: sticky;
    top: var(--space-6);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface-elevated);
    box-shadow: var(--shadow-card);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-block: var(--space-3);
    font-size: var(--text-body-small);
    color: var(--color-text-muted);
}

.price-row + .price-row {
    border-top: 1px solid var(--color-border);
}

.price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: var(--space-5);
    margin-top: var(--space-2);
    border-top: 2px solid var(--color-border);
}

.price-total-row .price-total-value {
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--color-accent);
}

/* Person (traveler / guest / participant) form card */
.person-card {
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
}

.person-card legend,
.person-card h3 {
    font-size: var(--text-h4);
    margin-bottom: var(--space-4);
}

.booking-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

.required-mark {
    color: var(--color-error);
}

/* ============================================================
   RESPONSIVE — BOOKING
   ============================================================ */
@media (max-width: 900px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .price-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .demo-banner,
    .person-card,
    .price-summary {
        padding: var(--space-4);
    }

    .demo-banner .demo-banner-icon {
        width: 32px;
        height: 32px;
    }

    .price-row,
    .price-total-row {
        gap: var(--space-3);
    }

    .booking-actions > .btn {
        width: 100%;
        justify-content: center;
    }
}
