/* ==========================================================================
   Leodia — stylesheet
   Path in an ASP.NET Core MVC project: wwwroot/css/leodia.css
   ========================================================================== */

:root {
    --ink: #0F1123;
    --ink-soft: #171A32;
    --ink-softer: #1E2140;
    --mist: #8A8FA8;
    --paper: #EDEAE4;
    --ember: #D88C7A;
    --ember-dim: #6b4b42;
    --sage: #5FBFA3;
    --sage-dim: #3d5f54;
    --hair: rgba(237,234,228,0.09);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: 'Heebo',sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--ember);
    color: var(--ink);
}

h1, h2, h3 {
    font-family: 'Frank Ruhl Libre',serif;
    font-weight: 400;
    letter-spacing: 0;
}

.eyebrow {
    font-family: 'JetBrains Mono',monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--mist);
}

a {
    color: inherit;
}

.ltr {
    direction: ltr;
    unicode-bidi: embed;
}

/* ---------- layout shells ---------- */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 120px 0;
}

/* ---------- nav ---------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 22px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(15,17,35,0.85), transparent);
}

.logo {
    font-family: 'Frank Ruhl Libre',serif;
    font-size: 1.05rem;
}

    .logo span {
        color: var(--ember);
    }

nav .nav-links {
    display: flex;
    gap: 28px;
    font-size: 0.9rem;
    color: var(--mist);
}

    nav .nav-links a {
        text-decoration: none;
        color: var(--mist);
        transition: color .2s;
    }

        nav .nav-links a:hover {
            color: var(--paper);
        }

@media(max-width:640px) {
    nav .nav-links {
        gap: 12px;
        font-size: 0.72rem;
    }

    nav {
        padding: 16px 18px;
    }
}

/* ---------- hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
}

.rings-stage {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

    .rings-stage svg {
        width: 100%;
        height: 100%;
        overflow: visible;
    }

.ring {
    fill: none;
    stroke-width: 1;
    transform-origin: center;
    transform-box: fill-box;
    animation: ringPulse 3.6s ease-out infinite;
}

#ring1 {
    animation-delay: 0s;
}

#ring2 {
    animation-delay: 1.2s;
}

#ring3 {
    animation-delay: 2.4s;
}

.rings-stage.call-active .ring {
    animation-play-state: paused;
    opacity: 0;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.85);
        opacity: var(--ring-op, 0.14);
    }

    65% {
        opacity: 0.05;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #2a2d4d, var(--ink-soft) 70%);
    border: 1px solid var(--hair);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 5;
    transition: transform .3s ease, box-shadow .4s ease;
}

    .core.active {
        box-shadow: 0 0 40px 6px var(--glow-color, rgba(216,140,122,0.35));
    }

    .core.pulse-scale {
        transform: translate(-50%,-50%) scale(var(--core-scale, 1));
    }

.status-line {
    font-family: 'JetBrains Mono',monospace;
    direction: rtl;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--mist);
    height: 20px;
    margin-bottom: 6px;
    transition: color .3s;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    max-width: 760px;
    line-height: 1.25;
    margin-bottom: 20px;
    font-weight: 400;
}

    .hero h1 em {
        font-style: normal;
        color: var(--ember);
        font-weight: 600;
    }

.hero p.sub {
    color: var(--mist);
    max-width: 460px;
    font-size: 1.05rem;
    margin-bottom: 44px;
}

.avail-line {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--mist);
    margin-bottom: 26px;
    min-height: 18px;
    transition: color .3s;
}

.avail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mist);
    flex-shrink: 0;
    transition: background .3s, box-shadow .3s;
}

.avail-line.has-listeners {
    color: #a8d9c8;
}

    .avail-line.has-listeners .avail-dot {
        background: var(--sage);
        box-shadow: 0 0 8px 1px rgba(95,191,163,0.5);
    }

.avail-line.none-free {
    color: var(--mist);
}

    .avail-line.none-free .avail-dot {
        background: var(--ember-dim);
    }

.cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    font-family: 'Heebo',sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: transform .18s ease, box-shadow .18s ease, background .2s;
    background: none;
}

    .btn:active {
        transform: scale(0.97);
    }

.btn-ember {
    background: var(--ember);
    color: #241512;
}

    .btn-ember:hover {
        box-shadow: 0 6px 26px -4px rgba(216,140,122,0.55);
    }

.btn-sage {
    border-color: var(--sage);
    color: var(--sage);
}

    .btn-sage:hover {
        background: rgba(95,191,163,0.1);
        box-shadow: 0 6px 26px -8px rgba(95,191,163,0.4);
    }

.btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

.btn-neutral {
    border-color: var(--hair);
    color: var(--paper);
    background: rgba(237,234,228,0.04);
}

    .btn-neutral:hover {
        background: rgba(237,234,228,0.09);
    }

#incomingRow, #endCallRow {
    display: none;
}

    #incomingRow.show, #endCallRow.show {
        display: flex;
    }

#ctaRow.hide {
    display: none;
}

#remoteAudio {
    display: none;
}

.hero-foot {
    margin-top: 56px;
    font-size: 0.82rem;
    color: var(--mist);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

    .hero-foot span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mist);
    opacity: 0.5;
}

/* ---------- flows section ---------- */
.flows-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

    .flows-head h2 {
        font-size: 2.1rem;
        margin: 14px 0 12px;
        font-weight: 400;
    }

    .flows-head p {
        color: var(--mist);
    }

.flows-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--hair);
    border: 1px solid var(--hair);
    border-radius: 20px;
    overflow: hidden;
}

@media(max-width:760px) {
    .flows-grid {
        grid-template-columns: 1fr;
    }
}

.flow-col {
    background: var(--ink);
    padding: 44px 40px;
}

    .flow-col .flow-tag {
        font-family: 'JetBrains Mono',monospace;
        font-size: 0.75rem;
        margin-bottom: 14px;
        display: inline-block;
        padding: 4px 10px;
        border-radius: 20px;
    }

    .flow-col.seeker .flow-tag {
        color: var(--ember);
        background: rgba(216,140,122,0.1);
    }

    .flow-col.listener .flow-tag {
        color: var(--sage);
        background: rgba(95,191,163,0.1);
    }

    .flow-col h3 {
        font-size: 1.5rem;
        margin-bottom: 24px;
        font-weight: 400;
    }

.steps {
    list-style: none;
    counter-reset: step;
}

    .steps li {
        counter-increment: step;
        display: flex;
        gap: 16px;
        padding: 16px 0;
        border-top: 1px solid var(--hair);
        font-size: 0.98rem;
        color: #cfcdd8;
    }

        .steps li:first-child {
            border-top: none;
        }

        .steps li::before {
            content: counter(step);
            font-family: 'JetBrains Mono',monospace;
            font-size: 0.8rem;
            color: var(--mist);
            flex-shrink: 0;
            padding-top: 1px;
        }

.no-reg {
    margin-top: 28px;
    font-size: 0.86rem;
    color: var(--mist);
    padding-top: 20px;
    border-top: 1px solid var(--hair);
}

/* ---------- features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--hair);
    border: 1px solid var(--hair);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 56px;
}

@media(max-width:760px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:460px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feat {
    background: var(--ink);
    padding: 36px 28px;
}

    .feat .icon {
        font-size: 1.4rem;
        margin-bottom: 14px;
        display: block;
    }

    .feat h4 {
        font-family: 'Heebo',sans-serif;
        font-weight: 500;
        font-size: 1.02rem;
        margin-bottom: 6px;
        color: var(--paper);
    }

    .feat p {
        font-size: 0.88rem;
        color: var(--mist);
    }

/* ---------- tech ---------- */
.tech-section {
    background: var(--ink-soft);
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
}

.tech-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.tech-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    direction: ltr;
}

.tech-badge {
    font-family: 'JetBrains Mono',monospace;
    font-size: 0.78rem;
    padding: 9px 16px;
    border: 1px solid var(--hair);
    border-radius: 8px;
    color: var(--mist);
}

.tech-note {
    max-width: 380px;
    color: var(--mist);
    font-size: 0.94rem;
}

    .tech-note strong {
        color: var(--paper);
        font-weight: 500;
    }

/* ---------- vision ---------- */
.vision {
    text-align: center;
}

    .vision blockquote {
        font-family: 'Frank Ruhl Libre',serif;
        font-weight: 400;
        font-size: clamp(1.5rem,3.4vw,2.3rem);
        max-width: 720px;
        margin: 0 auto 28px;
        line-height: 1.55;
        color: var(--paper);
    }

    .vision p {
        color: var(--mist);
        max-width: 520px;
        margin: 0 auto;
    }

footer {
    padding: 48px 0;
    border-top: 1px solid var(--hair);
    text-align: center;
}

    footer .tag {
        font-family: 'Frank Ruhl Libre',serif;
        color: var(--mist);
        font-size: 0.98rem;
    }

        footer .tag span {
            color: var(--ember);
        }

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
/* Minimal styling for the new report/block button — move into your
       shared stylesheet alongside .btn-neutral / .btn-sage / .btn-ember
       once this is ready to leave the view file. */
.btn-report {
    background: transparent;
    border: 1px solid rgba(216, 80, 80, 0.55);
    color: #d85050;
}

    .btn-report:hover {
        background: rgba(216, 80, 80, 0.08);
    }

/* FireLion.png crop + glow inside the sonar core — the source image is a
       square JPEG on a black background, so we round it off and let it glow
       rather than show a hard square edge against the page background. */
.leo-lion-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    filter: drop-shadow(0 0 12px rgba(216, 90, 40, 0.55));
}

/* ---------- hero (mobile) ----------
   Placed after the base component rules above (.hero, .rings-stage, .core,
   .hero h1, etc.) so these overrides actually win the cascade — an
   earlier copy of this block sat before those base rules and was
   silently discarded on every viewport, since @media doesn't change
   source-order precedence for equal-specificity selectors. */
@media(max-width:640px) {
    section {
        padding: 72px 0;
    }

    .wrap {
        padding: 0 20px;
    }

    .hero {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 32px;
        justify-content: flex-start;
    }

    .rings-stage {
        width: 150px;
        height: 150px;
        margin: 0 auto 4px;
    }

    .core {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
    }

    .status-line {
        margin-bottom: 4px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 6vw, 4.4rem);
        /*font-size: 1.55rem;*/
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .hero p.sub {
        font-size: 0.82rem;
        margin-bottom: 14px;
        line-height: 1.55;
    }

    .avail-line {
        margin-bottom: 10px;
        font-size: 0.75rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .cta-row {
        gap: 10px;
    }

    .hero-foot {
        margin-top: 22px;
        font-size: 0.7rem;
        gap: 8px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero .wrap {
        padding-top: 10px !important;
    }

    #ringsStage.rings-stage {
        width: 148px !important;
        height: 148px !important;
        margin: 0 auto 6px !important;
    }

        #ringsStage.rings-stage svg {
            width: 148px !important;
            height: 148px !important;
        }

    #ringsStage .core {
        font-size: 30px !important;
    }

        #ringsStage .core svg,
        #ringsStage .core img {
            width: 34px !important;
            height: 34px !important;
        }

    .status-line {
        margin-bottom: 6px !important;
        font-size: 13px !important;
    }

    .hero h1 {
        font-size: 22px !important;
        margin: 4px 0 !important;
    }

    .hero .sub {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .avail-line {
        margin-bottom: 10px !important;
    }

    .cta-row {
        gap: 8px !important;
    }

    .hero-foot {
        margin-top: 10px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 360px) {
    #ringsStage.rings-stage {
        width: 118px !important;
        height: 118px !important;
    }

        #ringsStage.rings-stage svg {
            width: 118px !important;
            height: 118px !important;
        }
}