/* ============================================
   TECHNOLOGY PAGE — Design System
   Pure white, glassmorphism, Cluely-inspired
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tooltip Styles */
.t-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
}

.t-tooltip-trigger {
    font-size: 0.8rem;
    color: var(--t-primary);
    border-bottom: 1px dashed currentColor;
    margin-left: 6px;
}

.t-tooltip-content {
    display: block;
    visibility: hidden;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: #111827;
    color: #ffffff;
    text-align: left;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.t-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}

.t-tooltip-wrapper:hover .t-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

:root {
    --t-primary: #4f46e5;
    --t-secondary: #6366f1;
    --t-accent: #ec4899;
    --t-blue: #3b82f6;
    --t-blue-light: #60a5fa;
    --t-text: #111827;
    --t-text-secondary: #6b7280;
    --t-text-tertiary: #9ca3af;
    --t-bg: #ffffff;
    --t-card-bg: rgba(255, 255, 255, 0.7);
    --t-card-border: rgba(255, 255, 255, 0.9);
    --t-border-subtle: rgba(99, 102, 241, 0.08);
    --t-glow: rgba(79, 70, 229, 0.06);
    --t-radius: 28px;
    --t-radius-sm: 16px;
    --t-section-gap: 140px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--t-text);
    background: var(--t-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- BACKGROUND WASH --- */
.t-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
}

/* --- NAVBAR --- */
.t-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.t-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
}

.t-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.t-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--t-text);
}

.t-nav-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.t-nav-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.t-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.t-nav-links a {
    text-decoration: none;
    color: var(--t-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.t-nav-links a:hover,
.t-nav-links a.active {
    color: var(--t-primary);
}

.t-nav-cta {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
    color: white !important;
    -webkit-text-fill-color: white !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}

.t-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

/* --- SCROLL REVEAL --- */
.t-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.t-reveal-delay-1 { transition-delay: 0.1s; }
.t-reveal-delay-2 { transition-delay: 0.2s; }
.t-reveal-delay-3 { transition-delay: 0.3s; }

/* --- SECTION CONTAINER --- */
.t-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- HERO --- */
.t-hero-section {
    padding-top: 160px;
    padding-bottom: var(--t-section-gap);
    text-align: center;
}

.t-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--t-border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--t-primary);
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.06);
}

.t-hero-badge svg {
    width: 16px;
    height: 16px;
}

.t-hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--t-text);
}

.t-gradient-text {
    background: linear-gradient(135deg, var(--t-primary) 0%, var(--t-blue) 50%, var(--t-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.t-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--t-text-secondary);
    max-width: 600px;
    margin: 0 auto 42px;
    line-height: 1.7;
}

.t-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.3);
}

.t-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.4);
}

.t-hero-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.t-hero-cta:hover svg {
    transform: translateX(4px);
}

/* --- HOW IT WORKS (3 Steps) --- */
.t-how-section {
    padding-bottom: var(--t-section-gap);
}

.t-section-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--t-primary);
    margin-bottom: 16px;
}

.t-section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 64px;
    letter-spacing: -0.02em;
}

.t-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.t-step {
    text-align: center;
    padding: 48px 32px;
    background: var(--t-card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--t-card-border);
    border-radius: var(--t-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    position: relative;
}

.t-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(79, 70, 229, 0.08);
}

.t-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
    color: white;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.t-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--t-primary);
    opacity: 0.85;
}

.t-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--t-text);
}

.t-step p {
    font-size: 0.95rem;
    color: var(--t-text-secondary);
    line-height: 1.6;
}

/* --- DIFFERENTIATOR TABLE --- */
.t-diff-section {
    padding-bottom: var(--t-section-gap);
}

.t-diff-card {
    background: var(--t-card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--t-card-border);
    border-radius: var(--t-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: visible;
}

.t-diff-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--t-radius) var(--t-radius) 0 0;
    overflow: hidden;
}

.t-diff-header span {
    padding: 20px 32px;
}

.t-diff-header span:first-child {
    color: var(--t-text-tertiary);
    background: rgba(0, 0, 0, 0.02);
}

.t-diff-header span:last-child {
    color: var(--t-primary);
    background: rgba(79, 70, 229, 0.04);
}

.t-diff-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease;
    overflow: visible;
}

.t-diff-row:hover {
    background: rgba(99, 102, 241, 0.02);
}

.t-diff-row > span {
    padding: 20px 32px;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    overflow: visible;
    position: relative;
}

.t-diff-row > span:first-child {
    color: var(--t-text-tertiary);
    background: rgba(0, 0, 0, 0.01);
}

.t-diff-row > span:last-child {
    color: var(--t-text);
    font-weight: 500;
}

.t-diff-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.t-diff-icon.negative { color: #ef4444; }
.t-diff-icon.positive { color: #10b981; }

/* --- TECH DEEP DIVE --- */
.t-tech-section {
    padding-bottom: var(--t-section-gap);
}

.t-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.t-tech-card {
    padding: 40px 32px;
    background: var(--t-card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--t-card-border);
    border-radius: var(--t-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.t-tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(79, 70, 229, 0.08);
    border-color: rgba(99, 102, 241, 0.12);
}

.t-tech-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.06));
    border-radius: 16px;
    margin-bottom: 24px;
    color: var(--t-primary);
}

.t-tech-card-icon svg {
    width: 26px;
    height: 26px;
}

.t-tech-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--t-text);
}

.t-tech-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.t-tech-card li {
    font-size: 0.9rem;
    color: var(--t-text-secondary);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.t-tech-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--t-primary);
    border-radius: 50%;
    opacity: 0.6;
}

.t-tech-highlight {
    font-weight: 600;
    color: var(--t-primary);
}

/* --- PROGRESS BAR --- */
.t-progress-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.t-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.t-progress-labels span:first-child {
    color: var(--t-text-tertiary);
}

.t-progress-labels span:last-child {
    color: var(--t-primary);
    font-weight: 700;
}

.t-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.t-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--t-blue-light), var(--t-primary));
    border-radius: 8px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-progress-fill.animated {
    width: 95%;
}

.t-progress-baseline {
    position: absolute;
    left: 70%;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: var(--t-text-tertiary);
    opacity: 0.35;
    border-radius: 2px;
}

/* --- KEY FIGURES --- */
.t-figures-section {
    padding-bottom: var(--t-section-gap);
}

.t-figures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.t-figure {
    text-align: center;
    padding: 40px 20px;
    background: var(--t-card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--t-card-border);
    border-radius: var(--t-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.t-figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.06);
}

.t-figure-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--t-primary), var(--t-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.t-figure-label {
    font-size: 0.9rem;
    color: var(--t-text-secondary);
    font-weight: 500;
}

/* --- CTA SECTION --- */
.t-cta-section {
    padding-bottom: 100px;
    text-align: center;
}

.t-cta-card {
    padding: 80px 48px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(59, 130, 246, 0.04));
    border: 1px solid var(--t-border-subtle);
    border-radius: var(--t-radius);
    position: relative;
    overflow: hidden;
}

.t-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.t-cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
}

.t-cta-subtitle {
    font-size: 1.1rem;
    color: var(--t-text-secondary);
    margin-bottom: 36px;
    position: relative;
}

.t-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.t-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.3);
}

.t-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.4);
}

.t-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--t-border-subtle);
    color: var(--t-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.t-btn-secondary:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* --- FOOTER --- */
.t-footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--t-text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.t-footer p {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.t-footer a {
    color: var(--t-primary);
    text-decoration: none;
    font-weight: 500;
}

.t-footer-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    :root {
        --t-section-gap: 100px;
    }

    .t-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .t-tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .t-figures-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .t-hero-section {
        padding-top: 120px;
    }
}

/* Hamburger - hidden on desktop, shown by media query */
.t-hamburger {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --t-section-gap: 80px;
        --t-radius: 22px;
    }

    .t-nav {
        padding: 12px 20px;
    }

    /* Hamburger Button */
    .t-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        z-index: 200;
    }

    .t-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--t-text);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .t-hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .t-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .t-hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile Nav Links */
    .t-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .t-nav-links.open {
        max-height: 300px;
        padding: 16px 0;
    }

    .t-nav-links a {
        display: block !important;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    .t-nav-links a.t-nav-cta {
        margin: 8px 24px;
        width: auto;
        text-align: center;
    }

    /* Comparison table: icons inline with text */
    .t-diff-row > span {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 14px 14px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .t-diff-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .t-diff-header span {
        padding: 14px 14px;
        font-size: 0.75rem;
    }

    /* Tooltip: reposition for mobile viewport */
    .t-tooltip-content {
        left: auto;
        right: -20px;
        transform: translateY(10px);
        width: 250px;
    }

    .t-tooltip-wrapper:hover .t-tooltip-content {
        transform: translateY(0);
    }

    .t-tooltip-content::after {
        left: auto;
        right: 30px;
    }

    .t-step {
        padding: 32px 24px;
    }

    .t-tech-card {
        padding: 32px 24px;
    }

    .t-cta-card {
        padding: 48px 24px;
    }

    .t-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .t-figures-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .t-figure {
        padding: 28px 12px;
    }

    .t-figure-value {
        font-size: 2rem;
    }
}

/* Language Buttons */
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    color: #6b7280;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
}

.lang-btn.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.lang-btn:hover:not(.active) {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
}
