:root {
    --bg-color: #0a0a0c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --accent-color: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.glow-1 {
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, rgba(0,0,0,0) 70%);
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, rgba(0,0,0,0) 70%);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    border-top: none;
    border-left: none;
    border-right: none;
}

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

.header-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

nav a:not(.btn) {
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

nav a:not(.btn):hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--accent-glow);
}

/* Hero Section */
.hero {
    padding-top: calc(80px + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Apps Section */
.apps-section {
    padding-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.app-card {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.app-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.app-icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.app-icon-image {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto var(--spacing-md);
    display: block;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.numbar-icon {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    color: white;
}

.stocking-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.upcoming-icon {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    color: var(--text-secondary);
    box-shadow: none;
}

.app-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.app-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Document Pages (Privacy, TOS) */
.doc-section {
    padding-top: calc(80px + var(--spacing-lg));
    padding-bottom: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.doc-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.doc-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.doc-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.doc-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.doc-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.doc-content ul,
.doc-content ol {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.main-footer {
    margin-top: auto;
    padding: var(--spacing-md) 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: none;
    border-left: none;
    border-right: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        height: auto;
        padding: 1rem 0;
    }
    
    nav {
        gap: 1rem;
    }
    
    .hero {
        padding-top: calc(140px + var(--spacing-lg));
    }
    
    .doc-section {
        padding-top: calc(140px + var(--spacing-md));
    }
}
