/* ============================================================
   AURALYS — style.css
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }

:root {
    --nav-h: 68px;
    --col-blue: #2563eb;
    --col-emerald: #10b981;
    --col-black: #020408;
    --col-violet: #7c3aed;
    --radius-card: 2rem;
    --radius-sm: 1rem;
    --duration: 0.4s;
}

body {
    background: var(--col-black);
    color: #f1f5f9;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
    height: 100dvh;
}

/* ── Utility: Alpine cloak ────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Scrollbar hide ───────────────────────────────────────── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Glass morphism ───────────────────────────────────────── */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass:hover { border-color: rgba(255, 255, 255, 0.12); }

.glass-strong {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Gradient text ────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(90deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Ambient background ───────────────────────────────────── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.bg-orb-1 {
    top: -25%; left: -15%;
    width: 70%; height: 70%;
    background: var(--col-blue);
    filter: blur(160px);
    opacity: 0.09;
    animation: pulse-soft 5s ease-in-out infinite;
}
.bg-orb-2 {
    bottom: -25%; right: -15%;
    width: 60%; height: 60%;
    background: var(--col-emerald);
    filter: blur(160px);
    opacity: 0.08;
    animation: pulse-soft 5s ease-in-out 2.5s infinite;
}
.bg-orb-3 {
    top: 40%; left: 40%;
    width: 30%; height: 30%;
    background: var(--col-violet);
    filter: blur(120px);
    opacity: 0.07;
    animation: pulse-soft 6s ease-in-out 1.3s infinite;
}

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes pulse-soft {
    0%, 100% { opacity: 0.07; transform: scale(1); }
    50%       { opacity: 0.17; transform: scale(1.06); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
}
.animate-float { animation: float 5s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

@keyframes rip {
    0%   { transform: scale(0); opacity: 1; }
    100% { transform: scale(5); opacity: 0; }
}

/* ── Button primary (blue gradient) ──────────────────────── */
.btn-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-blue:hover  { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37, 99, 235, 0.45); }
.btn-blue:active { transform: translateY(0) scale(0.97); }

/* ── Card lift ────────────────────────────────────────────── */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}
.card:hover  { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4); }
.card:active { transform: translateY(-1px) scale(0.99); }

/* ── Pane transition ──────────────────────────────────────── */
.pt { transition: all var(--duration) cubic-bezier(0.4, 0, 0.2, 1); }

/* ── Tooltip (only on :hover via group) ──────────────────── */
.nav-tip {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    position: absolute;
    left: calc(100% + 12px);
    top: 50%; transform: translateY(-50%);
    padding: 5px 12px;
    background: var(--col-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 50;
}
.nav-btn { position: relative; }
.nav-btn:hover .nav-tip { opacity: 1; }

/* ── Active indicator in sidebar ─────────────────────────── */
.nav-btn .nav-active-dot {
    position: absolute;
    right: 6px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px;
    background: var(--col-blue);
    border-radius: 99px;
}

/* ── Ripple effect ────────────────────────────────────────── */
.ripple { position: relative; overflow: hidden; }
.rip-el {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: rip 0.55s linear;
    pointer-events: none;
}

/* ── Step card ────────────────────────────────────────────── */
.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    transition: all 0.5s;
    flex-shrink: 0;
    tab-size: 4;
}
.step-card:hover .step-num {
    color: var(--col-blue);
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

/* ── Form inputs ──────────────────────────────────────────── */
.form-inp {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 14px;
    color: #fff;
    font-family: inherit;
    width: 100%;
    transition: all 0.3s;
}
.form-inp:focus {
    outline: none;
    border-color: var(--col-blue);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-inp::placeholder { color: #64748b; }
textarea.form-inp { resize: none; height: 112px; }

/* ── Form label ───────────────────────────────────────────── */
.form-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
    margin-left: 4px;
}

/* ── Service icon box ─────────────────────────────────────── */
.svc-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.card:hover .svc-icon { transform: scale(1.1); }

/* ── Section layout helper ────────────────────────────────── */
.section-panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 48px;
    -webkit-overflow-scrolling: touch;
}

/* ── Mobile bottom nav ────────────────────────────────────── */
.mob-nav {
    background: rgba(2, 4, 8, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    flex-shrink: 0;
}
.mob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 46px;
    padding: 8px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #64748b;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}
.mob-nav-btn.active { color: var(--col-blue); }
.mob-nav-btn span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.mob-nav-btn:active { transform: scale(0.90); }

/* ── Desktop sidebar nav button ───────────────────────────── */
.desk-nav-btn {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.desk-nav-btn:hover  { color: #fff; background: rgba(255,255,255,0.05); }
.desk-nav-btn.active { color: #60a5fa; background: rgba(37,99,235,0.10); border-color: rgba(37,99,235,0.25); }

/* ── Badge pill  ─────────────────────────────────────────── */
.badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
}
.badge-emerald { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.badge-blue    { background: rgba(37,99,235,0.10); color: #60a5fa; border: 1px solid rgba(37,99,235,0.25); }
.badge-violet  { background: rgba(124,58,237,0.1); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }
.badge-amber   { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }

/* ── Stat card ────────────────────────────────────────────── */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }

/* ── Section title ────────────────────────────────────────── */
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: 8px; }
.section-sub   { color: #64748b; font-size: 0.9rem; margin-bottom: 40px; }

/* ── Service row (one-page layout, animat) ────────────────── */
.svc-row {
    opacity: 0;
    transform: translateY(48px) scale(0.98);
    transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
                transform 0.65s cubic-bezier(0.4,0,0.2,1);
    will-change: transform, opacity;
}
.svc-row.svc-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Service row inner grid */
.svc-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    transition: border-color 0.3s;
}
.svc-row:hover .svc-inner { border-color: rgba(255,255,255,0.13); }

@media (min-width: 768px) {
    .svc-inner { grid-template-columns: 5fr 7fr; }
    .svc-inner.flip { grid-template-columns: 7fr 5fr; }
    .svc-inner.flip .svc-left  { order: 2; }
    .svc-inner.flip .svc-right { order: 1; }
}

/* Left panel of each service */
.svc-left {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255,255,255,0.025);
    border-right: 1px solid rgba(255,255,255,0.06);
    min-height: 260px;
}
@media (max-width: 767px) {
    .svc-left {
        padding: 24px 20px;
        min-height: unset;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
}

/* Service number + badge row */
.svc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.svc-num-label {
    font-size: 11px;
    font-weight: 900;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.15em;
    font-family: monospace;
}

/* Big service icon */
.svc-icon-xl {
    width: 60px; height: 60px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.svc-row:hover .svc-icon-xl { transform: scale(1.08) rotate(-2deg); }

.svc-left h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}
.svc-left p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}

/* Right panel — features */
.svc-right {
    padding: 28px 24px;
    background: rgba(0,0,0,0.15);
}
@media (max-width: 767px) {
    .svc-right { padding: 20px; }
}

.svc-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 480px) {
    .svc-features-grid { grid-template-columns: 1fr; }
}

/* Feature chip */
.svc-feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.025);
    transition: all 0.25s;
    cursor: default;
}
.svc-feat:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.svc-feat-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.svc-feat-text {
    font-size: 11px;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.45;
}

/* Divider between services */
.svc-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    color: rgba(255,255,255,0.06);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.svc-divider::before, .svc-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

/* CTA button inside svc-left */
.svc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    color: #fff;
    align-self: flex-start;
    margin-top: auto;
}
.svc-cta:hover  { transform: translateY(-2px); }
.svc-cta:active { transform: scale(0.97); }

/* ── Process connector line ───────────────────────────────── */
.process-line {
    position: absolute;
    left: 35px; top: 44px; bottom: -8px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(37,99,235,.4), transparent);
}

/* ── Review star ──────────────────────────────────────────── */
.star { color: #fbbf24; fill: #fbbf24; }

/* ── Loading spinner ──────────────────────────────────────── */
.spinner {
    width: 64px; height: 64px;
    border: 4px solid rgba(37,99,235,0.2);
    border-top-color: var(--col-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ── Gradient top bar ─────────────────────────────────────── */
.gradient-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--col-blue), #60a5fa, var(--col-emerald));
    border-radius: 999px 999px 0 0;
}

/* ── Trust dot ────────────────────────────────────────────── */
.trust-dot {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 500; color: #64748b;
}
.trust-dot::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.trust-dot.blue::before   { background: var(--col-blue); }
.trust-dot.green::before  { background: var(--col-emerald); }
.trust-dot.violet::before { background: var(--col-violet); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767px) {
    .section-panel { padding: 24px 20px; }
    .section-title { font-size: 1.6rem; }
    .section-sub   { margin-bottom: 28px; }
    .step-num      { font-size: 2.2rem; }
    body { overflow: hidden; }
}

@media (min-width: 768px) {
    .mob-nav { display: none !important; }
    .desk-sidebar { display: flex !important; }
}
