img { max-width: 100%; height: auto; display: block; }

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Lato', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    line-height: 1.2;
}
img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* === PREMIUM TOKENS (Dark Retro Neon) === */
:root {
  --bg: #1a1a2e;
  --bg-darker: #0f0f1b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent-pink: #ff2a6d;
  --accent-teal: #05d9e8;
  --accent-yellow: #ffde03;
  --accent: var(--accent-pink);
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.5);
  --glass-bg: rgba(255, 42, 109, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --neon-border: linear-gradient(45deg, var(--accent-pink), var(--accent-teal));
}

/* === STRUCTURAL BASELINES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
section {
    padding: 60px 0;
    position: relative;
    background: var(--bg);
    border: 1px solid transparent;
    border-image: var(--neon-border) 1;
    margin-bottom: -50px; /* Overlap effect */
    box-shadow: 0 -20px 40px rgba(0,0,0,0.4);
    z-index: 1;
}

section:nth-child(even) {
    background: var(--bg-darker);
}

section:nth-child(4), section:nth-child(5) {
    padding: 80px 0;
}

section:last-of-type {
    padding: 100px 0;
    margin-bottom: 0;
}

/* === NAVIGATION (Overlay & Hidden Until Scroll) === */
.nav-trigger {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--accent-pink);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-pink);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 27, 0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav-overlay.active {
    transform: translateY(0);
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin: 20px 0;
}

.nav-links a {
    font-family: 'Abril Fatface', serif;
    font-size: 3rem;
    color: var(--text);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-teal);
    text-shadow: 0 0 10px var(--accent-teal);
}

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    padding: 15px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 900;
    border-bottom: 1px solid var(--accent-teal);
    display: flex;
    justify-content: center;
    gap: 30px;
}

.sticky-nav.visible {
    transform: translateY(0);
}

.sticky-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* === HERO === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
    margin-bottom: 0;
    border: none;
}

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

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 20px var(--accent-pink);
}

.badge {
    background: var(--accent-teal);
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    box-shadow: 0 0 15px var(--accent-teal);
}

/* === LAYOUT: Sidebar + Content (Index Only) === */
.index-layout {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .index-layout {
        flex-direction: row;
    }
    .sidebar {
        width: 30%;
        height: 100vh;
        position: sticky;
        top: 0;
        padding: 60px 40px;
        background: var(--bg-darker);
        border-right: 1px solid var(--glass-border);
    }
    .main-content {
        width: 70%;
    }
}

/* === MASONRY GRID === */
.masonry-grid {
    columns: 1;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .masonry-grid { columns: 2; }
}

@media (min-width: 1024px) {
    .masonry-grid { columns: 4; }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* === GLASS PANEL & CARDS === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
    box-shadow: 0 15px 45px rgba(255, 42, 109, 0.2);
}

/* === BUTTONS === */
.btn-primary {
    background: var(--accent-pink);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--accent-pink);
    filter: brightness(1.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 11px 29px;
    border: 1px solid var(--text);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* === INFOGRAPHIC (Interactive Element) === */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px auto 0;
    max-width: 1200px;
}

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

.stat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--bg-darker);
    border-top-color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
    position: relative;
    transition: transform 1s ease-out;
}

.stat-bar-bg {
    height: 10px;
    background: var(--bg-darker);
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-teal));
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
}

/* === TESTIMONIALS (Minimal Text-Only) === */
.testimonial-stack {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    padding: 40px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--accent-teal);
}

/* === FOOTER (Newsletter Style) === */
footer {
    background: var(--bg-darker);
    padding: 80px 0 40px;
    border-top: 1px solid var(--accent-pink);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.newsletter-box h3 {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    color: #fff;
    border-radius: var(--radius-sm);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 24px;
    color: var(--text-muted);
}

.social-icons a:hover {
    color: var(--accent-pink);
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--accent-teal);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--accent-teal);
}

.breadcrumbs span {
    margin: 0 10px;
}

/* === INNER PAGE SIDEBAR === */
.inner-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 1024px) {
    .inner-container {
        grid-template-columns: 2fr 1fr;
    }
}

.inner-sidebar {
    background: var(--bg-darker);
    padding: 30px;
    border-radius: var(--radius-lg);
    height: fit-content;
}

/* === FAQ === */
.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    background: var(--glass-bg);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 15px 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* === SOCIAL FEED === */
.social-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.social-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1/1;
}

.social-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.social-card:hover img {
    transform: scale(1.1);
}

.social-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 42, 109, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 24px;
}

.social-card:hover .social-overlay {
    opacity: 1;
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    text-align: center;
    border: 1px solid var(--glass-border);
}

.pricing-card.featured {
    border-color: var(--accent-pink);
    transform: scale(1.05);
    z-index: 2;
}

.price {
    font-size: 3rem;
    font-family: 'Abril Fatface', serif;
    color: var(--accent-teal);
    margin: 20px 0;
}

/* === UTILS === */
.text-center { text-align: center; }
.mb-40 { margin-bottom: 40px; }
.accent-text { color: var(--accent-teal); }
