:root {
    --bg: #090d16;
    --bg-alt: #0f1420;
    --bg-card: #151c2c;
    --text: #eaeff5;
    --text-dim: #7b8ba3;
    --accent: #4a8df8;
    --accent-soft: rgba(74,141,248,0.1);
    --accent-border: rgba(74,141,248,0.2);
    --border: rgba(255,255,255,0.06);
    --r: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }

/* NAV */
nav { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(9,13,22,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0.9rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.nav-name { font-weight: 700; font-size: 0.92rem; color: var(--text); text-decoration: none; }
nav ul { display: flex; gap: 2rem; }
nav ul a { color: var(--text-dim); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: color 0.2s; }
nav ul a:hover { color: var(--text); }
nav ul a.active { color: var(--accent); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(9,13,22,0.93) 0%, rgba(9,13,22,0.72) 40%, rgba(9,13,22,0.15) 100%),
                linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%; padding: 8rem 2rem 6rem; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; max-width: 580px; }
.hero .sub { font-size: 1.05rem; color: var(--text-dim); max-width: 500px; line-height: 1.8; margin-bottom: 2.5rem; }

/* BUTTONS */
.btn { display: inline-block; padding: 0.85rem 2rem; background: var(--accent); color: #fff; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: background 0.2s, transform 0.15s; }
.btn:hover { background: #3a7ae0; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

/* LAYOUT */
section { padding: 6.5rem 2rem; }
.wrap { max-width: 1100px; margin: 0 auto; }
.alt { background: var(--bg-alt); }
.label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.prose { font-size: 0.98rem; color: var(--text-dim); max-width: 580px; line-height: 1.85; }
.prose + .prose { margin-top: 0.8rem; }

/* GRIDS */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.g2.flip > :first-child { order: 2; }
.g2.flip > :last-child { order: 1; }
.img-frame { border-radius: var(--r); overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
.img-frame img { width: 100%; }

/* PROBLEM GRID */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.problem-card {
    padding: 2rem; background: var(--bg-card); border-radius: var(--r);
    border: 1px solid var(--border); transition: border-color 0.2s;
}
.problem-card:hover { border-color: var(--accent-border); }
.problem-card h3 { color: var(--text); margin-bottom: 0.5rem; }
.problem-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }

/* OFFER GRID */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.offer-card {
    padding: 2.5rem 2rem; background: var(--bg-card); border-radius: var(--r);
    border: 1px solid var(--border); transition: border-color 0.3s;
}
.offer-card:hover { border-color: var(--accent-border); }
.offer-num { font-size: 2rem; font-weight: 900; color: var(--accent); opacity: 0.3; margin-bottom: 1rem; }
.offer-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.offer-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 1.2rem; }
.offer-card ul { list-style: none; padding: 0; }
.offer-card li { font-size: 0.84rem; color: var(--text-dim); padding: 0.3rem 0; padding-left: 1.2rem; position: relative; }
.offer-card li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* DIFF LIST */
.diff-list { margin-top: 2rem; }
.diff-item { margin-bottom: 1.8rem; }
.diff-item h3 { color: var(--accent); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.diff-item p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.75; }

/* CREDENTIALS */
.creds { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.cred { padding: 0.4rem 0.85rem; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 4px; font-size: 0.76rem; font-weight: 600; color: var(--accent); }

/* REFS */
.refs { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }
.refs span { padding: 0.5rem 1.1rem; border: 1px solid var(--border); border-radius: 4px; font-size: 0.82rem; font-weight: 500; color: var(--text-dim); }

/* IMAGE STRIP */
.img-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow: hidden; }
.img-strip img { width: 100%; height: 280px; object-fit: cover; filter: brightness(0.65); transition: filter 0.3s; }
.img-strip img:hover { filter: brightness(0.85); }

/* MOSAIC */
.mosaic { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.m-item { border-radius: var(--r); overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,0.3); position: relative; }
.m-item img { width: 100%; height: 100%; object-fit: cover; }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
.m-item .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.m-item .overlay strong { font-size: 0.82rem; display: block; }
.m-item .overlay span { font-size: 0.72rem; color: var(--text-dim); }

/* TALKS LIST */
.talks-list { margin-top: 2.5rem; }
.talks-list table { width: 100%; border-collapse: collapse; }
.talks-list th { text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.talks-list td { padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; vertical-align: top; }
.talks-list td:first-child { color: var(--text-dim); font-size: 0.82rem; width: 60px; }
.talks-list .venue { color: var(--text-dim); font-size: 0.82rem; }
.talks-list .highlight td { color: var(--text); }

/* CONTACT */
.contact { text-align: center; }
.contact .prose { margin: 0 auto 2rem; text-align: center; max-width: 580px; }
.contact-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.c-link { padding: 0.8rem 1.6rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.88rem; transition: border-color 0.2s, transform 0.15s; }
.c-link:hover { border-color: var(--accent); transform: translateY(-2px); }

/* FOOTER */
footer { text-align: center; padding: 2rem; font-size: 0.75rem; color: var(--text-dim); border-top: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 820px) {
    nav ul { display: none; }
    .g2, .g2.flip { grid-template-columns: 1fr; gap: 2rem; }
    .g2.flip > :first-child, .g2.flip > :last-child { order: 0; }
    .problem-grid { grid-template-columns: 1fr; }
    .offer-grid { grid-template-columns: 1fr; }
    .mosaic { grid-template-columns: 1fr; }
    .mosaic .m-tall, .mosaic .m-wide { grid-row: auto; grid-column: auto; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stats-grid .s:nth-child(2) { border-right: none; }
    section { padding: 4.5rem 1.5rem; }
    .hero-content { padding: 7rem 1.5rem 4rem; }
    .hero-bg::after { background: linear-gradient(to bottom, rgba(9,13,22,0.6) 0%, rgba(9,13,22,0.85) 60%, var(--bg) 100%); }
    .img-strip { grid-template-columns: 1fr; }
    .img-strip img { height: 200px; }
    .talks-list { overflow-x: auto; }
}
