/* Landing Page CSS Variables */
:root {
    --ink: #172033;
    --muted: #5d6b82;
    --line: rgba(23, 32, 51, 0.12);
    --shadow: 0 28px 80px rgba(17, 24, 39, 0.16);
}

html { scroll-behavior: smooth; }

svg { display: block; }

.landing {
    overflow-x: hidden;
}

.lp-nav {
    position: fixed;
    z-index: 50;
    top: 18px;
    left: 50%;
    display: flex;
    width: min(1120px, calc(100% - 32px));
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.lp-logo,
.lp-nav-btn,
.lp-login-btn,
.lp-ghost-btn,
.lp-cta-primary,
.lp-cta-secondary {
    text-decoration: none;
}

.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.lp-logo-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.lp-logo-icon svg {
    width: 22px;
    height: 22px;
}

.lp-nav-btn {
    padding: 10px 16px;
    border-radius: 999px;
    background: #172033;
    color: white;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.22);
}

.lp-hero {
    position: relative;
    min-height: 760px;
    padding: 150px 24px 92px;
    background:
        linear-gradient(120deg, rgba(37, 99, 235, 0.13), transparent 38%),
        linear-gradient(210deg, rgba(22, 163, 74, 0.11), transparent 42%),
        radial-gradient(circle at 72% 56%, rgba(217, 119, 6, 0.13), transparent 28%),
        #f7f9fc;
    isolation: isolate;
}

.lp-hero::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(247, 249, 252, 0), #ffffff);
    content: "";
    pointer-events: none;
}

.lp-hero-content {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.lp-hero-space {
    position: absolute;
    z-index: 1;
    inset: 110px max(24px, calc((100vw - 1120px) / 2)) auto auto;
    width: min(48vw, 590px);
    height: 540px;
    perspective: 1100px;
    pointer-events: none;
}

.lp-depth-grid {
    position: absolute;
    inset: 44% -12% -8% 8%;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.16) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.6;
    transform: rotateX(68deg) rotateZ(-9deg);
    transform-origin: center;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 72%, transparent);
}

.lp-time-tower {
    position: absolute;
    top: 74px;
    right: 92px;
    width: 250px;
    height: 330px;
    transform: rotateX(58deg) rotateZ(-28deg) translateZ(46px);
    transform-style: preserve-3d;
    animation: floatTower 6s ease-in-out infinite;
}

.lp-tower-face {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 26px;
    backface-visibility: hidden;
}

.lp-tower-front {
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(228, 235, 247, 0.88));
    box-shadow: var(--shadow), inset 0 1px 0 white;
    transform: translateZ(48px);
}

.lp-tower-side {
    top: 20px;
    right: -48px;
    width: 96px;
    height: 294px;
    background: linear-gradient(90deg, #c7d2fe, #94a3b8);
    transform: rotateY(90deg) translateZ(200px);
    filter: brightness(0.9);
}

.lp-tower-top {
    top: -48px;
    left: 20px;
    width: 212px;
    height: 96px;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    transform: rotateX(90deg) translateZ(0);
}

.lp-mini-top {
    display: flex;
    gap: 7px;
}

.lp-mini-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563eb;
}

.lp-mini-top span:nth-child(2) {
    background: #16a34a;
}

.lp-mini-top span:nth-child(3) {
    background: #d97706;
}

.lp-clock-3d {
    position: relative;
    width: 142px;
    height: 142px;
    margin: 18px auto;
    border-radius: 50%;
    background: #172033;
    box-shadow: inset 0 0 0 12px #ffffff, 0 18px 36px rgba(23, 32, 51, 0.24);
}

.lp-clock-ring {
    position: absolute;
    inset: 24px;
    border: 2px dashed rgba(255, 255, 255, 0.42);
    border-radius: 50%;
}

.lp-clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 4px;
    border-radius: 999px;
    background: white;
    transform-origin: bottom center;
}

.lp-hour {
    height: 38px;
    transform: translateX(-50%) rotate(18deg);
}

.lp-minute {
    height: 52px;
    background: #34d399;
    transform: translateX(-50%) rotate(132deg);
}

.lp-clock-dot {
    position: absolute;
    inset: 64px;
    border-radius: 50%;
    background: #34d399;
}

.lp-terminal-lines {
    display: grid;
    gap: 12px;
}

.lp-terminal-lines span {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, rgba(37, 99, 235, 0.16));
}

.lp-terminal-lines span:nth-child(2) {
    width: 72%;
    background: linear-gradient(90deg, #16a34a, rgba(22, 163, 74, 0.16));
}

.lp-terminal-lines span:nth-child(3) {
    width: 54%;
    background: linear-gradient(90deg, #d97706, rgba(217, 119, 6, 0.16));
}

.lp-floating-panel {
    position: absolute;
    display: grid;
    gap: 3px;
    min-width: 142px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.83);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(14px);
    transform-style: preserve-3d;
}

.lp-floating-panel strong {
    font-size: 25px;
}

.lp-floating-panel span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.lp-panel-a {
    top: 72px;
    left: 36px;
    transform: rotateY(-22deg) rotateX(8deg) translateZ(90px);
}

.lp-panel-b {
    right: 18px;
    bottom: 116px;
    transform: rotateY(24deg) rotateX(-5deg) translateZ(120px);
}

.lp-panel-c {
    bottom: 52px;
    left: 84px;
    transform: rotateY(-15deg) rotateX(7deg) translateZ(72px);
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #244066;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.12);
}

.lp-badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.15);
}

.lp-h1 {
    width: min(680px, 100%);
    margin: 28px 0 18px;
    font-size: 92px;
    line-height: 0.94;
    letter-spacing: 0;
}

.lp-sub {
    width: min(570px, 100%);
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65;
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.lp-login-btn,
.lp-ghost-btn,
.lp-cta-primary,
.lp-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 14px;
    font-weight: 900;
}

.lp-login-btn,
.lp-cta-primary {
    gap: 10px;
    padding: 0 22px;
    background: #172033;
    color: white;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.24);
}

.lp-login-btn svg,
.lp-cta-primary svg {
    width: 20px;
    height: 20px;
}

.lp-ghost-btn,
.lp-cta-secondary {
    padding: 0 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.lp-login-card,
.lp-feat {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transition: transform 180ms ease, box-shadow 180ms ease;
    transform-style: preserve-3d;
}

.lp-login-card {
    width: min(420px, 100%);
    margin-top: 38px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 242, 250, 0.78));
    box-shadow: var(--shadow);
}

.lp-login-card:hover,
.lp-feat:hover {
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.2);
}

.lp-card-label {
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.lp-card-metric {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
}

.lp-card-metric span {
    color: var(--muted);
    font-weight: 800;
}

.lp-card-metric strong {
    font-size: 42px;
    line-height: 1;
}

.lp-card-bars {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.lp-card-bars span {
    position: relative;
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
}

.lp-card-bars span::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--bar);
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #16a34a);
    content: "";
}

.lp-card-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.lp-card-hint a {
    color: #172033;
    font-weight: 900;
}

.lp-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.lp-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #344055;
    font-weight: 800;
}

.lp-proof-item svg {
    width: 18px;
    height: 18px;
}

.lp-features,
.lp-how,
.lp-cta {
    padding: 96px 24px;
    background: #ffffff;
}

.lp-section-label,
.lp-section-h2,
.lp-section-sub {
    width: min(1120px, 100%);
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.lp-section-label {
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.lp-section-h2 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 54px;
    line-height: 1.04;
    letter-spacing: 0;
}

.lp-section-sub {
    margin-top: 0;
    color: var(--muted);
    font-size: 18px;
}

.lp-grid {
    display: grid;
    width: min(1120px, 100%);
    margin: 48px auto 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    perspective: 1000px;
}

.lp-feat {
    min-height: 245px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92)),
        linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 88%), transparent);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.lp-feat-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 8px;
    background: #eef4fb;
    background: color-mix(in srgb, var(--accent), white 88%);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 30px color-mix(in srgb, var(--accent), transparent 82%);
    transform: translateZ(34px);
}

.lp-feat-icon svg {
    width: 27px;
    height: 27px;
}

.lp-feat h3 {
    margin: 22px 0 9px;
    font-size: 20px;
}

.lp-feat p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.lp-how {
    background: #f7f9fc;
}

.lp-steps {
    display: grid;
    width: min(1000px, 100%);
    margin: 48px auto 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lp-step {
    position: relative;
    min-height: 220px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #eef4fb);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.1);
}

.lp-step-num {
    color: rgba(37, 99, 235, 0.22);
    font-size: 64px;
    font-weight: 950;
    line-height: 0.9;
}

.lp-step h3 {
    margin: 28px 0 10px;
}

.lp-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.lp-cta {
    background:
        linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(15, 118, 110, 0.92)),
        #172033;
    color: white;
}

.lp-cta-content {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
}

.lp-cta h2 {
    margin: 0;
    font-size: 62px;
    letter-spacing: 0;
}

.lp-cta p {
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 19px;
}

.lp-cta-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.lp-cta-primary {
    background: white;
    color: #172033;
}

.lp-cta-secondary {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.lp-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px max(24px, calc((100vw - 1120px) / 2));
    background: #ffffff;
    color: var(--muted);
}

.lp-footer-logo {
    color: var(--ink);
    font-weight: 950;
}

.lp-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.lp-footer-links a {
    font-weight: 800;
    text-decoration: none;
}

@keyframes floatTower {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -14px;
    }
}

@media (max-width: 940px) {
    .lp-hero {
        min-height: 0;
        padding-top: 118px;
    }

    .lp-hero-space {
        position: relative;
        inset: auto;
        width: min(100%, 560px);
        height: 430px;
        margin: 18px auto 30px;
    }

    .lp-hero-content {
        display: flex;
        flex-direction: column;
    }

    .lp-badge,
    .lp-h1,
    .lp-sub,
    .lp-actions,
    .lp-login-card,
    .lp-proof {
        order: 2;
    }

    .lp-hero-space {
        order: 1;
    }

    .lp-h1,
    .lp-sub {
        width: 100%;
    }

    .lp-h1 {
        font-size: 64px;
    }

    .lp-section-h2,
    .lp-cta h2 {
        font-size: 44px;
    }

    .lp-grid,
    .lp-steps {
        grid-template-columns: 1fr;
    }

    .lp-time-tower {
        right: 50%;
        width: 220px;
        height: 290px;
        transform: translateX(52%) rotateX(58deg) rotateZ(-28deg) translateZ(46px);
    }

    .lp-panel-a {
        left: 0;
    }

    .lp-panel-b {
        right: 0;
    }

    .lp-panel-c {
        left: 26px;
    }
}

@media (max-width: 620px) {
    .lp-nav {
        top: 10px;
        width: calc(100% - 20px);
        padding: 9px;
    }

    .lp-logo {
        font-size: 15px;
    }

    .lp-logo-icon {
        width: 34px;
        height: 34px;
    }

    .lp-nav-btn {
        padding: 9px 12px;
        font-size: 13px;
    }

    .lp-hero,
    .lp-features,
    .lp-how,
    .lp-cta {
        padding-right: 18px;
        padding-left: 18px;
    }

    .lp-hero-space {
        height: 350px;
    }

    .lp-time-tower {
        top: 70px;
        width: 188px;
        height: 250px;
    }

    .lp-clock-3d {
        width: 112px;
        height: 112px;
    }

    .lp-clock-dot {
        inset: 50px;
    }

    .lp-floating-panel {
        min-width: 122px;
        padding: 12px 13px;
    }

    .lp-floating-panel strong {
        font-size: 20px;
    }

    .lp-h1 {
        font-size: 45px;
    }

    .lp-section-h2,
    .lp-cta h2 {
        font-size: 34px;
    }

    .lp-sub {
        font-size: 18px;
    }

    .lp-actions,
    .lp-cta-btns {
        flex-direction: column;
    }

    .lp-login-btn,
    .lp-ghost-btn,
    .lp-cta-primary,
    .lp-cta-secondary {
        width: 100%;
    }

    .lp-card-metric {
        align-items: start;
        flex-direction: column;
    }

    .lp-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Landing polish layer */
:root {
    --ink: #172033;
    --muted: #526173;
    --line: rgba(82, 97, 115, 0.20);
    --shadow: 0 24px 62px rgba(15, 23, 42, 0.14);
}

.lp-nav {
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
}

.lp-logo-icon,
.lp-login-btn,
.lp-ghost-btn,
.lp-cta-primary,
.lp-cta-secondary,
.lp-login-card,
.lp-floating-panel,
.lp-step,
.lp-feat {
    border-radius: 8px;
}

.lp-hero {
    background:
        linear-gradient(120deg, rgba(37, 99, 235, .10), transparent 36%),
        linear-gradient(220deg, rgba(15, 159, 110, .10), transparent 42%),
        #f6f8fb;
}

.lp-h1,
.lp-section-h2,
.lp-cta h2 {
    letter-spacing: 0;
}

.lp-login-btn,
.lp-cta-primary,
.lp-nav-btn {
    background: #2563eb;
    box-shadow: 0 16px 34px rgba(37, 99, 235, .22);
}

.lp-login-btn:hover,
.lp-cta-primary:hover,
.lp-nav-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.lp-ghost-btn,
.lp-cta-secondary {
    color: var(--ink);
}

.lp-feat,
.lp-step,
.lp-login-card {
    border-color: rgba(148, 163, 184, .28);
}

.lp-feat:hover,
.lp-login-card:hover {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.lp-cta {
    background:
        linear-gradient(135deg, rgba(23, 32, 51, .97), rgba(15, 99, 90, .94)),
        #172033;
}
