:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(22, 27, 34, 0.75);
    --card-hover-bg: rgba(30, 38, 48, 0.85);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(56, 189, 248, 0.35);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-blue: #38bdf8;
    --accent-indigo: #818cf8;
    --accent-emerald: #34d399;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.25rem;
    overflow-x: hidden;
}

/* Ambient glow backgrounds */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(129, 140, 248, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(52, 211, 153, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1120px;
    width: 100%;
}

/* Top Notification Banner for Trial */
.trial-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 2.5rem;
    font-size: 0.88rem;
    color: #bae6fd;
}

.trial-banner a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600;
}

.trial-banner a:hover {
    color: #ffffff;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Featured Spotlight: Cantioli Observatory Banner */
.observatory-spotlight {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.spotlight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.spotlight-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spotlight-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.spotlight-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.spotlight-title p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.spotlight-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.sub-telemetry-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.sub-telemetry-pill:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    color: #fbbf24;
}

.pill-info {
    display: flex;
    flex-direction: column;
}

.pill-name {
    font-size: 0.92rem;
    font-weight: 600;
}

.pill-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sub-telemetry-pill:hover .pill-sub {
    color: #fcd34d;
}

/* Grid Layout for Wares */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}

.section-heading h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--card-hover-bg);
    border-color: var(--card-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-live {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-sky {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-marine {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.badge-solar {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-radio {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-iot {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-dev {
    background: rgba(156, 163, 175, 0.15);
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Card Icons */
.card-logo {
    width: 68px;
    height: 68px;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-sky {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: #ffffff;
}

.logo-marine {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
}

.logo-solar {
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #ffffff;
}

.logo-iot {
    background: linear-gradient(135deg, #065f46, #059669);
    color: #ffffff;
}

.logo-analyser {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #38bdf8;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.card h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: #ffffff;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent-blue);
}

.card-footer i {
    margin-left: 0.5rem;
    transition: transform 0.25s ease;
}

.card:hover .card-footer i {
    transform: translateX(6px);
}

/* Network Links Section */
.legacy-links {
    text-align: center;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 2.25rem 1.5rem;
}

.legacy-links h3 {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.88rem;
}

.link-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.chip {
    padding: 0.55rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.chip:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: 5rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--card-border);
    width: 100%;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .spotlight-links {
        grid-template-columns: 1fr;
    }
    
    .trial-banner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
