/* ============================================================
   SILOTENT DESIGN SYSTEM — PREMIUM v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800;900&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    /* Brand */
    --primary:        #10b981;
    --primary-dark:   #059669;
    --primary-light:  #34d399;
    --primary-glow:   rgba(16, 185, 129, 0.18);
    --primary-glow-lg:rgba(16, 185, 129, 0.32);
    --accent:         #6366f1;
    --accent-glow:    rgba(99, 102, 241, 0.18);

    /* Light Theme Surfaces */
    --bg:             #f8fafc;
    --bg-secondary:   #f1f5f9;
    --surface:        #ffffff;
    --surface-2:      #f1f5f9;
    --card-bg:        #ffffff;

    /* Text */
    --text-main:      #0f172a;
    --text-sub:       #334155;
    --text-muted:     #64748b;
    --text-faint:     #94a3b8;

    /* Borders */
    --border:         #e2e8f0;
    --border-hover:   #cbd5e1;

    /* Shadows */
    --shadow-xs:  0 1px 2px 0 rgba(0,0,0,.05);
    --shadow:     0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-md:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
    --shadow-lg:  0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.06);
    --shadow-glow:0 0 24px var(--primary-glow), 0 4px 12px rgba(0,0,0,.08);

    /* Glass */
    --glass-bg:   rgba(255,255,255,0.72);
    --glass-border:rgba(255,255,255,0.50);
    --glass-blur: blur(20px);

    /* Logo */
    --logo-bg:    #e11d48;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Radii */
    --radius-sm:  6px;
    --radius:     12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full:9999px;

    /* Transitions */
    --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration:   0.25s;
}

/* ── Dark Mode ──────────────────────────────────────────────── */
body.dark-mode {
    --bg:              #080e1a;
    --bg-secondary:    #0d1526;
    --surface:         #111c2d;
    --surface-2:       #162338;
    --card-bg:         #111c2d;

    --text-main:       #f1f5f9;
    --text-sub:        #cbd5e1;
    --text-muted:      #94a3b8;
    --text-faint:      #64748b;

    --border:          #1e3050;
    --border-hover:    #2d4a70;

    --shadow-xs:  0 1px 2px 0 rgba(0,0,0,.30);
    --shadow:     0 4px 6px -1px rgba(0,0,0,.40), 0 2px 4px -2px rgba(0,0,0,.25);
    --shadow-md:  0 10px 15px -3px rgba(0,0,0,.40), 0 4px 6px -4px rgba(0,0,0,.25);
    --shadow-lg:  0 20px 40px -8px rgba(0,0,0,.60), 0 8px 16px -4px rgba(0,0,0,.40);
    --shadow-glow:0 0 32px var(--primary-glow-lg), 0 4px 16px rgba(0,0,0,.40);

    --glass-bg:    rgba(10, 20, 40, 0.70);
    --glass-border:rgba(255,255,255,0.08);
    --primary-glow:    rgba(16, 185, 129, 0.22);
    --primary-glow-lg: rgba(16, 185, 129, 0.40);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Background Mesh ────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(16,185,129,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(99,102,241,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body.dark-mode::before {
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(16,185,129,0.09) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(99,102,241,0.08) 0%, transparent 60%);
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  HEADER                                                  ║
   ╚══════════════════════════════════════════════════════════╝ */
header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 5%;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-spring);
}
.logo img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: 6px;
}
.logo span { 
    color: var(--text-main); 
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo:hover { opacity: 0.88; transform: translateY(-1px); }

/* Header search */
.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.6rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-main);
    font-size: 0.875rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration), box-shadow var(--duration), background var(--duration);
}
.header-search input::placeholder { color: var(--text-faint); }
.header-search input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.header-search::before {
    content: "🔍";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0.45;
    pointer-events: none;
}

/* Nav */
nav { margin-left: auto; }
nav ul { display: flex; list-style: none; gap: 0.25rem; }
nav a {
    display: block;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--duration), background var(--duration);
}
nav a:hover { color: var(--text-main); background: var(--surface-2); }
nav a.active {
    color: var(--primary);
    background: var(--primary-glow);
    font-weight: 600;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    transition: background var(--duration), border-color var(--duration), transform var(--duration) var(--ease-spring);
}
.theme-toggle:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
    transform: rotate(12deg) scale(1.08);
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  MAIN LAYOUT                                             ║
   ╚══════════════════════════════════════════════════════════╝ */
main {
    padding: 3rem 5%;
    max-width: 1240px;
    margin: 0 auto;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  GENERIC HERO                                            ║
   ╚══════════════════════════════════════════════════════════╝ */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-sub) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  CLOCK HERO — Time homepage                              ║
   ╚══════════════════════════════════════════════════════════╝ */
.clock-hero-container {
    text-align: center;
    padding: 2.5rem 0 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Ambient glow behind the clock */
.clock-hero-container::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, 90vw);
    height: 260px;
    background: radial-gradient(ellipse, var(--primary-glow-lg) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-precision-msg {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.2;
}
.hero-precision-msg > span:first-child {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--text-main);
}
.hero-precision-details {
    display: block;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Live dot indicator */
.hero-precision-msg .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-dot 2s ease-in-out infinite;
    transform: translateY(-1px);
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--primary-glow); }
    50%       { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

/* The giant time display */
.clock-hero-time {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.04em;
    background: linear-gradient(
        160deg,
        var(--text-main) 0%,
        var(--primary)   60%,
        var(--primary-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 48px var(--primary-glow-lg));
    transition: filter 0.6s var(--ease-out);
}

.clock-hero-date {
    position: relative;
    z-index: 1;
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--text-sub);
    margin-top: 1.25rem;
    letter-spacing: 0.01em;
}

.clock-hero-sun {
    position: relative;
    z-index: 1;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.clock-hero-sun::before { content: '☀️'; font-size: 0.9rem; }

/* City / Timezone detection badge */
.page-meta {
    position: relative;
    z-index: 1;
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
}
.page-meta #userCityDisplay {
    color: var(--primary);
    font-weight: 700;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  COMPARISON BAR                                          ║
   ╚══════════════════════════════════════════════════════════╝ */
.comparison-bar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    width: 100%;
}

.comp-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 110px;
    transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration) var(--ease-spring);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    /* Reset anchor tag styles when used as <a> */
    color: inherit;
    text-decoration: none;
}
.comp-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}
.comp-item strong {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.comp-item .comp-time {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Live indicator dot */
.comp-item::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 2px;
    opacity: 0.7;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  CITY CLOUD                                              ║
   ╚══════════════════════════════════════════════════════════╝ */
.city-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 8px 16px;
    padding: 2.5rem 1rem;
    margin-top: 2rem;
    position: relative;
}

.cloud-city {
    color: var(--text-sub);
    text-decoration: none;
    line-height: 1;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: color var(--duration), background var(--duration), border-color var(--duration), transform var(--duration) var(--ease-spring);
    display: inline-block;
}
.cloud-city:hover {
    color: var(--primary);
    background: var(--primary-glow);
    border-color: var(--primary-light);
    transform: scale(1.06);
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  SECTION LABEL                                           ║
   ╚══════════════════════════════════════════════════════════╝ */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.section-label h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  GRID & CARDS                                            ║
   ╚══════════════════════════════════════════════════════════╝ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform var(--duration) var(--ease-spring),
        border-color var(--duration),
        box-shadow var(--duration);
}

/* Subtle top accent line */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--duration);
}
.card:hover::before { opacity: 1; }

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.card .icon {
    font-size: 2rem;
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}
.card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.card .card-arrow {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--duration);
}
.card:hover .card-arrow { gap: 0.6rem; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  GLASSMORPHISM CARD VARIANT                              ║
   ╚══════════════════════════════════════════════════════════╝ */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-color: var(--glass-border);
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  PRECISION / INFO BANNERS                                ║
   ╚══════════════════════════════════════════════════════════╝ */
.user-context-banner {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid #a7f3d0;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}
body.dark-mode .user-context-banner {
    background: linear-gradient(135deg, #052e16, #064e3b);
    color: #a7f3d0;
    border-color: #065f46;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  TABLES                                                  ║
   ╚══════════════════════════════════════════════════════════╝ */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.comparison-table th,
.comparison-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.comparison-table th {
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--surface-2); }

/* ╔══════════════════════════════════════════════════════════╗
   ║  BREADCRUMB                                              ║
   ╚══════════════════════════════════════════════════════════╝ */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--duration);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-main); font-weight: 500; }

/* Separator auto-inject */
.breadcrumb a::after { content: ' /'; opacity: 0.4; margin-left: 0.5rem; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  CLOCK DISPLAY (sub-pages)                               ║
   ╚══════════════════════════════════════════════════════════╝ */
.clock-display {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}
.clock-large {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.04em;
}
.period-large {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  FORM ELEMENTS                                           ║
   ╚══════════════════════════════════════════════════════════╝ */
select,
input[type="text"],
input[type="number"] {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration), box-shadow var(--duration);
}
select:focus,
input[type="text"]:focus,
input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform var(--duration) var(--ease-spring), box-shadow var(--duration), opacity var(--duration);
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow-lg);
}
.btn-launch { /* legacy alias */
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: opacity var(--duration), transform var(--duration) var(--ease-spring);
}
.btn-launch:hover { opacity: 0.88; transform: translateY(-2px); }

/* Filter buttons */
.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-body);
    transition: border-color var(--duration), color var(--duration), background var(--duration);
}
.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

/* select group utility */
.select-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Compare launcher */
.compare-launcher {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  FOOTER                                                  ║
   ╚══════════════════════════════════════════════════════════╝ */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
    margin-top: 6rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    max-width: 1240px;
    margin: 0 auto 3rem;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-brand .logo { align-self: flex-start; font-size: 0.95rem; }
.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 240px;
}

.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--duration);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); transition: color var(--duration); }
.footer-bottom a:hover { color: var(--primary); }

/* ── Precision badge (legacy hide) */
.precision-badge { display: none; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  ANIMATIONS                                              ║
   ╚══════════════════════════════════════════════════════════╝ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes colon-blink {
    0%, 45%  { opacity: 1; }
    50%, 95% { opacity: 0.2; }
    100%     { opacity: 1; }
}

.animate-up   { animation: fadeUp 0.6s var(--ease-out) both; }
.animate-in   { animation: fadeIn 0.5s var(--ease-out) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  COMPARISON PICKER ENGINE                                ║
   ╚══════════════════════════════════════════════════════════╝ */
.picker-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.picker-card {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration) var(--ease-spring), border-color var(--duration);
    position: relative;
}

.picker-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.picker-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.picker-search-container {
    position: relative;
    width: 100%;
}

.picker-search-input {
    width: 100%;
    background: var(--surface-2) !important;
    padding-right: 2.5rem !important;
}

.picker-search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    pointer-events: none;
}

/* Autocomplete Results */
.picker-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    display: none; /* Show via JS */
}

.picker-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--duration);
}
.picker-result-item:hover {
    background: var(--surface-2);
}
.picker-result-item .city-name {
    font-weight: 600;
    color: var(--text-main);
}
.picker-result-item .country-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Selected City Preview */
.picker-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
    text-align: center;
    background: var(--primary-glow);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: none; /* Show via JS */
}

.preview-city {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}
.preview-time {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.04em;
    margin: 0.5rem 0;
}
.preview-meta {
    font-size: 0.85rem;
    color: var(--text-sub);
}

/* The Gap Indicator */
.picker-gap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-width: 100px;
    gap: 0.5rem;
    padding-top: 3rem;
}
.gap-vs {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-faint);
}
.gap-badge {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}
.gap-badge.visible { opacity: 1; }

.picker-actions {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

/* Top Comparisons Grid */
.top-comparisons-section { margin-top: 6rem; }
.top-comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.top-comp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform var(--duration), border-color var(--duration);
}
.top-comp-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}
.top-comp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.top-comp-names {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}
.top-comp-badge {
    font-size: 0.7rem;
    background: var(--primary-glow);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--primary);
}
.top-comp-times {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-sub);
}

@media (max-width: 800px) {
    .picker-gap {
        padding-top: 0;
        width: 100%;
        flex-direction: row;
    }
    .picker-card { min-width: 100%; }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  UTILITY CLASSES                                         ║
   ╚══════════════════════════════════════════════════════════╝ */

.text-primary { color: var(--primary); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-5 { padding: 2.5rem; }

/* ── Tool Specific ── */
.tool-hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding: 2rem 0;
}
.tool-hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 90vw);
    height: 300px;
    background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}
.tool-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .grid-2-col { grid-template-columns: 1fr; }
}

.list-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-result-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform var(--duration) var(--ease-spring), border-color var(--duration), background var(--duration);
}
.tool-result-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    background: var(--surface);
}
.tool-result-item .result-city {
    display: flex;
    flex-direction: column;
}
.tool-result-item .result-city strong {
    font-size: 1.2rem;
    color: var(--text-main);
}
.tool-result-item .result-city span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.tool-result-item .result-time {
    text-align: right;
}
.tool-result-item .time-main {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.tool-result-item .time-meta {
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 600;
}

.remove-btn {
    background: transparent;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background var(--duration), color var(--duration);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}
.remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ── Meeting Planner Timeline ── */
.planner-container {
    margin-top: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.planner-city-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.city-info {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface-2);
    border-right: 1px solid var(--border);
}

.timeline-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    min-width: 800px;
    min-height: 50px;
}

/* Mobile First Responsiveness */
@media (max-width: 768px) {
    .planner-city-row {
        grid-template-columns: 1fr;
        min-width: unset;
    }
    .city-info {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 1.25rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .city-info span { margin-left: 0.5rem; }
}

.hour-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-right: 1px solid rgba(0,0,0,0.03);
}
body.dark-mode .hour-block { border-right-color: rgba(255,255,255,0.03); }

.hour-block.good { background: #10b981; color: #fff; box-shadow: inset 0 0 10px rgba(0,0,0,0.1); }
.hour-block.fair { background: #facc15; color: #854d0e; box-shadow: inset 0 0 10px rgba(0,0,0,0.05); }
.hour-block.bad  { background: var(--surface); color: var(--text-faint); }

.hour-block .htime { font-size: 0.85rem; }
.hour-block .hlabel { font-size: 0.65rem; opacity: 0.8; }

.best-time-banner {
    background: linear-gradient(90deg, var(--primary-glow), transparent);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── Time Difference Hero ── */
.diff-hero-result {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.diff-hero-result::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.3;
    pointer-events: none;
}

.diff-value-big {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 8.5rem);
    font-weight: 950;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.05em;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.diff-label-desc {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 1rem;
}

.diff-compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-top: 3rem;
}

.city-time-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}
.city-time-card strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}
.city-time-card .time {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-main);
}
.city-time-card .date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.diff-connector {
    font-size: 2rem;
    color: var(--text-faint);
    position: relative;
    padding-bottom: 1rem;
}

@media (max-width: 640px) {
    .diff-compare-grid { grid-template-columns: 1fr; }
    .diff-connector { transform: rotate(90deg); padding: 0.5rem; margin: 1rem 0; }
}

/* ── Countdown Displays ── */
.timer-display {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.timer-unit {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    min-width: 130px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration) var(--ease-spring), border-color var(--duration);
}
.timer-unit:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.timer-unit::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--primary);
    opacity: 0.3;
}

.timer-value {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    display: block;
}
.timer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: var(--text-muted);
    margin-top: 0.75rem;
    display: block;
}

.event-title-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 640px) {
    .timer-display { gap: 0.75rem; }
    .timer-unit { min-width: 45%; padding: 1rem; }
    .timer-value { font-size: 2.5rem; }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  RESPONSIVE                                              ║
   ╚══════════════════════════════════════════════════════════╝ */
@media (max-width: 900px) {
    header { height: auto; padding: 0.75rem 4%; flex-wrap: wrap; gap: 0.75rem; }
    .header-search { order: 3; max-width: 100%; flex-basis: 100%; margin: 0; }
    nav { margin-left: 0; }
    main { padding: 2rem 4%; }
}

@media (max-width: 640px) {
    .clock-hero-time { font-size: clamp(4.5rem, 22vw, 7rem); }
    .clock-hero-date { font-size: 1rem; }
    .comparison-bar { gap: 0.5rem; }
    .comp-item { min-width: 90px; padding: 0.6rem 0.9rem; }
    .comp-item .comp-time { font-size: 1.1rem; }
    .card { padding: 1.25rem; }
    .clock-large { font-size: 3rem; }
    footer { padding: 3rem 4% 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  BLOG STYLE ARTICLE CONTENT                              ║
   ╚══════════════════════════════════════════════════════════╝ */
.blog-article {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--text-sub);
}
.blog-article h3 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}
.blog-article p {
    margin-bottom: 1.75rem;
}
.blog-first-p {
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1.75;
}
.blog-first-p::first-letter {
    font-family: var(--font-heading);
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-top: 0.2rem;
    padding-right: 0.5rem;
    padding-left: 0.1rem;
    font-weight: 900;
    color: var(--primary);
}

.blog-aside {
    float: right;
    width: 320px;
    margin: 0.5rem 0 1.5rem 2.5rem;
    background: var(--surface-2);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    line-height: 1.6;
}
.blog-aside h3 {
    margin-top: 0 !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
}
.blog-aside ul {
    list-style: none;
    margin-bottom: 1rem;
}
.blog-aside li {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.25rem;
}
.blog-aside li strong {
    color: var(--text-main);
}
@media (max-width: 850px) {
    .blog-aside {
        float: none;
        width: 100%;
        margin: 2rem 0;
        border-radius: var(--radius);
        border-left: none;
        border-top: 4px solid var(--primary);
    }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  FAQ DROPDOWN ACCORDION                                  ║
   ╚══════════════════════════════════════════════════════════╝ */
details.faq-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: background var(--duration), box-shadow var(--duration);
}
details.faq-item:hover {
    background: var(--surface);
    box-shadow: var(--shadow);
}
details.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
details.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default arrow in Safari/Chrome */
}
details.faq-item summary h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    flex: 1;
}
/* Custom dropdown icon */
details.faq-item summary::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease-spring);
    margin-left: 1rem;
}
details[open].faq-item summary::after {
    transform: rotate(180deg);
}
details.faq-item p {
    padding: 0 1.5rem 1.25rem;
    margin: 0;
    color: var(--text-sub);
    line-height: 1.6;
}

/* ── Premium Hero Backgrounds (Deprecated) ─────────────────── */
/* Cityscape image headers were removed in v2.1 to favor the high-precision gradient clock aesthetic. */

/* ╔══════════════════════════════════════════════════════════╗
   ║  COLLABORATION & DATA MODULES (SEO v2.0)                 ║
   ╚══════════════════════════════════════════════════════════╝ */

/* Collaboration Pill Badges */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.collab-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}
.collab-status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.status-yes { background: #d1fae5; color: #065f46; }
.status-maybe { background: #fef3c7; color: #92400e; }
.status-no { background: #fee2e2; color: #991b1b; }

body.dark-mode .status-yes { background: #064e3b; color: #a7f3d0; }
body.dark-mode .status-maybe { background: #78350f; color: #fde68a; }
body.dark-mode .status-no { background: #7f1d1d; color: #fecaca; }

/* Enhanced Overlap Table */
.overlap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}
.overlap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}
.overlap-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}
.overlap-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.overlap-table tr:last-child td { border-bottom: none; }
.overlap-hours {
    display: inline-block;
    background: var(--primary-glow);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
}

/* Premium CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin: 4rem 0;
    box-shadow: 0 20px 40px var(--primary-glow-lg);
}
.cta-box h3 { color: #fff; font-size: 1.75rem; margin-bottom: 1rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; font-size: 1.1rem; }
.btn-white {
    background: #fff;
    color: var(--primary);
    padding: 0.9rem 2.5rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* Related Links Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.related-link {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out);
    text-align: center;
}
.related-link:hover {
    border-color: var(--primary);
    background: var(--surface);
    color: var(--primary);
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

/* Collaboration Intelligence */
.collab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}
.collab-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.collab-score {
    background: var(--primary);
    color: white;
    padding: 0.1rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.hero-direct-answer {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-direct-answer strong {
    color: var(--primary);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes colon-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.1; }
}

.colon {
    font-weight: 500;
    margin: 0 0.05em;
    animation: colon-blink 1s step-end infinite;
}
