/* TechTvik Labs — Modern front page (2026) */
:root {
    --ttv-teal: #0d9488;
    --ttv-teal-dark: #0f766e;
    --ttv-teal-light: #14b8a6;
    --ttv-ink: #0f172a;
    --ttv-muted: #64748b;
    --ttv-bg: #f8fafc;
    --ttv-card: #ffffff;
    --ttv-border: #e2e8f0;
    --ttv-radius: 16px;
    --ttv-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --ttv-font: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    --ttv-display: 'Outfit', 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body.ttv-modern {
    font-family: var(--ttv-font);
    color: var(--ttv-ink);
    background: var(--ttv-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.ttv-modern * { box-sizing: border-box; }

body.ttv-modern img { max-width: 100%; height: auto; }

body.ttv-modern .container,
body.ttv-modern .container-fluid {
    max-width: 100%;
    padding-left: clamp(0.75rem, 3vw, 1.5rem);
    padding-right: clamp(0.75rem, 3vw, 1.5rem);
}

/* Hide legacy top bar + old navbar */
body.ttv-modern > .bg-primary.text-white.pt-4,
body.ttv-modern > .sticky-top > .container > nav.navbar {
    display: none !important;
}

/* ─── Nav ─── */
.ttv-nav {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ttv-border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.ttv-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem clamp(0.75rem, 3vw, 1.25rem);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ttv-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none !important;
    flex-shrink: 0;
}

.ttv-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ttv-teal), var(--ttv-teal-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.ttv-logo-text {
    font-family: var(--ttv-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ttv-ink);
    line-height: 1.1;
}

.ttv-logo-text span { color: var(--ttv-teal); }

.ttv-nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ttv-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ttv-ink);
    font-size: 1.1rem;
    cursor: pointer;
}

.ttv-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.ttv-nav-link {
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ttv-muted);
    text-decoration: none !important;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.ttv-nav-link:hover,
.ttv-nav-link.active {
    color: var(--ttv-teal-dark);
    background: rgba(13, 148, 136, 0.08);
}

.ttv-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.ttv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--ttv-font);
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.ttv-btn:hover { transform: translateY(-1px); }

.ttv-btn-ghost {
    background: transparent;
    color: var(--ttv-ink);
    border: 1px solid var(--ttv-border);
}

.ttv-btn-primary {
    background: linear-gradient(135deg, var(--ttv-teal), var(--ttv-teal-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

@media (max-width: 991px) {
    .ttv-nav-toggle { display: flex; align-items: center; justify-content: center; }
    .ttv-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--ttv-border);
        padding: 0.75rem;
        box-shadow: var(--ttv-shadow);
    }
    .ttv-nav-menu.open { display: flex; }
    .ttv-nav-actions { margin-left: 0; flex-direction: column; width: 100%; }
    .ttv-nav-actions .ttv-btn { width: 100%; }
}

/* ─── Hero ─── */
.ttv-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 4rem);
    background:
        radial-gradient(ellipse 70% 60% at 10% 0%, rgba(13, 148, 136, 0.18), transparent),
        radial-gradient(ellipse 50% 50% at 90% 20%, rgba(20, 184, 166, 0.12), transparent),
        linear-gradient(180deg, #ecfdf5 0%, var(--ttv-bg) 100%);
}

.ttv-hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 3vw, 1.25rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.ttv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(13, 148, 136, 0.1);
    color: var(--ttv-teal-dark);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ttv-hero h1 {
    font-family: var(--ttv-display);
    font-size: clamp(1.85rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--ttv-ink);
    margin-bottom: 1rem;
}

.ttv-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--ttv-teal), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ttv-hero-lead {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: var(--ttv-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.ttv-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.ttv-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.ttv-hero-stat strong {
    display: block;
    font-family: var(--ttv-display);
    font-size: 1.35rem;
    color: var(--ttv-teal-dark);
}

.ttv-hero-stat span {
    font-size: 0.78rem;
    color: var(--ttv-muted);
}

.ttv-hero-visual {
    position: relative;
}

.ttv-hero-card {
    background: var(--ttv-card);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--ttv-shadow);
    border: 1px solid var(--ttv-border);
}

.ttv-hero-card img {
    border-radius: 14px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.ttv-hero-float {
    position: absolute;
    bottom: -12px;
    left: -12px;
    background: #fff;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    box-shadow: var(--ttv-shadow);
    border: 1px solid var(--ttv-border);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ttv-hero-float i { color: var(--ttv-teal); font-size: 1.2rem; }

@media (max-width: 768px) {
    .ttv-hero-grid { grid-template-columns: 1fr; }
    .ttv-hero-visual { order: -1; }
    .ttv-hero-float { position: static; margin-top: 0.75rem; }
}

/* Hide old carousel when modern hero present */
body.ttv-modern .header-carousel { display: none !important; }

/* ─── Section polish ─── */
body.ttv-modern h1.display-6,
body.ttv-modern h1.display-1,
body.ttv-modern h2 {
    font-family: var(--ttv-display);
    color: var(--ttv-ink);
}

body.ttv-modern .feature-item {
    border-radius: var(--ttv-radius) !important;
    border: 1px solid var(--ttv-border) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

body.ttv-modern .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--ttv-shadow);
}

body.ttv-modern .icon-box-primary {
    color: var(--ttv-teal) !important;
}

body.ttv-modern .btn-primary {
    background: linear-gradient(135deg, var(--ttv-teal), var(--ttv-teal-light)) !important;
    border: none !important;
    border-radius: 10px !important;
}

body.ttv-modern .bg-primary {
    background: linear-gradient(135deg, var(--ttv-teal-dark), var(--ttv-teal)) !important;
}

/* Pricing cards */
body.ttv-modern #price .card {
    border-radius: var(--ttv-radius);
    overflow: hidden;
    box-shadow: var(--ttv-shadow);
    height: 100%;
}

body.ttv-modern #price .list-group-item {
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
    border-color: var(--ttv-border);
    word-break: break-word;
}

body.ttv-modern #price .row.gx-lg-5 {
    --bs-gutter-x: 1rem;
}

@media (max-width: 768px) {
    body.ttv-modern #price .card-body {
        max-height: 280px;
        overflow-y: auto;
    }
}

/* FAQ accordion */
body.ttv-modern .accordion-button {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ttv-ink);
}

body.ttv-modern .accordion-body {
    font-size: 0.9rem;
    color: var(--ttv-muted);
    line-height: 1.65;
}

/* Forms */
body.ttv-modern .form-control,
body.ttv-modern .form-floating .form-control {
    border-radius: 10px;
    border-color: var(--ttv-border);
}

body.ttv-modern .form-control:focus {
    border-color: var(--ttv-teal-light);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Footer */
body.ttv-modern .footer {
    background: linear-gradient(180deg, #0f172a, #1e293b) !important;
}

body.ttv-modern .footer .btn-link {
    color: rgba(255,255,255,0.75) !important;
    text-align: left;
    padding: 0.25rem 0;
}

/* Auth hub modal */
.ttv-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ttv-auth-overlay.open { display: flex; }

.ttv-auth-panel {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    max-height: 92vh;
    overflow-y: auto;
    animation: ttvSlideUp 0.25s ease;
}

@keyframes ttvSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ttv-auth-head {
    padding: 1.25rem 1.35rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ttv-auth-head h3 {
    font-family: var(--ttv-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.ttv-auth-head p { margin: 0; font-size: 0.82rem; color: var(--ttv-muted); }

.ttv-auth-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--ttv-bg);
    color: var(--ttv-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.ttv-auth-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0 1rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ttv-auth-tab {
    flex: 1;
    min-width: 72px;
    padding: 0.5rem 0.4rem;
    border: 1px solid var(--ttv-border);
    border-radius: 10px;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ttv-muted);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.ttv-auth-tab i { display: block; font-size: 1rem; margin-bottom: 0.2rem; }

.ttv-auth-tab.active {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--ttv-teal-light);
    color: var(--ttv-teal-dark);
}

.ttv-auth-body { padding: 0 1.35rem 1.35rem; }

.ttv-auth-pane { display: none; }
.ttv-auth-pane.active { display: block; }

.ttv-field { margin-bottom: 0.85rem; }

.ttv-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ttv-ink);
    margin-bottom: 0.3rem;
}

.ttv-field input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--ttv-border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--ttv-font);
}

.ttv-field input:focus {
    outline: none;
    border-color: var(--ttv-teal-light);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.ttv-auth-submit {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ttv-teal), var(--ttv-teal-light));
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

.ttv-auth-note {
    margin-top: 0.85rem;
    font-size: 0.75rem;
    color: var(--ttv-muted);
    text-align: center;
    line-height: 1.5;
}

.ttv-auth-note a { color: var(--ttv-teal); }

/* Demo modal polish */
body.ttv-modern #demoModal1 .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

body.ttv-modern #demoModal1 .modal-header {
    background: linear-gradient(135deg, var(--ttv-teal-dark), var(--ttv-teal));
    color: #fff;
}

body.ttv-modern #demoModal1 .close { color: #fff; opacity: 0.9; }

/* WhatsApp float */
body.ttv-modern .whatsapp-float img {
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Overflow fixes */
body.ttv-modern .row { margin-left: 0; margin-right: 0; max-width: 100%; }
body.ttv-modern .table-responsive { overflow-x: auto; }
body.ttv-modern .carousel-caption .display-1 { font-size: clamp(1.5rem, 5vw, 3rem) !important; }

/* Why choose cards */
body.ttv-modern .card {
    border-radius: var(--ttv-radius);
    border: 1px solid var(--ttv-border);
    box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}

body.ttv-modern .card-title { font-size: 1rem; color: var(--ttv-ink); }
body.ttv-modern .card-text { font-size: 0.88rem; color: var(--ttv-muted); }

/* Spinner hide faster */
body.ttv-modern #spinner.show { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
