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

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Roboto', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    background-attachment: fixed;
}
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; }
ul { list-style: none; }

/* === PREMIUM TOKENS === */
:root {
  --bg: #121218;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #00f2ff; /* Neon Cyan */
  --accent-secondary: #7000ff; /* Neon Purple */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3FfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, .brand-name {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === BACKGROUND EFFECTS === */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--noise);
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

.mesh-gradient {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, rgba(0, 242, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(112, 0, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(0, 242, 255, 0.05) 0px, transparent 50%);
}

/* === STRUCTURAL BASELINES === */
.container { max-width: 1440px; margin: 0 auto; padding: 0 5%; width: 100%; }

section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Diagonal Slant Dividers */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 2;
}

/* Spacing Strategy: Tight-then-expand */
section:nth-last-child(2) { padding: 90px 0; }
section:nth-last-child(1) { padding: 110px 0; }

/* === NAVIGATION === */
.nav-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
}

.nav-wrapper.scrolled {
    background: rgba(18, 18, 24, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

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

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.slide-text {
    width: 55%;
    padding: 0 5%;
    z-index: 2;
}

.slide-text h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: var(--text-muted);
}

.slide-image {
    width: 45%;
    height: 80vh;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 5%;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}

.dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* === BENTO GRID / MASONRY === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: perspective(1000px) rotateX(1deg) rotateY(1deg) translateY(-5px);
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

/* === BUTTONS (Neon Glow) === */
.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-neon {
    background: var(--bg);
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 5px var(--accent);
}

.btn-neon:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 20px var(--accent);
    animation: pulse-neon 1.5s infinite;
}

@keyframes pulse-neon {
    0% { box-shadow: 0 0 5px var(--accent); }
    50% { box-shadow: 0 0 25px var(--accent); }
    100% { box-shadow: 0 0 5px var(--accent); }
}

/* === SIDEBAR LAYOUT (Index Only) === */
.index-main {
    display: flex;
    gap: 4rem;
}

.sticky-sidebar {
    width: 30%;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.scrolling-content {
    width: 70%;
}

/* === TESTIMONIALS (Masonry) === */
.testimonial-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.testimonial-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.stars { color: #ffcc00; font-size: 0.8rem; }

/* === LOGO MARQUEE === */
.marquee-container {
    overflow: hidden;
    padding: 40px 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.logo-item {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.5;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === QUIZ === */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-progress {
    height: 6px;
    background: var(--glass-bg);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeIn 0.5s; }

.quiz-options {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.quiz-option {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
}

.quiz-option.selected {
    background: var(--accent);
    color: var(--bg);
}

/* === COMPARISON SECTION === */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.comp-column {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.comp-column.highlight {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.comp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* === FOOTER (Stacked Bars) === */
.footer-bar-top {
    background: #1a1a24;
    padding: 60px 0;
}

.footer-bar-middle {
    background: #121218;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bar-bottom {
    background: #0a0a0f;
    padding: 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h4 { margin-bottom: 1.5rem; color: var(--accent); }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.newsletter-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    color: white;
    flex-grow: 1;
}

/* === INNER PAGES === */
.breadcrumb {
    padding: 120px 0 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.expert-tip {
    background: linear-gradient(135deg, var(--accent-secondary), #4b0082);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.expert-tip::before {
    content: "“";
    position: absolute;
    top: -20px; right: 20px;
    font-size: 10rem;
    opacity: 0.1;
    color: white;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .index-main { flex-direction: column; }
    .sticky-sidebar, .scrolling-content { width: 100%; position: static; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: var(--bg);
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.4s;
    }
    .nav-links.active { right: 0; }
    .nav-toggle { display: block; }

    .slide-text { width: 100%; padding: 0 5%; }
    .slide-image { display: none; }

    .bento-grid { grid-template-columns: 1fr; }
    .testimonial-grid { column-count: 1; }
    .comparison-table { grid-template-columns: 1fr; }

    section { padding: 50px 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
