img { max-width: 100%; height: auto; display: block; }

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 18px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}
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 (Porcelain Blue Theme) === */
:root {
  --bg: #f8faff; /* Porcelain Blue Light Background */
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a5a7a;
  --accent: #2c5282; /* Rich Porcelain Blue */
  --accent-light: #4299e1;
  --silver: #e2e8f0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(44, 82, 130, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(44, 82, 130, 0.1);
}

/* === STRUCTURAL BASELINES === */
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; width: 100%; }
section { padding: 4rem 0; position: relative; } /* Spacing strategy: tight-then-expand */
.section-v2 { padding: 5rem 0; }
.section-v3 { padding: 6rem 0; }
.section-v4 { padding: 7rem 0; }

/* === NAVIGATION (Overlay-Only) === */
.nav-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: var(--surface);
    border: 3px solid var(--accent);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.nav-toggle:hover { background: var(--accent); }
.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s ease;
}
.nav-toggle:hover span { background: var(--surface); }
.nav-toggle.active .line-1 { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active .line-2 { opacity: 0; }
.nav-toggle.active .line-3 { transform: rotate(-45deg) translate(6px, -7px); }

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.nav-overlay.active { opacity: 1; visibility: visible; }
.nav-overlay nav ul { text-align: center; }
.nav-overlay nav ul li { margin-bottom: 2rem; overflow: hidden; }
.nav-overlay nav ul li a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}
.nav-overlay.active nav ul li a { transform: translateY(0); }
.nav-overlay nav ul li a.active { color: var(--text-muted); text-decoration: line-through; }
.nav-overlay nav ul li a:hover { color: var(--text); }

.nav-socials { margin-top: 3rem; display: flex; gap: 2rem; }
.nav-socials a { font-size: 1.5rem; color: var(--accent); }

/* === TYPOGRAPHY & LAYOUT (Broadsheet Archetype) === */
.broadsheet-title {
    font-size: clamp(3rem, 10vw, 6rem);
    text-align: center;
    border-bottom: 2px solid var(--text);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}
.broadsheet-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: var(--text-muted);
}
.columns-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .columns-3 { grid-template-columns: repeat(3, 1fr); }
}
.pull-quote {
    font-size: 2rem;
    font-weight: 700;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    padding: 2rem 0;
    margin: 3rem 0;
    text-align: center;
    color: var(--accent);
}

/* === HERO: Vertical Split Triptych === */
.hero {
    height: 100vh;
    display: flex;
    width: 100%;
}
.hero-strip { flex: 1; position: relative; height: 100%; overflow: hidden; }
.hero-strip.image { flex: 1.5; }
.hero-strip.image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-strip.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--surface);
}
.hero-strip.accent { background: var(--accent); flex: 0.5; }

.hero h1 { font-size: 5rem; margin-bottom: 1rem; color: var(--accent); }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 400px; }

@media (max-width: 768px) {
    .hero { flex-direction: column; height: auto; }
    .hero-strip.image { height: 40vh; flex: none; }
    .hero-strip.accent { display: none; }
    .hero h1 { font-size: 3rem; }
}

/* === BUTTONS (Sharp Rectangular) === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    border: 3px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.btn:hover {
    background: var(--accent);
    color: var(--surface);
}

/* === BACKGROUND TEXTURE (Glassmorphism Blobs) === */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(44, 82, 130, 0.05);
    filter: blur(100px);
    border-radius: 50%;
    animation: move 20s infinite alternate;
}
.blob:nth-child(2) {
    background: rgba(66, 153, 225, 0.05);
    width: 400px;
    height: 400px;
    right: 0;
    bottom: 0;
    animation-delay: -5s;
}
@keyframes move {
    from { transform: translate(-10%, -10%); }
    to { transform: translate(20%, 20%); }
}

/* === SECTION DIVIDER (Paper Tear Edge) === */
.divider-tear {
    height: 100px;
    width: 100%;
    background: var(--bg);
    clip-path: polygon(0 0, 5% 20%, 10% 0, 15% 15%, 20% 0, 25% 25%, 30% 0, 35% 10%, 40% 0, 45% 30%, 50% 0, 55% 15%, 60% 0, 65% 25%, 70% 0, 75% 10%, 80% 0, 85% 20%, 90% 0, 95% 15%, 100% 0, 100% 100%, 0 100%);
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

/* === GRID & CARDS === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    background: var(--surface);
    padding: 3rem;
    border: 1px solid var(--silver);
    transition: all 0.4s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--accent);
}
.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.card h3 { margin-bottom: 1rem; color: var(--accent); }

/* === TESTIMONIALS (Alternating) === */
.testimonial-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}
.testimonial-row:nth-child(even) { flex-direction: row-reverse; }
.testimonial-img { flex: 1; border: 10px solid var(--surface); box-shadow: var(--shadow-glass); }
.testimonial-content { flex: 1.5; padding: 2rem; }
.testimonial-content i { font-size: 3rem; color: var(--accent); opacity: 0.2; }
.testimonial-text { font-size: 1.5rem; font-style: italic; margin: 1rem 0; }
.testimonial-author { font-family: 'IBM Plex Mono', monospace; font-weight: 700; color: var(--accent); }

@media (max-width: 768px) {
    .testimonial-row, .testimonial-row:nth-child(even) { flex-direction: column; gap: 2rem; }
}

/* === AWARDS BAR === */
.awards-bar {
    background: var(--silver);
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.award-item { text-align: center; }
.award-item i { font-size: 2.5rem; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.award-item span { font-family: 'IBM Plex Mono', monospace; font-size: 0.9rem; font-weight: 700; }

/* === CASE STUDY === */
.case-study {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--silver);
    margin-top: 4rem;
    overflow: hidden;
}
.case-study-img { flex: 1; }
.case-study-content { flex: 1; padding: 4rem; }
.case-study-stats { display: flex; gap: 3rem; margin-top: 2rem; }
.stat-item h4 { font-size: 2.5rem; color: var(--accent); }

@media (max-width: 768px) {
    .case-study { flex-direction: column; }
}

/* === INTERACTIVE QUIZ === */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 4rem;
    border: 3px solid var(--accent);
}
.quiz-progress {
    height: 10px;
    background: var(--silver);
    margin-bottom: 3rem;
}
.quiz-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-options { margin-top: 2rem; display: grid; gap: 1rem; }
.quiz-option {
    padding: 1.5rem;
    border: 1px solid var(--silver);
    cursor: pointer;
    transition: all 0.2s ease;
}
.quiz-option:hover, .quiz-option.selected {
    border-color: var(--accent);
    background: rgba(44, 82, 130, 0.05);
}

/* === FOOTER (Dark Contrast) === */
footer {
    background: #1a1a2e;
    color: #ffffff;
    padding: 8rem 0 4rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-logo { font-size: 2rem; font-weight: 700; color: #4299e1; margin-bottom: 1.5rem; display: block; }
.footer-col h4 { margin-bottom: 1.5rem; color: #4299e1; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { opacity: 0.7; transition: opacity 0.3s ease; }
.footer-links a:hover { opacity: 1; color: #4299e1; }
.footer-newsletter input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    margin-bottom: 1rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 2rem 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
}
.breadcrumbs span { margin: 0 0.5rem; color: var(--text-muted); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--bg); border-radius: 10px; }

/* === OVERLAPPING ELEMENTS === */
.overlap-img { margin-top: -100px; z-index: 5; position: relative; }

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }
