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

:root {
    /* Color Palette */
    --bg-primary: #07131f;
    --bg-secondary: #0b2233;
    --surface-elevated: rgba(255, 255, 255, 0.05);
    
    --accent-primary: #38bdf8;
    --accent-secondary: #22c55e;
    --accent-alert: #fbbf24;
    
    --text-primary: #e6f6ff;
    --text-secondary: #a5d8ff;
    --text-muted: #6b8ba4;
    
    /* System Constants */
    --font-main: 'Inter', sans-serif;
    --radius-btn: 16px;
    --radius-card: 20px;
    --max-width: 1320px;
    
    --glow-primary: rgba(56, 189, 248, 0.2);
    --glow-alert: rgba(251, 191, 36, 0.2);
    --glow-success: rgba(34, 197, 94, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Descriptive name: Subtle vertical data gradient */
    background-image: linear-gradient(180deg, var(--bg-primary) 0%, #060e17 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-sm {
    padding: 60px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

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

.text-center { text-align: center; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    font-weight: 600;
    display: block;
}

/* Glass Control Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 19, 31, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(7, 19, 31, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(56, 189, 248, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-primary);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--glow-primary);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
    filter: brightness(1.1);
    color: #fff;
}

.btn-secondary {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Components */
.card {
    background: var(--surface-elevated);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-card);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    height: 100%;
}

.card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), inset 0 0 20px var(--glow-primary);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* Hero Variables */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for header */
    position: relative;
    overflow: hidden;
}

/* Status Indicators */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--glow-success);
}

.status-dot.alert {
    background: var(--accent-alert);
    box-shadow: 0 0 10px var(--glow-alert);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

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

/* Dashboard Specific Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 100px;
    min-height: calc(100vh - 180px);
}

.dash-sidebar {
    background: var(--surface-elevated);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 24px;
    height: 100%;
}

.dash-menu {
    list-style: none;
}

.dash-menu li {
    margin-bottom: 8px;
}

.dash-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.dash-menu a:hover, .dash-menu a.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
}

.dash-menu svg {
    width: 20px;
    height: 20px;
}

.dash-kpi {
    display: flex;
    flex-direction: column;
}

.dash-kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
}

.dash-table-wrapper {
    background: var(--surface-elevated);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    margin-top: 32px;
}

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

.dash-table th, .dash-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dash-table th {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0,0,0,0.2);
}

.dash-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

.legal-content p, .legal-content ul {
    margin-bottom: 24px;
}

.legal-content ul {
    padding-left: 24px;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 8px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.menu-toggle svg {
    width: 32px;
    height: 32px;
}