/* Core Design Philosophy: Luxury + Precision + Intelligence */

:root {
    /* Dark Mode (Default) */
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-tertiary: #1A1A1A;
    --accent-silver: #C0C0C0;
    --accent-gold: #D4AF37;
    --accent-gold-gradient: linear-gradient(45deg, #D4AF37, #F9D976, #D4AF37);
    --accent-blue: #3A86FF;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #6A6A6A;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(10, 10, 10, 0.85);
}

[data-theme="light"] {
    --bg-primary: #F5F5F7;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E5E5E7;
    --accent-silver: #8E8E93;
    --accent-gold: #B8860B;
    --accent-gold-gradient: linear-gradient(45deg, #B8860B, #D4AF37, #B8860B);
    --accent-blue: #007AFF;
    --text-primary: #1D1D1F;
    --text-secondary: #424245;
    --text-muted: #86868B;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(245, 245, 247, 0.85);
}

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

html {
    scroll-behavior: smooth;
}

body, button, input, select, textarea {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif !important;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, .serif, .brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 500; /* Slimmer branding */
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.hamburger-btn {
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2000;
    transition: left 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    padding: 8rem 3rem;
    border-right: 1px solid var(--glass-border);
    box-shadow: 20px 0 80px rgba(0,0,0,0.2);
}

.sidebar.active {
    left: 0;
}

.sidebar-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    color: var(--text-primary);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-links a {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: var(--text-primary);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem;
    background: radial-gradient(circle at center, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-weight: 600;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 200; /* Extra slim */
}

.hero .tagline {
    font-style: italic;
    color: var(--accent-gold);
    margin-bottom: 3rem;
    font-size: 1.6rem;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.1rem 2.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 400; /* Slimmer buttons */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.coming-soon-tag {
    font-size: 0.6rem;
    background: var(--accent-gold-gradient);
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Sections */
section {
    padding: 10rem 4rem;
}

.section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
}

/* Feature Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    transition: all 0.5s ease;
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-gold);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 200;
}

/* Productivity Section */
.productivity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.stat-box {
    text-align: center;
}

.stat-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    background: var(--glass-bg);
    padding: 10px;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    line-height: 1.2;
}

.stat-box h3 {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-weight: 200;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 6rem 4rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-credit {
    margin-top: 3rem;
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-credit span {
    color: var(--accent-gold);
    font-weight: 400;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 200;
}

/* Accordion & Search UI */
.search-container {
    max-width: 600px;
    margin: 0 auto 4rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.search-icon-inline {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    padding-right: 2rem;
}

.faq-toggle {
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-content-inner {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-secondary);
    font-weight: 200;
    line-height: 1.7;
}

.faq-item.active { border-color: var(--accent-gold); }
.faq-item.active .faq-content { max-height: 1000px; transition: max-height 0.8s ease-in-out; }

/* Global Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 10rem 2rem;
    overflow-y: auto;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-close {
    position: absolute;
    top: 3rem;
    right: 3rem;
    cursor: pointer;
    color: var(--text-primary);
}

.search-results {
    max-width: 800px;
    margin: 3rem auto 0 auto;
}

.search-result-item {
    display: block;
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: var(--glass-bg);
}

.search-result-item h4 {
    color: var(--accent-gold);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.search-result-item p {
    color: var(--text-secondary);
    font-weight: 200;
}

.search-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.nav-search-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-search-btn:hover {
    color: var(--accent-gold);
}

/* 404 Animations */
@keyframes jump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.jumping-octopus {
    animation: jump 2s ease-in-out infinite;
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

.timer-box {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-top: 1rem;
    font-family: 'Poppins', sans-serif;
}

/* Global Navigation & Consistency Fixes */
.nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.theme-toggle, .nav-search-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    color: var(--text-primary) !important;
}

.nav-left {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

footer {
    padding: 6rem 4rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
