/* ═══════════════════════════════════════════════════════════════════════ */
/* APPLE DESIGN SYSTEM - PURE & MINIMAL */
/* ═══════════════════════════════════════════════════════════════════════ */

:root {
    --bg-body: #ffffff;
    --bg-secondary: #f5f5f7;
    /* Apple gray */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0066cc;
    /* Link blue */
    --hairline: rgba(0, 0, 0, 0.1);
    --radius-l: 18px;
    --radius-m: 12px;
    --container-max: 980px;
    /* Classic Apple container width */
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 0.5em;
    letter-spacing: -0.003em;
}

.t-hero {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.t-headline {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
}

.t-title {
    font-size: 28px;
    line-height: 1.125;
    font-weight: 600;
}

.t-body {
    font-size: 19px;
    line-height: 1.4211;
    font-weight: 400;
    color: var(--text-primary);
}

.t-caption {
    font-size: 14px;
    line-height: 1.33337;
    font-weight: 600;
    color: var(--text-secondary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-blue {
    color: var(--accent-blue);
}

.text-primary {
    color: var(--text-primary);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* UTILITIES */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--hairline);
}

.section:last-child {
    border-bottom: none;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.grid {
    display: grid;
    gap: 40px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.span-full {
    grid-column: 1 / -1;
}

.span-2 {
    grid-column: span 2;
}

/* COMPONENTS */

/* Navbar */
.nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
    height: 48px;
    font-size: 12px;
}

.nav-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    text-decoration: none;
}

/* Cards (Apple Style) */
.card {
    background: #fff;
    border-radius: var(--radius-l);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
}

/* Secondary bg cards */
.card-gray {
    background: var(--bg-secondary);
    padding: 24px;
}

.card:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 980px;
    /* Pill */
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #0077ed;
    text-decoration: none;
}

.btn-outline {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PRO FEATURES: WOW SECTIONS, TIMELINE, INFOGRAPHICS */
/* ═══════════════════════════════════════════════════════════════════════ */

/* FEATURE SECTIONS (Apple Product Page Style) */
.feature-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
}

.feature-hero {
    margin-bottom: 80px;
    max-width: 800px;
}

.feature-visual {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px;
    margin: 30px 0;
    position: relative;
    min-height: 200px;
    /* Reduced from 400px */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* Allowed for tooltips to pop out */
}

/* WOW: Kiara Pulse Animation */
.pulse-graph {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    margin-bottom: 20px;
}

.pulse-bar {
    width: 12px;
    background: #d2d2d7;
    border-radius: 4px;
    transition: height 0.2s ease;
    height: 20%;
}

.pulse-bar.active {
    background: var(--accent-blue);
    height: 80% !important;
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.4);
}

/* WOW: M2 Flow Diagram */
.flow-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.flow-box {
    padding: 24px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Float effect */
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-arrow {
    width: 60px;
    height: 2px;
    background: #d2d2d7;
    position: relative;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -5px;
    border: 6px solid transparent;
    border-left-color: #d2d2d7;
    width: 0;
    height: 0;
}

/* SCHEMATIC & TOOLTIPS (MIM-2) */
.schematic-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.schematic-box {
    padding: 16px 24px;
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

.schematic-box:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.15);
}

.info-icon {
    width: 20px;
    height: 20px;
    background: #e5e5ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: help;
    transition: all 0.2s;
}

.info-icon:hover {
    background: var(--accent-blue);
    color: white;
}

/* Tooltip Logic */
.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 200px;
    background: #1d1d1f;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
}

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

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

.schematic-line {
    height: 2px;
    width: 60px;
    background: #d2d2d7;
    border-top: 2px dashed #d2d2d7;
    /* Dashed style */
    background: none;
    margin-top: -30px;
    /* Align with center of boxes */
    position: relative;
    z-index: 1;
}

/* TIMELINE (Experience) */
.timeline {
    position: relative;
    padding-left: 50px;
    margin-top: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: var(--bg-secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
}

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 6px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--accent-blue);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px white;
    /* Spacing */
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* STATS CIRCLE (Apple Fitness style) */
.stat-circle-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
}

.stat-circle-svg {
    transform: rotate(-90deg);
}

.stat-circle-circle {
    fill: none;
    stroke: #e5e5ea;
    stroke-width: 10;
}

.stat-circle-value {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 10;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    /* Start hidden */
    stroke-linecap: round;
    transition: stroke-dashoffset 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible .stat-circle-value {
    stroke-dashoffset: 44;
    /* 90% filled */
}

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

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

/* ═══════════════════════════════════════════════════════════════════════ */
/* DEVICE MOCKUPS */
/* ═══════════════════════════════════════════════════════════════════════ */

.device-wrapper {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-desktop {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 600px;
    /* Base width */
    max-width: 100%;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.device-desktop:hover,
.device-iphone:hover {
    transform: scale(1.02);
}

.device-iphone {
    position: absolute;
    bottom: -20px;
    right: -20px;
    /* Float on right side */
    width: 180px;
    z-index: 2;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 6px solid #1d1d1f;
    /* Bezel */
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Theme Glows for Devices */
.theme-mim .device-desktop {
    box-shadow: 0 30px 60px rgba(0, 113, 227, 0.2);
}

.theme-smieci .device-desktop {
    box-shadow: 0 30px 60px rgba(48, 209, 88, 0.2);
}

/* Glow Text Animation */
.t-glow {
    background: linear-gradient(90deg, #0071e3, #bf5af2, #30d158, #0071e3);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    font-weight: 700;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PROJECT THEMES (Unique Identity) */
/* ═══════════════════════════════════════════════════════════════════════ */

/* KIARA: Purple/Pink (Hardware/Magic) */
.theme-kiara .t-caption.text-blue {
    color: #bf5af2;
}

.theme-kiara i {
    color: #bf5af2;
}

.theme-kiara .pulse-bar.active {
    background: #bf5af2;
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.4);
}

.theme-kiara-border {
    border-left-color: #bf5af2 !important;
}

/* MIM-2: Cyan/Blue (Enterprise/Clean) */
.theme-mim .t-caption.text-blue {
    color: #0071e3;
}

.theme-mim i {
    color: #0071e3;
}

.theme-mim .flow-box {
    border-color: #0071e3 !important;
}

.theme-mim-border {
    border-left-color: #0071e3 !important;
}

/* SMIECI: Green/Yellow (Eco/Public) */
.theme-smieci .t-caption.text-blue {
    color: #30d158;
}

.theme-smieci i {
    color: #30d158;
}

.theme-smieci-border {
    border-left-color: #30d158 !important;
}

/* Marker Element (Multi-color Strip) */
.project-marker {
    width: 60px;
    height: 6px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.marker-kiara {
    background: linear-gradient(90deg, #bf5af2, #ff375f);
}

.marker-mim {
    background: linear-gradient(90deg, #0071e3, #5ac8fa);
}

.marker-smieci {
    background: linear-gradient(90deg, #30d158, #ffd60a);
}

/* FANCY BADGES (Purchase) */
.badge-buy {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 6px 6px 6px 16px;
    border-radius: 99px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    transition: transform 0.3s ease;
}

.badge-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.badge-buy:hover .badge-icon {
    transform: rotate(-10deg) scale(1.1);
}

/* Theme Colors for Badges */
.theme-mim-badge .badge-icon {
    background: linear-gradient(135deg, #0071e3, #5ac8fa);
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

.theme-smieci-badge .badge-icon {
    background: linear-gradient(135deg, #30d158, #ffd60a);
    box-shadow: 0 4px 10px rgba(48, 209, 88, 0.3);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .t-hero {
        font-size: 48px;
    }

    .t-headline {
        font-size: 34px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .span-full,
    .span-2 {
        grid-column: auto;
        /* Reset specifically for mobile */
    }

    .nav-links {
        display: none;
    }

    .pulse-graph {
        height: 100px;
        gap: 4px;
    }

    .flow-container {
        flex-direction: column;
        gap: 20px;
    }

    .flow-arrow {
        width: 2px;
        height: 30px;
        transform: rotate(90deg);
    }

    .device-wrapper {
        transform: scale(0.8);
        margin: -20px 0;
    }

    .device-iphone {
        right: -10px !important;
        bottom: -20px !important;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -39px;
    }
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
    transform: scale(1);
}

@media (prefers-color-scheme: dark) {
    /* Optional: if user system is dark, but our page is light, we normally stay light. 
       But lightbox specifically could be dark/dimmed. 
       Let's stick to the glass style (white semi-transparent) for Apple feel on this light-themed site. */
}

@media print {
    .no-print {
        display: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .glass {
        border: 1px solid #ddd !important;
        background: none !important;
        box-shadow: none !important;
    }

    .feature-visual {
        border: 1px solid #ddd;
        padding: 20px;
        min-height: auto;
        width: 100% !important;
    }

    .btn {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* QUOTE TIMER */
/* ═══════════════════════════════════════════════════════════════════════ */

.quote-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6px;
    /* Align with first line of text */
}

.quote-timer svg {
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--hairline);
    stroke-width: 2;
}

.timer-progress {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 2;
    stroke-dasharray: 63;
    /* 2 * PI * 10 approx */
    stroke-dashoffset: 0;
    stroke-linecap: round;
}

/* Animation Class applied by JS */
.timer-animating {
    animation: countdown 10s linear forwards;
}

@keyframes countdown {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 63;
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* HERO PORTRAIT (Refined) */
/* ═══════════════════════════════════════════════════════════════════════ */

.hero-portrait-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    top: 20%;
    /* Don't glow too high up */
    left: 10%;
    right: 10%;
    bottom: 5%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.4), rgba(191, 90, 242, 0.4));
    filter: blur(50px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.hero-portrait-img {
    position: relative;
    z-index: 1;
    width: 100%;
    /* border-radius: 24px;  REMOVED strict border radius to allow blending */
    /* Blend bottom into white background */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    transition: transform 0.5s ease;
    border-radius: 24px 24px 0 0;
    /* Top rounded only */
}

/* Hover Interaction */
.hero-portrait-container:hover .hero-portrait-img {
    transform: scale(1.02) translateY(-5px);
}

.hero-portrait-container:hover .hero-glow {
    opacity: 0.8;
    filter: blur(60px);
    transform: scale(1.05);
}
/* ═══════════════════════════════════════════════════════════════════════ */
/* MODALS (DEEP DIVE) */
/* ═══════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.modal-overlay.active {
    opacity: 1; 
    pointer-events: auto;
}

.modal-window {
    background: white;
    width: 90%; 
    max-width: 800px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 0;
}

.modal-overlay.active .modal-window {
    transform: scale(1) translateY(0);
}

.modal-header {
    position: sticky; 
    top: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-bottom: 1px solid var(--hairline);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 10;
}

.modal-body {
    padding: 40px;
}

.modal-close {
    background: #e5e5ea;
    border: none;
    width: 32px; 
    height: 32px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-secondary);
}

.modal-close:hover { 
    background: #d1d1d6; 
    color: var(--text-primary);
}

/* Modal Content Styles */
.specs-table {
    width: 100%; 
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td {
    padding: 16px 0; 
    border-bottom: 1px solid var(--hairline);
    font-size: 15px; 
    color: var(--text-secondary);
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 600; 
    color: var(--text-primary); 
    width: 35%;
}

.tech-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 6px;
    margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PHASE 3 VISUALS: ORBITAL GRID & ENTERPRISE */
/* ═══════════════════════════════════════════════════════════════════════ */

/* KIARA ORBITAL GRID BACKGROUND */
.theme-kiara {
    position: relative;
    background: #0a0a0f !important; /* Dark Cyberpunk BG */
    color: #e8eaed !important;
}

/* Override text colors for dark mode context in Kiara section */
.theme-kiara .t-headline { color: white !important; }
.theme-kiara .t-body { color: #9aa0a6 !important; }
.theme-kiara .t-title { color: white !important; }
.theme-kiara .card { 
    background: #12121a !important; 
    border: 1px solid #2a2a3a;
}
.theme-kiara .card .t-body { color: #9aa0a6 !important; }
.theme-kiara .card .t-caption { color: #5f6368 !important; }
.theme-kiara .pulse-bar { background: #2a2a3a; }

/* The Grid Overlay */
.theme-kiara::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(191, 90, 242, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(191, 90, 242, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Gradient Orbs for Kiara */
.theme-kiara::after {
    content: '';
    position: absolute;
    right: -100px; top: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.1), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above grid */
.theme-kiara .container {
    position: relative;
    z-index: 1;
}


/* SMIECI ENTERPRISE THEME (Forest Green) */
.theme-smieci-btn {
    border-color: #30d158;
    color: #30d158;
}
.theme-smieci-btn:hover {
    background: #30d158;
    color: white;
}

/* MIM CRM THEME (Corporate Blue) */
.theme-mim-btn {
    border-color: #0071e3;
    color: #0071e3;
}
.theme-mim-btn:hover {
    background: #0071e3;
    color: white;
}

/* KIARA BUTTON (Cyberpunk Purple) */
.theme-kiara-btn {
    border-color: #bf5af2;
    color: #bf5af2;
}
.theme-kiara-btn:hover {
    background: #bf5af2;
    color: white;
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.4);
}


/* ═══════════════════════════════════════════════════════════════════════ */
/* PHASE 4: UI POLISH (PIXEL PERFECT MODALS) */
/* ═══════════════════════════════════════════════════════════════════════ */

/* GLOBAL MODAL IMPROVEMENTS */
.modal-window {
    box-shadow: 0 50px 100px rgba(0,0,0,0.3); /* Deeper shadow */
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
}

.modal-header {
    padding: 24px 32px; /* More breathing room */
}

.modal-body {
    padding: 32px;
}

.specs-table {
    margin-top: 24px;
}

.specs-table td {
    padding: 14px 16px; /* Better cell spacing */
}

.specs-table tr:nth-child(even) td {
    background: rgba(0,0,0,0.02); /* Zebra striping for readability */
    border-radius: 8px; /* Rounded strips */
}

.specs-table tr td {
    border-bottom: none !important; /* Remove lines, use zebra */
}

/* BUTTON REFINEMENT */
.btn {
    font-weight: 600; /* Bolder text */
    letter-spacing: -0.01em;
}

/* KIARA MODAL (DARK THEME - CYBERPUNK) */
#modal-kiara .modal-window {
    background: #12121a;
    color: #e8eaed;
    border: 1px solid #2a2a3a;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
}

#modal-kiara .modal-header {
    background: rgba(18, 18, 26, 0.95);
    border-bottom: 1px solid #2a2a3a;
}

#modal-kiara .t-title { color: white !important; }
#modal-kiara .text-secondary { color: #9aa0a6 !important; }
#modal-kiara .modal-close {
    background: #2a2a3a;
    color: white;
}
#modal-kiara .modal-close:hover {
    background: #bf5af2;
    color: white;
}
#modal-kiara .specs-table tr:nth-child(even) td {
    background: rgba(255,255,255,0.03);
}
#modal-kiara .specs-table td:first-child {
    color: #bf5af2; /* Purple labels */
}
#modal-kiara .tech-tag {
    background: rgba(191, 90, 242, 0.1);
    color: #bf5af2;
    border: 1px solid rgba(191, 90, 242, 0.2);
}

/* MIM MODAL (BLUE ACCENTS - CLEAN BUSINESS) */
#modal-mim .modal-header {
    border-bottom: 2px solid #0071e3;
}
#modal-mim .t-title { color: #0071e3; }
#modal-mim .specs-table td:first-child {
    color: #0071e3;
    font-weight: 700;
}
#modal-mim .tech-tag {
    background: rgba(0, 113, 227, 0.08);
    color: #0071e3;
    border: 1px solid rgba(0, 113, 227, 0.1);
}

/* SMIECI MODAL (GREEN ACCENTS - ECO GOV) */
#modal-smieci .modal-header {
    border-bottom: 2px solid #30d158;
}
#modal-smieci .t-title { color: #30d158; }
#modal-smieci .specs-table td:first-child {
    color: #248a3d; /* Darker green for text readability */
    font-weight: 700;
}
#modal-smieci .tech-tag {
    background: rgba(48, 209, 88, 0.1);
    color: #248a3d;
    border: 1px solid rgba(48, 209, 88, 0.2);
}
#modal-smieci .card-gray {
    background: #f2faf5; /* Subtle green tint */
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PHASE 5: PREMIUM VISUAL OVERHAUL (FIXING "UGLY" UI) */
/* ═══════════════════════════════════════════════════════════════════════ */

/* 1. BUTTONS REDESIGN (MODERN PILLS) */
.btn {
    border: none !important; /* Reset borders */
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 14px 28px;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); /* Subtle inner border */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    color: white !important;
}

.btn:active {
    transform: scale(0.98);
}

/* Kiara Button (Cyberpunk Glow) */
.theme-kiara-btn {
    background: rgba(191, 90, 242, 0.1);
    color: #bf5af2 !important;
    box-shadow: inset 0 0 0 1px rgba(191, 90, 242, 0.3);
}

.theme-kiara-btn:hover {
    background: #bf5af2;
    box-shadow: 0 0 30px rgba(191, 90, 242, 0.5);
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* MIM Button (Corporate Fade) */
.theme-mim-btn {
    background: rgba(0, 113, 227, 0.08);
    color: #0071e3 !important;
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.2);
}

.theme-mim-btn:hover {
    background: #0071e3;
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.3);
}

/* Smieci Button (Eco Fade) */
.theme-smieci-btn {
    background: rgba(48, 209, 88, 0.1);
    color: #248a3d !important;
    box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.2);
}

.theme-smieci-btn:hover {
    background: #30d158;
    box-shadow: 0 8px 25px rgba(48, 209, 88, 0.3);
}


/* 2. MODALS REDESIGN (CLEANER, SOFTER) */
.modal-window {
    border-radius: 32px; /* iOS style */
    box-shadow: 0 40px 120px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.8); /* Glass edge */
}

.modal-header {
    background: rgba(255,255,255,0.95);
    padding: 30px 40px 20px;
    border-bottom: none; /* Removed harsh line */
}

.modal-header .t-title {
    font-size: 32px; /* Bigger headlines */
    letter-spacing: -0.02em;
}

.modal-close {
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 40px 50px; /* More bottom space */
}

/* Table Clean Up */
.specs-table {
    margin-top: 30px;
}

.specs-table tr td {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

.specs-table tr:last-child td {
    border-bottom: none !important;
}

.specs-table tr:nth-child(even) td {
    background: transparent !important; /* Remove zebra, it looked cheap */
}

.specs-table td:first-child {
    width: 40%;
    padding-right: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.specs-table td:last-child {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
}


/* 3. KIARA MODAL SPECIFIC (TRUE DARK) */
#modal-kiara .modal-window {
    background: #0f0f13;
    border: 1px solid #333;
    box-shadow: 0 40px 120px black;
}

#modal-kiara .modal-header {
    background: rgba(15, 15, 19, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#modal-kiara .specs-table td {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

#modal-kiara .specs-table td:last-child {
    color: #e8eaed;
}

#modal-kiara .modal-close {
    background: rgba(255,255,255,0.1);
    color: white;
}

#modal-kiara .modal-close:hover {
    background: #bf5af2;
}

/* Tech Tags Improvement */
.tech-tag {
    padding: 6px 14px;
    border-radius: 20px; /* Pill tags */
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: none;
    font-weight: 600;
}

/* Kiara Tags */
#modal-kiara .tech-tag {
    background: #1f1f2e;
    color: #e0e0e0;
    border: 1px solid #333;
}

/* MIM Tags */
#modal-mim .tech-tag {
    background: #f0f7ff;
    color: #0071e3;
}

/* Smieci Tags */
#modal-smieci .tech-tag {
    background: #f2faf5;
    color: #248a3d;
}


/* ═══════════════════════════════════════════════════════════════════════ */
/* PHASE 7: RICH TIMELINE ITEMS */
/* ═══════════════════════════════════════════════════════════════════════ */

.timeline-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .timeline-features {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-item i {
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timeline-item.highlight {
    background: linear-gradient(to right, rgba(0, 113, 227, 0.03), transparent);
    padding: 24px;
    border-radius: 16px;
    margin-left: -24px; /* Compensate padding for alignment */
    border-left: 2px solid var(--accent-blue);
}

/* Adjust marker for highlight items */
.timeline-item.highlight .timeline-marker {
    left: -26px; /* -48px (base) + 24px (padding compensation) roughly... actually let's calculate */
    /* Base marker is at -48px from content start. 
       If we add padding left 24px, the content moves right 24px.
       So relative to content, marker is now at -48 - 24 = -72px? 
       No, absolute calc. Let's keep it simple. */
    display: none; /* Hide default marker, use border */
}

/* Better logic: Keep structure simple, just add inner feature list */
