/* =============================================================================
   TRILOCK APPS — Marketing Site Stylesheet
   trilockapps.net
   ============================================================================= */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --tla-dark: #0f1923;
    --tla-dark-alt: #162231;
    --tla-text: #e8edf2;
    --tla-text-muted: #8899aa;
    --tla-accent: #3b82f6;
    --tla-green: #22c55e;
    --tla-purple: #a855f7;
    --tla-blue: #3b82f6;
    --tla-border: rgba(255,255,255,0.08);
    --tla-card-bg: rgba(255,255,255,0.04);
    --tla-radius: 12px;
    --tla-max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--tla-dark);
    color: var(--tla-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--tla-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #60a5fa; }

img { max-width: 100%; height: auto; }

/* ── Container ── */
.tla-container {
    max-width: var(--tla-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ── */
.tla-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 25, 35, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tla-border);
}

.tla-nav-inner {
    max-width: var(--tla-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.tla-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tla-text);
    font-weight: 700;
    font-size: 18px;
}
.tla-nav-brand:hover { color: var(--tla-text); }
.tla-nav-brand img { border-radius: 6px; }

.tla-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.tla-nav-links a { color: var(--tla-text-muted); font-size: 14px; font-weight: 500; }
.tla-nav-links a:hover { color: var(--tla-text); }

.tla-btn-nav {
    background: var(--tla-accent);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background 0.2s;
}
.tla-btn-nav:hover { background: #2563eb; }

.tla-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--tla-text);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ── Hero ── */
.tla-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 80px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(168,85,247,0.06) 0%, transparent 50%),
        var(--tla-dark);
}

.tla-hero-content { max-width: 720px; }

.tla-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.tla-hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tla-hero-tagline {
    font-size: 20px;
    color: var(--tla-accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.tla-hero-sub {
    font-size: 17px;
    color: var(--tla-text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.tla-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.tla-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.tla-btn-primary {
    background: var(--tla-accent);
    color: #fff;
}
.tla-btn-primary:hover { background: #2563eb; color: #fff; transform: translateY(-1px); }

.tla-btn-outline {
    background: transparent;
    color: var(--tla-text);
    border: 1px solid var(--tla-border);
}
.tla-btn-outline:hover { border-color: var(--tla-accent); color: var(--tla-accent); }

/* ── Sections ── */
.tla-section {
    padding: 100px 0;
}

.tla-section-dark {
    background: var(--tla-dark-alt);
}

.tla-section-alt {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.04) 0%, transparent 60%),
        var(--tla-dark);
}

.tla-section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.tla-section-subtitle {
    text-align: center;
    color: var(--tla-text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* ── Product Cards ── */
.tla-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tla-product-card {
    background: var(--tla-card-bg);
    border: 1px solid var(--tla-border);
    border-radius: var(--tla-radius);
    padding: 36px 28px;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}
.tla-product-card:hover {
    transform: translateY(-4px);
}

.tla-product-green:hover { border-color: var(--tla-green); }
.tla-product-purple:hover { border-color: var(--tla-purple); }
.tla-product-blue:hover { border-color: var(--tla-blue); }

.tla-product-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
}
.tla-product-icon img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
}

.tla-product-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    background: rgba(34,197,94,0.15);
    color: var(--tla-green);
}

.tla-badge-prerelease {
    background: rgba(168,85,247,0.15);
    color: var(--tla-purple);
}

.tla-badge-coming {
    background: rgba(59,130,246,0.15);
    color: var(--tla-blue);
}

.tla-product-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tla-product-desc {
    color: var(--tla-text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tla-product-features {
    list-style: none;
    margin-bottom: 24px;
}
.tla-product-features li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--tla-text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}
.tla-product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.tla-product-green .tla-product-features li::before { background: var(--tla-green); }
.tla-product-purple .tla-product-features li::before { background: var(--tla-purple); }
.tla-product-blue .tla-product-features li::before { background: var(--tla-blue); }

.tla-product-roadmap {
    padding-top: 16px;
    border-top: 1px solid var(--tla-border);
    font-size: 13px;
    color: var(--tla-text-muted);
    line-height: 1.6;
}
.tla-product-roadmap strong {
    color: var(--tla-text);
}

/* ── Field Ops Spotlight ── */
.tla-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.tla-spotlight-item {
    background: var(--tla-card-bg);
    border: 1px solid var(--tla-border);
    border-radius: var(--tla-radius);
    padding: 32px;
    transition: border-color 0.2s;
}
.tla-spotlight-item:hover { border-color: var(--tla-blue); }

.tla-spotlight-icon {
    color: var(--tla-blue);
    margin-bottom: 16px;
}

.tla-spotlight-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tla-spotlight-item p {
    color: var(--tla-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ── About ── */
.tla-about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.tla-about-text p {
    color: var(--tla-text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
}
.tla-about-text strong { color: var(--tla-text); }

.tla-about-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}

.tla-stat {
    text-align: center;
    padding: 28px;
    background: var(--tla-card-bg);
    border: 1px solid var(--tla-border);
    border-radius: var(--tla-radius);
}

.tla-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--tla-accent);
    margin-bottom: 4px;
}

.tla-stat-label {
    font-size: 13px;
    color: var(--tla-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ── Timeline ── */
.tla-timeline {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.tla-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--tla-border);
}

.tla-timeline-item {
    position: relative;
    margin-bottom: 36px;
}
.tla-timeline-item:last-child { margin-bottom: 0; }

.tla-timeline-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tla-dark);
    border: 2px solid #3a4a5a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tla-timeline-done .tla-timeline-dot {
    border-color: var(--tla-green);
    background: var(--tla-green);
}
.tla-timeline-done .tla-timeline-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.tla-timeline-active .tla-timeline-dot {
    border-color: var(--tla-purple);
    box-shadow: 0 0 0 4px rgba(168,85,247,0.2);
}
.tla-timeline-active .tla-timeline-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--tla-purple);
    border-radius: 50%;
    animation: tla-pulse 2s ease-in-out infinite;
}

@keyframes tla-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.tla-timeline-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tla-timeline-content p {
    color: var(--tla-text-muted);
    font-size: 14px;
}

/* ── Contact ── */
.tla-contact-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.tla-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--tla-text-muted);
}
.tla-contact-item svg { color: var(--tla-accent); flex-shrink: 0; }
.tla-contact-item a { color: var(--tla-text); font-weight: 500; }

/* ── Footer ── */
.tla-footer {
    border-top: 1px solid var(--tla-border);
    padding: 40px 0;
}

.tla-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.tla-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}
.tla-footer-brand img { border-radius: 4px; }

.tla-footer-links {
    display: flex;
    gap: 24px;
}
.tla-footer-links a {
    color: var(--tla-text-muted);
    font-size: 13px;
}
.tla-footer-links a:hover { color: var(--tla-text); }

.tla-footer-copy {
    color: var(--tla-text-muted);
    font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .tla-products { grid-template-columns: 1fr; }
    .tla-spotlight-grid { grid-template-columns: 1fr; }
    .tla-about-content { grid-template-columns: 1fr; gap: 40px; }
    .tla-about-stats { flex-direction: row; }

    .tla-hero h1 { font-size: 36px; }
    .tla-hero-tagline { font-size: 17px; }
    .tla-section { padding: 72px 0; }
    .tla-section-title { font-size: 28px; }
}

@media (max-width: 640px) {
    .tla-nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(15,25,35,0.98); padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--tla-border); }
    .tla-nav-links.open { display: flex; }
    .tla-nav-toggle { display: block; }

    .tla-hero { min-height: auto; padding: 100px 20px 60px; }
    .tla-hero h1 { font-size: 28px; }
    .tla-hero-logo { width: 72px; height: 72px; }
    .tla-hero-sub { font-size: 15px; }

    .tla-about-stats { flex-direction: column; }
    .tla-footer-inner { flex-direction: column; text-align: center; }
    .tla-contact-info { flex-direction: column; align-items: center; }
}

/* ── Blazor error boundary (hidden for marketing) ── */
.blazor-error-boundary { display: none; }
#blazor-error-ui { display: none; }
