/* Public marketing landing — guests only (index.php) */
body.tt-landing-page {
    --tl-navy: #0b1f3a;
    --tl-navy-2: #123056;
    --tl-blue: #1d4ed8;
    --tl-sky: #38bdf8;
    --tl-mint: #34d399;
    --tl-ink: #0f172a;
    --tl-muted: #475569;
    --tl-paper: #f4f7fb;
    --tl-white: #ffffff;
    --tl-display: 'Fraunces', Georgia, serif;
    --tl-sans: 'Outfit', 'DM Sans', system-ui, sans-serif;
    margin: 0;
    background: var(--tl-paper);
    color: var(--tl-ink);
    font-family: var(--tl-sans);
    overflow-x: hidden;
}

body.tt-landing-page .tt-footer {
    background: var(--tl-navy);
    color: rgba(255, 255, 255, 0.72);
    border-top: none;
}
body.tt-landing-page .tt-footer a,
body.tt-landing-page .tt-footer-linkbtn {
    color: #93c5fd;
}

.tt-landing {
    min-height: 100vh;
}

.tt-landing-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(11, 31, 58, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tt-landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}
.tt-landing-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #2563eb, #0ea5e9);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.tt-landing-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.tt-landing-brand-text strong {
    font-size: 1.05rem;
    font-weight: 700;
}
.tt-landing-brand-text small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}
.tt-landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tt-landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    font-family: var(--tl-sans);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.tt-landing-btn:hover { transform: translateY(-1px); }
.tt-landing-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}
.tt-landing-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}
.tt-landing-btn--dark {
    color: #fff;
    background: var(--tl-navy);
    box-shadow: 0 12px 28px rgba(11, 31, 58, 0.25);
}
.tt-landing-btn--light {
    color: var(--tl-navy);
    background: #fff;
}

/* Hero — one composition, brand first */
.tt-landing-hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: grid;
    align-items: center;
    padding: 48px 28px 64px;
    background:
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(56, 189, 248, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(37, 99, 235, 0.22), transparent 50%),
        linear-gradient(160deg, #071526 0%, #0b1f3a 42%, #123056 100%);
    color: #fff;
    overflow: hidden;
}
.tt-landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}
.tt-landing-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px 48px;
    align-items: center;
}
.tt-landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tt-landing-hero-brand {
    margin: 0 0 10px;
    font-family: var(--tl-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
}
.tt-landing-hero-brand span {
    display: block;
    font-size: 0.42em;
    font-family: var(--tl-sans);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 8px;
}
.tt-landing-hero h1 {
    margin: 0 0 14px;
    font-family: var(--tl-sans);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
    max-width: 28ch;
}
.tt-landing-hero-lead {
    margin: 0 0 28px;
    max-width: 38ch;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.82);
    font-weight: 400;
}
.tt-landing-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Product visual mock */
.tt-landing-visual {
    position: relative;
    perspective: 1200px;
}
.tt-landing-mock {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(180deg, #163a66 0%, #0f2744 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    padding: 16px;
    transform: rotateY(-6deg) rotateX(4deg);
    animation: ttLandingFloat 7s ease-in-out infinite;
}
@keyframes ttLandingFloat {
    0%, 100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(-4deg) rotateX(3deg) translateY(-10px); }
}
.tt-landing-mock-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}
.tt-landing-mock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.tt-landing-mock-dot:nth-child(1) { background: #f87171; }
.tt-landing-mock-dot:nth-child(2) { background: #fbbf24; }
.tt-landing-mock-dot:nth-child(3) { background: #34d399; }
.tt-landing-mock-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.tt-landing-mock-addr {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.tt-landing-mock-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}
.tt-landing-mock-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
    font-size: 0.7rem;
    font-weight: 700;
    white-space:nowrap;
}
.tt-landing-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 16px;
    padding: 12px 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
}
.tt-landing-pipe-step {
    flex: 1;
    text-align: center;
    position: relative;
}
.tt-landing-pipe-node {
    width: 14px;
    height: 14px;
    margin: 0 auto 6px;
    border-radius: 50%;
    border: 2px solid #64748b;
    background: transparent;
}
.tt-landing-pipe-step.is-done .tt-landing-pipe-node {
    background: #34d399;
    border-color: #34d399;
}
.tt-landing-pipe-step.is-current .tt-landing-pipe-node {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
    animation: ttLandingPulse 1.8s ease-in-out infinite;
}
@keyframes ttLandingPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.08); }
}
.tt-landing-pipe-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}
.tt-landing-mock-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tt-landing-mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.tt-landing-mock-row span:first-child {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
}
.tt-landing-status {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}
.tt-landing-status--ok {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}
.tt-landing-status--warn {
    background: rgba(251, 191, 36, 0.18);
    color: #fcd34d;
}
.tt-landing-status--bad {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}
.tt-landing-orbit {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    animation: ttLandingOrbit 8s ease-in-out infinite;
}
.tt-landing-orbit i { width: 22px; height: 22px; color: #7dd3fc; }
.tt-landing-orbit--a { top: -18px; right: -8px; }
.tt-landing-orbit--b { bottom: 24px; left: -28px; animation-delay: -2.5s; }
@keyframes ttLandingOrbit {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.tt-landing-section {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 72px 28px;
}
.tt-landing-section h2 {
    margin: 0 0 12px;
    font-family: var(--tl-display);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tl-navy);
    line-height: 1.15;
}
.tt-landing-section-lead {
    margin: 0 0 36px;
    max-width: 52ch;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--tl-muted);
}

.tt-landing-problem {
    background: #fff;
}
.tt-landing-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.tt-landing-problem-card {
    padding: 22px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc, #eef4fb);
    border: 1px solid #dbe7f3;
}
.tt-landing-problem-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tl-navy);
}
.tt-landing-problem-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--tl-muted);
}
.tt-landing-problem-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #fee2e2;
    color: #b91c1c;
}
.tt-landing-problem-card:nth-child(2) .tt-landing-problem-ico {
    background: #ffedd5;
    color: #c2410c;
}
.tt-landing-problem-card:nth-child(3) .tt-landing-problem-ico {
    background: #e0e7ff;
    color: #3730a3;
}

.tt-landing-solve {
    background:
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
        var(--tl-paper);
}
.tt-landing-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.tt-landing-pillar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #dbe7f3;
    box-shadow: 0 10px 28px rgba(15, 40, 80, 0.06);
}
.tt-landing-pillar-ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e4d8c, #2563eb);
    color: #fff;
}
.tt-landing-pillar h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--tl-navy);
}
.tt-landing-pillar p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--tl-muted);
}

.tt-landing-flow {
    background: #fff;
}
.tt-landing-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    counter-reset: tlstep;
}
.tt-landing-step {
    position: relative;
    padding: 22px 18px;
    border-radius: 16px;
    background: var(--tl-navy);
    color: #fff;
    overflow: hidden;
}
.tt-landing-step::before {
    counter-increment: tlstep;
    content: counter(tlstep);
    position: absolute;
    top: 10px;
    right: 14px;
    font-family: var(--tl-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
}
.tt-landing-step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
}
.tt-landing-step p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.78);
    position: relative;
}

.tt-landing-cta {
    background: linear-gradient(135deg, #0b1f3a 0%, #1e4d8c 55%, #2563a8 100%);
    color: #fff;
    text-align: center;
    padding: 72px 28px 80px;
}
.tt-landing-cta h2 {
    color: #fff;
    margin: 0 0 12px;
}
.tt-landing-cta p {
    margin: 0 auto 28px;
    max-width: 42ch;
    color: rgba(226, 232, 240, 0.85);
    font-size: 1.05rem;
    line-height: 1.5;
}
.tt-landing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Reveal motion */
.tt-landing-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.tt-landing-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .tt-landing-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .tt-landing-visual { max-width: 480px; margin: 0 auto; }
    .tt-landing-mock { transform: none; animation: none; }
    .tt-landing-problem-grid,
    .tt-landing-pillars,
    .tt-landing-steps {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .tt-landing-nav { padding: 12px 16px; }
    .tt-landing-brand-text small { display: none; }
    .tt-landing-hero { padding: 32px 16px 48px; min-height: auto; }
    .tt-landing-section { padding: 48px 16px; }
    .tt-landing-problem-grid,
    .tt-landing-pillars,
    .tt-landing-steps {
        grid-template-columns: 1fr;
    }
    .tt-landing-orbit--b { display: none; }
    .tt-landing-nav-actions .tt-landing-btn--ghost span { display: none; }
}
