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

:root {
    --bg-primary: #0F0F12;
    --bg-secondary: #16161D;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #E8E6E3;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --accent-gold: #C5A46B;
    --accent-gold-dim: rgba(197, 164, 107, 0.15);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Background ─── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 164, 107, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
    z-index: 0;
}

/* ─── Layout ─── */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

/* ─── Hero ─── */
.hero {
    text-align: center;
    margin-bottom: 64px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Portal Grid ─── */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 64px;
}

.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.portal-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.portal-card:hover::before {
    opacity: 1;
}

.portal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
    background: var(--icon-bg);
    color: var(--card-accent);
}

.portal-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.portal-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.portal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    color: var(--text-muted);
}

.portal-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.portal-status.live .dot {
    background: #10B981;
}

.portal-status.planned .dot {
    background: #F59E0B;
}

/* ─── Legacy Section ─── */
.legacy-section {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.legacy-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.legacy-section .subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.legacy-table {
    width: 100%;
    border-collapse: collapse;
}

.legacy-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.legacy-table td {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

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

.legacy-table code {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-gold);
}

/* ─── Footer ─── */
.footer {
    text-align: center;
    margin-top: 64px;
    padding: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* ─── Animations ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeUp 0.6s ease-out forwards;
    opacity: 0;
}

.portal-card:nth-child(1) {
    animation-delay: 0.1s;
}

.portal-card:nth-child(2) {
    animation-delay: 0.2s;
}

.portal-card:nth-child(3) {
    animation-delay: 0.3s;
}

.portal-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ─── Premium Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--accent-gold);
    color: #12100d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.25);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

/* ─── Technical & Innovation Section ─── */
.tech-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.tech-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold-dim);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(197, 164, 107, 0.05);
}

.tech-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    background: rgba(201, 169, 110, 0.1);
    color: var(--accent-gold);
    transition: all 0.3s;
}

.tech-card:hover .tech-icon {
    background: var(--accent-gold);
    color: #12100d;
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.tech-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.tech-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-badges span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.tech-card:hover .tech-badges span {
    color: var(--accent-gold);
    border-color: rgba(201, 169, 110, 0.2);
    background: rgba(201, 169, 110, 0.03);
}

/* ─── Premium Footer ─── */
.premium-footer {
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 64px 0 32px;
    font-family: var(--font-body);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-col.col-brand {
        grid-column: span 2;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col.col-brand {
        grid-column: span 1;
    }
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}

.brand-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--accent-gold-dim);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
}

.contact-item {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item i {
    color: var(--accent-gold);
    margin-top: 4px;
    width: 14px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-links .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.1);
}

/* ─── Global Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--bg-nav, rgba(15, 15, 18, 0.9));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s;
}

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

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--accent-gold);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ─── Hover Dropdown Navigation ─── */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #16161d;
    border: 1px solid var(--border-glow, rgba(201, 169, 110, 0.2));
    border-radius: 12px;
    box-shadow: var(--shadow-premium, 0 20px 40px rgba(0, 0, 0, 0.4));
    padding: 8px 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown.active,
.nav-dropdown-wrapper:hover .nav-dropdown {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    padding: 10px 20px;
    text-transform: none !important;
    font-size: 13px !important;
    font-weight: 500;
    color: var(--text-secondary) !important;
    display: block;
    width: 100%;
    text-align: left;
    transition: background 0.2s, color 0.2s;
    border-bottom: none !important;
}

.nav-dropdown a:hover {
    background: rgba(201, 169, 110, 0.08);
    color: var(--accent-gold) !important;
}


