:root {
    /* Colors */
    --primary-blue: #0A2540; /* Dark Navy Blue */
    --accent-blue: #0066FF;
    --accent-silver: #8A94A6;
    --silver-light: #E2E8F0;
    --gold: #D4AF37;
    --gold-light: #FDF9E3;
    
    --bg-color: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    
    /* Gradients */
    --gradient-blue-silver: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-silver) 100%);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(10, 37, 64, 0.05), 0 2px 4px -1px rgba(10, 37, 64, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(10, 37, 64, 0.08), 0 4px 6px -2px rgba(10, 37, 64, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(10, 37, 64, 0.1), 0 10px 10px -5px rgba(10, 37, 64, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(10, 37, 64, 0.08);

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out alternate;
}

.gradient-sphere.blue {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -100px;
    right: -100px;
}

.gradient-sphere.silver {
    width: 500px;
    height: 500px;
    background: var(--accent-silver);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(138, 148, 166, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(138, 148, 166, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 50px); }
}

/* Navigation */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 100;
}

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

.logo-img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 32px;
    }
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #081D33;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--silver-light);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: #CBD5E1;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-silver);
    color: var(--primary-blue);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    background: rgba(10, 37, 64, 0.03);
}

/* Hero Section */
.hero {
    padding: 80px 0 120px 0;
    min-height: calc(100vh - 81px);
    display: flex;
    align-items: center;
}

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

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    animation: slideInDown 0.8s ease-out;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.text-gradient {
    background: var(--gradient-blue-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    margin-bottom: 24px;
    font-family: var(--font-body);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.highlight-gold { color: var(--gold); }
.highlight-silver { color: var(--accent-silver); }
.highlight-blue { color: var(--accent-blue); }

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

/* Hero Visuals & Glassmorphism */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    perspective: 1000px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
    padding: 32px;
}

.main-card {
    position: relative;
    z-index: 2;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.main-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(138, 148, 166, 0.2);
    padding-bottom: 16px;
}

.hero-card-logo {
    height: 32px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10B981; /* Emerald Green */
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
}

.pulse {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.encryption-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    position: relative;
    margin-bottom: 40px;
}

.data-stream {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    opacity: 0.3;
}

.stream-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    width: 100%;
    background-size: 200% 100%;
    animation: stream 3s infinite linear;
}

.stream-line:nth-child(2) { animation-delay: 1s; opacity: 0.6; }
.stream-line:nth-child(3) { animation-delay: 2s; }

@keyframes stream {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.vault-icon-container {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), #081D33);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(10, 37, 64, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.vault-icon {
    width: 40px;
    height: 40px;
    color: #FFFFFF;
}

.secure-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat i {
    width: 24px;
    height: 24px;
    color: var(--accent-blue);
}

.stat h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.stat p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 3;
    animation: float 6s infinite ease-in-out;
}

.file-card {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.usb-card {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.gold-icon { color: var(--gold); }
.silver-icon { color: var(--accent-silver); }
.success-icon { 
    color: #10B981; 
    margin-left: 8px;
    width: 18px;
    height: 18px;
}

/* Animations */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Auth & Admin Specific Styles */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    background: var(--gradient-blue-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.header p {
    color: var(--text-muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(138, 148, 166, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background: #FFFFFF;
}

.form-control:disabled {
    opacity: 0.6;
    background: rgba(226, 232, 240, 0.5);
    cursor: not-allowed;
}

.btn-danger {
    background: #EF4444;
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

.alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(138, 148, 166, 0.2);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.user-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-badge .info {
    display: flex;
    flex-direction: column;
}

.user-badge .name {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-blue);
}

.user-badge .email {
    font-size: 12px;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Admin Specific */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
}

.key-list {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(138, 148, 166, 0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.4);
}

.key-item {
    padding: 12px;
    border-bottom: 1px solid rgba(138, 148, 166, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 13px;
    color: var(--primary-blue);
}

.key-item:last-child {
    border-bottom: none;
}

.badge-tier {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.tier-base { background: var(--silver-light); color: var(--primary-blue); }
.tier-plus { background: var(--accent-blue); color: white; }
.tier-pro { background: var(--gold); color: var(--primary-blue); }

/* Layout Utilities */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.bg-light-blue {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(10, 37, 64, 0.03) 50%, rgba(255,255,255,0) 100%);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 32px; }
.mt-5 { margin-top: 48px; }
.text-gold { color: var(--gold); }

/* Section Headers */
.section-header {
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-blue);
}

.feature-icon {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

/* Split Layout (Security) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.security-list {
    list-style: none;
}

.security-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.security-list li strong {
    display: block;
    color: var(--primary-blue);
    margin-bottom: 4px;
    font-size: 1.05rem;
}

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

.security-card-large {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.3));
}

.shield-animation-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giant-shield {
    width: 80px;
    height: 80px;
    color: var(--primary-blue);
    z-index: 2;
}

.orbiting-dot {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(10, 37, 64, 0.2);
    animation: spin 10s linear infinite;
}

.orbiting-dot::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
}

.orbiting-dot.delay {
    animation-direction: reverse;
    animation-duration: 15s;
    border-color: rgba(212, 175, 55, 0.3);
}
.orbiting-dot.delay::before {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Pricing/Tiers */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
    margin-top: 40px;
}

.tier-card {
    position: relative;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.premium-tier {
    border: 2px solid var(--accent-blue);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.8);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tier-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(138, 148, 166, 0.2);
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-blue);
}

.tier-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.tier-features i {
    color: #10B981;
    width: 18px;
    height: 18px;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(138, 148, 166, 0.2);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.footer-logo {
    height: 32px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dashboard Specific Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.device-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.device-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-circle i {
    width: 20px;
    height: 20px;
}

.device-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
}

.info-row .label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-row .value {
    color: var(--primary-blue);
    font-weight: 600;
}
