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

:root {
    --bg-primary: #111111;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --accent: #4fc3f7;
    --accent-hover: #81d4fa;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0b0;
    --text-heading: #ffffff;
    --border: #2a2a3e;
    --gradient-start: #0f0c29;
    --gradient-mid: #1a1a2e;
    --gradient-end: #24243e;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--text-heading); }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2rem;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--text-heading) !important;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex; list-style: none; gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary); font-weight: 500;
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px;
    transition: color 0.3s;
}

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

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text-primary); margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; gap: 1rem;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(17, 17, 17, 0.97); padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    position: relative; overflow: hidden;
}

.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(79, 195, 247, 0.08), transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(129, 212, 250, 0.05), transparent 50%);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.2; margin-bottom: 1.5rem;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary); margin-bottom: 2.5rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ===== App Store Badge ===== */
.app-store-badge {
    height: 54px; width: auto;
    transition: transform 0.3s, opacity 0.3s;
}
.app-store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block; padding: 0.85rem 2rem;
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 6px; transition: all 0.3s; cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent); color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover); color: #000;
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
}

.btn-outline {
    background: transparent; color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent); color: #000;
    transform: translateY(-2px);
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Sections ===== */
.section {
    padding: 5rem 2rem; max-width: 1200px; margin: 0 auto;
}

.section-dark {
    background: var(--bg-secondary);
    padding: 5rem 2rem;
}

.section-dark .section-inner {
    max-width: 1200px; margin: 0 auto;
}

.section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem; text-align: center;
}

.section-dark h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem; text-align: center;
    color: var(--text-heading);
}

.section-subtitle {
    text-align: center; color: var(--text-secondary);
    margin-bottom: 3rem; font-size: 1.1rem;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 2.5rem; margin-bottom: 1rem;
}

.card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

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

/* ===== Product Page ===== */
.product-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
}

.product-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.product-hero .tagline {
    font-size: 1.2rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 2rem;
}

.feature-list {
    list-style: none; max-width: 700px; margin: 0 auto;
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 1rem;
    font-size: 1.05rem;
}

.feature-list li::before {
    content: '\2713'; color: var(--accent); font-weight: bold;
    flex-shrink: 0; margin-top: 2px;
}

.feature-list li:last-child { border-bottom: none; }

/* ===== Contact ===== */
.contact-section {
    padding: 5rem 2rem;
    max-width: 600px; margin: 0 auto; text-align: center;
}

.contact-section h2 { margin-bottom: 1rem; }

.contact-section p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-contact { margin-top: 0.5rem; }

/* ===== Admin ===== */
.admin-container {
    max-width: 1000px; margin: 6rem auto 2rem; padding: 2rem;
}

.admin-container h1 { margin-bottom: 2rem; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem; margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.5rem; text-align: center;
}

.stat-card .number {
    font-size: 2.5rem; font-weight: 700; color: var(--accent);
    font-family: 'Montserrat', sans-serif;
}

.stat-card .label {
    color: var(--text-secondary); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; margin-top: 0.5rem;
}

.admin-table {
    width: 100%; border-collapse: collapse; margin-top: 1.5rem;
}

.admin-table th, .admin-table td {
    padding: 0.75rem 1rem; text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    color: var(--accent); font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
}

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

.login-form {
    max-width: 400px; margin: 10rem auto; padding: 2.5rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; text-align: center;
}

.login-form h2 { margin-bottom: 1.5rem; }

.login-form input[type="password"] {
    width: 100%; padding: 0.75rem 1rem; margin-bottom: 1rem;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text-primary);
    font-size: 1rem;
}

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

.flash-error {
    color: #ef5350; margin-bottom: 1rem; font-size: 0.9rem;
}

.section-break {
    height: 1px; background: var(--border);
    max-width: 200px; margin: 0 auto 3rem;
}

/* ===== App Icons in Cards ===== */
.card-app-icon {
    width: 80px; height: 80px;
    border-radius: 18px; margin-bottom: 1rem;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.product-card { text-align: center; }
.product-card h3 { color: var(--text-heading); }
.product-card p { color: var(--text-secondary); }

/* ===== Hero Background Image ===== */
.hero-bg-image {
    position: absolute; right: -5%; top: 50%;
    transform: translateY(-50%);
    width: 45%; max-width: 500px;
    opacity: 0.15;
    pointer-events: none;
    filter: blur(1px);
}

@media (max-width: 768px) {
    .hero-bg-image { display: none; }
}

/* ===== Product Hero Icon ===== */
.product-hero-icon {
    width: 120px; height: 120px;
    border-radius: 26px; margin-bottom: 1.5rem;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.badge {
    display: inline-block; padding: 0.25rem 0.75rem;
    background: rgba(79, 195, 247, 0.15); color: var(--accent);
    border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* ===== Publication Card ===== */
.pub-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 2rem;
    max-width: 700px; margin: 0 auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.pub-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.pub-card .pub-venue { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.75rem; }
.pub-card p { color: var(--text-secondary); font-size: 0.95rem; }
