:root {
    --bg-main: #06090f;
    --bg-card: rgba(19, 27, 44, 0.7);
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --accent-blue: #0ea5e9;
    --accent-blue-hover: #0284c7;
    --border-color: rgba(30, 41, 59, 0.8);
    --error-red: #ef4444;
    --success-green: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Typography */
h1, h2, h3 { font-weight: 700; color: #fff; }
.accent { color: var(--accent-blue); }
.text-dim { color: var(--text-dim); }

/* Landing Page Nav */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 9, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.nav-brand { font-size: 24px; font-weight: bold; }
.nav-links a { margin: 0 15px; color: var(--text-main); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-blue); }
.nav-auth { display: flex; gap: 10px; }

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 150px 5% 100px;
    min-height: 100vh;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
}
.hero-content { max-width: 600px; }
.hero h1 { font-size: 56px; line-height: 1.1; margin-bottom: 20px; }
.accent-gradient {
    background: linear-gradient(90deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 18px; color: var(--text-dim); margin-bottom: 40px; }
.hero-cta { display: flex; gap: 20px; }

/* Graphics */
.hero-graphics { flex-grow: 1; display: flex; justify-content: center; }
.decorative-card { width: 300px; height: 400px; padding: 20px; position: relative; transform: perspective(1000px) rotateY(-15deg); box-shadow: -20px 20px 50px rgba(0,0,0,0.5); }
.data-line { height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; margin-bottom: 15px; width: 100%; }
.data-line.short { width: 40%; }
.data-line.medium { width: 70%; }

/* Sections */
.section { padding: 100px 5%; }
.bg-darker { background: #030408; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 36px; margin-bottom: 10px; }
.section-header p { color: var(--text-dim); font-size: 18px; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 50px; }
.align-center { align-items: center; }

/* Feature Cards */
.feature-card { padding: 40px 30px; transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card .icon { font-size: 40px; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 15px; font-size: 22px; }
.feature-card p { color: var(--text-dim); font-size: 15px; }

/* Privacy */
.feature-list { list-style: none; }
.feature-list li { margin-bottom: 25px; font-size: 16px; padding-left: 30px; position: relative; }
.feature-list li::before { content: '✓'; color: var(--accent-blue); position: absolute; left: 0; top: 0; font-weight: bold; }
.shield-card { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 350px; text-align: center; }
.shield-icon { font-size: 100px; margin-bottom: 20px; filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.4)); }

/* Pricing */
.pricing-grid { max-width: 1000px; margin: 0 auto; }
.pricing-card { padding: 50px 40px; text-align: center; position: relative; }
.pricing-card h3 { font-size: 24px; color: var(--text-dim); margin-bottom: 10px; }
.price { font-size: 48px; font-weight: bold; margin-bottom: 10px; }
.price span { font-size: 16px; font-weight: normal; color: var(--text-dim); }
.pricing-features { text-align: left; margin: 30px 0; list-style: none; }
.pricing-features li { margin-bottom: 15px; color: var(--text-dim); }
.popular { border-color: var(--accent-blue); box-shadow: 0 0 30px rgba(14, 165, 233, 0.1); transform: scale(1.05); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--accent-blue); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: bold; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}
.btn-primary { background-color: var(--accent-blue); color: #fff; }
.btn-primary:hover { background-color: var(--accent-blue-hover); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-secondary:hover { background-color: rgba(255,255,255,0.05); }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* Auth Layout */
.auth-wrapper { min-height: 100vh; display: flex; flex-direction: column; padding: 40px; }
.back-link { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.back-link:hover { color: #fff; }
.auth-container { flex-grow: 1; display: flex; justify-content: center; align-items: center; }
.auth-box { width: 100%; max-width: 450px; padding: 40px; }
.auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.auth-tab { flex: 1; background: none; border: none; color: var(--text-dim); padding: 10px; font-size: 16px; cursor: pointer; transition: 0.2s; }
.auth-tab.active { color: #fff; border-bottom: 2px solid var(--accent-blue); }
.auth-form.hidden { display: none; }

/* Form Inputs */
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-dim); }
.input-group input, .input-group textarea { width: 100%; padding: 12px; background-color: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-main); font-size: 16px; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--accent-blue); }
.status-message { margin-top: 15px; text-align: center; font-size: 14px; }

/* Dashboard overrides */
.dashboard-body { display: flex; min-height: 100vh; overflow: hidden; }
.sidebar { width: 250px; background-color: var(--bg-card); border-right: 1px solid var(--border-color); padding: 20px; display: flex; flex-direction: column; }
.sidebar .brand { text-align: left; font-size: 24px; font-weight: bold; color: var(--accent-blue); margin-bottom: 40px; }
.nav-links { list-style: none; flex-grow: 1; }
.nav-links li { margin-bottom: 10px; }
.nav-links a { display: block; padding: 10px 15px; color: var(--text-dim); text-decoration: none; border-radius: 4px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { background-color: rgba(14, 165, 233, 0.1); color: var(--accent-blue); }
.user-info { border-top: 1px solid var(--border-color); padding-top: 20px; font-size: 14px; color: var(--text-dim); }
.user-info span { display: block; margin-bottom: 10px; }
.content { flex-grow: 1; padding: 40px; max-width: 1000px; overflow-y: auto; }

header { margin-bottom: 30px; }
header h2 { font-size: 28px; margin-bottom: 5px; }
header p { color: var(--text-dim); }
.card { background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; margin-bottom: 25px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* Tables & Code */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { color: var(--text-dim); font-weight: 500; }
.key-display, .code-block { background-color: rgba(0,0,0,0.3); padding: 15px; border-radius: 4px; border: 1px solid var(--border-color); font-family: monospace; font-size: 14px; color: var(--accent-blue); overflow-x: auto; white-space: pre; }
.code-block { color: var(--text-main); }
.hidden { display: none; }
.alert-success { padding: 15px; background-color: rgba(16, 185, 129, 0.1); border: 1px solid var(--success-green); border-radius: 4px; color: var(--success-green); }

/* Footer */
.footer { padding: 30px 5%; border-top: 1px solid var(--border-color); text-align: center; }
.footer .brand { font-size: 20px; font-weight: bold; margin-bottom: 10px; }
.footer p { color: var(--text-dim); font-size: 14px; }
