/* HowiPrompt Platform - calm, modern interface */
:root {
    --bg: #020712;
    --bg-secondary: #07111d;
    --bg-card: #081621;
    --bg-elevated: #0b2030;
    --border: rgba(255,255,255,0.10);
    --border-strong: rgba(255,255,255,0.18);
    --text: #f7fbff;
    --text-muted: #8ea4b2;
    --text-soft: #c4d8e2;
    --primary: #11f5df;
    --primary-hover: #75fff0;
    --primary-ink: #021012;
    --success: #62e6a8;
    --warning: #f6d06f;
    --danger: #ff6b5f;
    --radius: 8px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font);
    background:
        radial-gradient(circle at 70% 0%, rgba(17,245,223,0.16), transparent 34rem),
        radial-gradient(circle at 18% 18%, rgba(58,102,255,0.12), transparent 28rem),
        linear-gradient(180deg, #020713 0%, var(--bg) 42rem);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .nav-logo, .btn, .metric strong, .manifesto-quote, .state-title { font-family: var(--display); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 650; cursor: pointer; border: none; transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--border-strong); color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #071007; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(2,7,18,0.72); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 100%; margin: 0 auto; padding: 0 48px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav-logo { font-size: 16px; font-weight: 750; display: flex; align-items: center; gap: 8px; letter-spacing: 0; margin-right: 8px; flex: 0 0 auto; }
.nav-logo-icon { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; box-shadow: 0 0 22px rgba(17,245,223,0.34); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.nav-links a { font-size: 13px; color: var(--text-muted); padding: 7px 8px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.nav-link-agent { color: var(--primary); background: rgba(17,245,223,0.10); }
.nav-auth { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-auth .btn { padding-left: 14px; padding-right: 14px; }
.auth-only { display: none !important; }
body.is-authenticated .auth-only { display: inline-flex !important; }
.nav-links .auth-only { display: none !important; }
body.is-authenticated .nav-links .auth-only { display: inline-flex !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }

/* Core layout */
.hero { padding: 148px 24px 72px; text-align: center; }
.hero-title { font-size: clamp(42px, 7vw, 76px); font-weight: 800; letter-spacing: 0; line-height: 0.98; margin-bottom: 16px; }
.hero-subtitle { font-size: 20px; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section { padding: 80px 24px; }
.section-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 48px; }

/* Cards */
.card { background: rgba(8,22,33,0.72); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.card:hover { transform: translateY(-2px); border-color: rgba(17,245,223,0.34); background: rgba(10,31,46,0.92); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-secondary); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.card-meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-price { font-weight: 700; color: var(--success); }
.card-rating { color: var(--warning); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Product detail */
.product-detail { padding: 88px 24px; max-width: 1000px; margin: 0 auto; }
.product-header { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.product-info h1 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.product-info .price { font-size: 28px; font-weight: 700; color: var(--success); margin: 16px 0; }
.product-info .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.product-thumb { border-radius: var(--radius); overflow: hidden; }
.product-thumb img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 6px; color: var(--text-muted); }
.form-input { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: var(--font); }
.form-input:focus { outline: none; border-color: rgba(216,255,111,0.7); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa099' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

/* Auth pages */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 96px 24px; }
.auth-card { width: 100%; max-width: 420px; background: rgba(17,20,18,0.92); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: 0 24px 80px rgba(0,0,0,0.36); }
.auth-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-links { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.auth-links a { color: var(--primary); }

/* Profile */
.profile-header { padding: 88px 24px 40px; text-align: center; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--bg-card); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.profile-name { font-size: 28px; font-weight: 700; }
.profile-bio { color: var(--text-muted); margin-top: 8px; max-width: 500px; margin-left: auto; margin-right: auto; }
.profile-stats { display: flex; gap: 32px; justify-content: center; margin-top: 24px; }
.profile-stat { text-align: center; }
.profile-stat-value { font-size: 20px; font-weight: 700; }
.profile-stat-label { font-size: 12px; color: var(--text-muted); }

/* Posts and reviews */
.post-card, .review-card { padding: 24px 0; border-bottom: 1px solid var(--border); }
.post-card h2 { font-size: 20px; font-weight: 650; margin-bottom: 8px; }
.post-card .excerpt, .review-body { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.post-card .meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 16px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-author { font-weight: 550; font-size: 14px; }
.review-rating { color: var(--warning); }
.review-verified { font-size: 11px; color: var(--success); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 24px 24px; background: rgba(0,0,0,0.14); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.footer-links h4 { font-size: 13px; font-weight: 650; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { text-align: center; font-size: 12px; color: var(--text-muted); padding-top: 24px; border-top: 1px solid var(--border); }

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Modern product shell */
.eyebrow { font-size: 12px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 750; }
.hero-shell { min-height: 92vh; display: flex; align-items: center; padding: 120px 24px 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr); gap: 56px; align-items: center; }
.hero-copy { max-width: 720px; }
.hero-copy p { color: var(--text-soft); font-size: 18px; max-width: 640px; }
.hero-panel { border: 1px solid var(--border); border-radius: 8px; background: rgba(8,22,33,0.68); padding: 18px; box-shadow: 0 30px 100px rgba(0,0,0,0.32), 0 0 80px rgba(17,245,223,0.08); }
.signal-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.signal-line:last-child { border-bottom: 0; }
.signal-line strong { display: block; font-size: 14px; }
.signal-line span { color: var(--text-muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 20px rgba(17,245,223,0.9); flex: 0 0 auto; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--border); }
.metric { background: rgba(8,22,33,0.94); padding: 18px; }
.metric strong { display: block; font-size: 26px; line-height: 1; }
.metric span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.section-head h2 { font-size: 32px; line-height: 1.1; letter-spacing: 0; }
.section-head p { color: var(--text-muted); max-width: 560px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature-card { min-height: 156px; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: rgba(8,22,33,0.70); }
.feature-card h3 { font-size: 15px; margin-bottom: 10px; }
.feature-card p { font-size: 13px; color: var(--text-muted); }
.path-list { display: grid; gap: 10px; }
.path-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,0.025); }
.path-item b { color: var(--primary); }
.path-item span { color: var(--text-muted); font-size: 13px; }
.page-hero { padding-top: 104px; margin-bottom: 28px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1; letter-spacing: 0; margin-bottom: 12px; }
.page-hero p { color: var(--text-soft); max-width: 760px; }
.app-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 22px 0 26px; }
.rail-group { border: 1px solid var(--border); border-radius: 8px; background: rgba(8,22,33,0.68); padding: 12px; }
.rail-group-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 10px; }
.rail-links { display: flex; flex-wrap: wrap; gap: 7px; }
.rail-links a { font-size: 12px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-soft); background: rgba(255,255,255,0.025); }
.rail-links a:hover { color: var(--primary); border-color: rgba(17,245,223,0.40); }
.rail-group summary { list-style: none; }
.rail-group summary::-webkit-details-marker { display: none; }
.panel { background: rgba(8,22,33,0.86); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }

/* Agent-state visual language */
.state-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 24px 72px; }
.state-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 40%, rgba(17,245,223,0.22), transparent 25rem), linear-gradient(110deg, rgba(2,7,18,0.96) 0%, rgba(2,7,18,0.82) 48%, rgba(2,7,18,0.54) 100%); pointer-events: none; }
.state-hero .container { position: relative; z-index: 1; }
.state-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr); gap: 56px; align-items: center; }
.state-title { font-size: clamp(48px, 8vw, 104px); line-height: 0.9; letter-spacing: -0.015em; font-weight: 700; margin: 18px 0 22px; }
.state-lede { color: var(--text-soft); font-size: clamp(17px, 2vw, 22px); max-width: 680px; }
.state-logo-stage { position: relative; min-height: 520px; display: grid; place-items: center; border: 1px solid rgba(17,245,223,0.16); border-radius: 8px; background: radial-gradient(circle at 60% 42%, rgba(17,245,223,0.18), transparent 22rem), rgba(1,7,18,0.72); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 40px 120px rgba(0,0,0,0.34); overflow: hidden; }
.state-logo-stage::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; border: 1px solid rgba(17,245,223,0.18); border-radius: 50%; background: radial-gradient(circle, rgba(17,245,223,0.12), transparent 62%); filter: blur(0.2px); }
.state-logo-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(0deg, rgba(1,7,18,0.82), transparent); pointer-events: none; }
.state-logo { position: relative; z-index: 1; width: min(520px, 92vw); border-radius: 8px; filter: drop-shadow(0 0 48px rgba(17,245,223,0.35)); transform: translateY(6px); }
.state-glass-card { border: 1px solid rgba(255,255,255,0.14); background: linear-gradient(180deg, rgba(16,42,58,0.70), rgba(5,18,29,0.50)); backdrop-filter: blur(24px); border-radius: 8px; box-shadow: 0 28px 120px rgba(0,0,0,0.34); }
.state-card-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.state-card-row:last-child { border-bottom: 0; }
.state-card-row strong { font-size: 14px; }
.state-card-row span { color: var(--text-muted); font-size: 12px; }
.state-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(17,245,223,0.28); color: var(--primary); border-radius: 999px; padding: 7px 11px; background: rgba(17,245,223,0.08); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.slogan-orbit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 760px; }
.slogan-chip { border: 1px solid rgba(17,245,223,0.20); color: var(--text-soft); background: rgba(8,22,33,0.54); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 650; }
.manifesto-quote { font-size: clamp(28px, 4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: 0; max-width: 980px; }
.manifesto-quote em { color: var(--primary); font-style: normal; }
.slogan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.slogan-card { border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(180deg, rgba(12,34,49,0.70), rgba(6,17,29,0.78)); padding: 20px; min-height: 150px; }
.slogan-card strong { display: block; font-size: 18px; line-height: 1.18; margin-bottom: 12px; }
.slogan-card span { color: var(--text-muted); font-size: 13px; }
.state-institutions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.institution-card { position: relative; min-height: 220px; padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(180deg, rgba(12,34,49,0.74), rgba(6,17,29,0.82)); overflow: hidden; }
.institution-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(17,245,223,0.10); filter: blur(18px); }
.institution-card h3 { font-size: 18px; margin-bottom: 12px; position: relative; z-index: 1; }
.institution-card p { color: var(--text-muted); font-size: 13px; position: relative; z-index: 1; }
.institution-card a { position: absolute; left: 22px; bottom: 20px; color: var(--primary); font-size: 13px; font-weight: 700; }
.state-map { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: stretch; }
.state-map-visual { min-height: 420px; border: 1px solid var(--border); border-radius: 8px; background: radial-gradient(circle at 40% 35%, rgba(17,245,223,0.20), transparent 10rem), linear-gradient(135deg, rgba(10,44,62,0.70), rgba(5,15,29,0.92)); position: relative; overflow: hidden; }
.state-map-visual::before { content: ""; position: absolute; inset: 38px; border: 1px solid rgba(17,245,223,0.18); transform: skewY(-7deg) rotate(-5deg); }
.state-map-visual::after { content: ""; position: absolute; inset: 82px 54px; border: 1px solid rgba(255,255,255,0.14); transform: skewY(8deg) rotate(8deg); }
.map-node { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 24px rgba(17,245,223,0.9); }
.map-node:nth-child(1) { left: 24%; top: 28%; }
.map-node:nth-child(2) { right: 28%; top: 38%; }
.map-node:nth-child(3) { left: 42%; bottom: 24%; }
.map-node:nth-child(4) { right: 18%; bottom: 18%; }
.state-cta { text-align: center; border: 1px solid rgba(17,245,223,0.18); border-radius: 8px; padding: 72px 24px; background: radial-gradient(circle at 50% 0%, rgba(17,245,223,0.16), transparent 24rem), rgba(8,22,33,0.64); }
.visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.visual-card { position: relative; aspect-ratio: 16 / 9; min-height: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-card); }
.visual-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; }
.visual-card:hover img { transform: scale(1.035); filter: saturate(1.08); }
.visual-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,7,18,0.08), rgba(2,7,18,0.86)); }
.visual-caption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; }
.visual-caption b { display: block; font-size: 18px; margin-bottom: 8px; }
.visual-caption span { display: block; color: var(--text-soft); font-size: 13px; }
.department-atlas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.department-card { position: relative; aspect-ratio: 16 / 9; min-height: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-card); }
.department-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.98) contrast(1.02); transition: transform 0.45s ease, filter 0.45s ease; }
.department-card:hover img { transform: scale(1.04); filter: saturate(1.10) contrast(1.05); }
.department-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,7,18,0.08), rgba(2,7,18,0.88)); }
.department-card span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: block; }
.department-card b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.department-card em { display: block; color: var(--text-soft); font-size: 12px; line-height: 1.45; font-style: normal; }
.infographic-board { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 14px; align-items: stretch; }
.info-stack { display: grid; gap: 12px; }
.info-node { border: 1px solid var(--border); border-radius: 8px; background: rgba(8,22,33,0.74); padding: 16px; min-height: 104px; }
.info-node b { display: block; font-size: 15px; margin-bottom: 8px; }
.info-node span { color: var(--text-muted); font-size: 12px; }
.info-core { position: relative; min-height: 430px; border: 1px solid rgba(17,245,223,0.22); border-radius: 8px; background: radial-gradient(circle at 50% 44%, rgba(17,245,223,0.22), transparent 12rem), rgba(4,14,25,0.82); overflow: hidden; display: grid; place-items: center; text-align: center; padding: 34px; }
.info-core::before, .info-core::after { content: ""; position: absolute; inset: 52px; border: 1px solid rgba(17,245,223,0.18); transform: rotate(12deg); }
.info-core::after { inset: 94px; transform: rotate(-14deg); border-color: rgba(255,255,255,0.12); }
.info-core-inner { position: relative; z-index: 1; max-width: 320px; }
.info-core-inner strong { display: block; font-family: var(--display); font-size: 34px; line-height: 1; margin-bottom: 12px; }
.info-core-inner span { color: var(--text-soft); }
.human-agent-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-card-media { overflow: hidden; padding-top: 0; }
.feature-card-media img { width: calc(100% + 40px); aspect-ratio: 16 / 9; height: auto; margin: -20px -20px 16px; object-fit: cover; border-bottom: 1px solid var(--border); }
.feature-card-media.horizontal { min-height: 170px; display: grid; grid-template-columns: 190px 1fr; grid-template-rows: auto 1fr; column-gap: 18px; align-items: start; }
.feature-card-media.horizontal img { grid-row: 1 / span 2; width: 190px; height: calc(100% + 40px); margin: -20px 0 -20px -20px; border-bottom: 0; border-right: 1px solid var(--border); }
.quiet-link { color: var(--primary); }

/* Founder story */
.founder-hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 120px 24px 72px; overflow: hidden; }
.founder-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 28%, rgba(17,245,223,0.20), transparent 24rem), linear-gradient(115deg, rgba(2,7,18,0.98), rgba(3,12,25,0.78)); pointer-events: none; }
.founder-hero .container { position: relative; z-index: 1; }
.founder-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr); gap: 60px; align-items: center; }
.founder-title { max-width: 780px; }
.founder-signal { border: 1px solid rgba(17,245,223,0.22); border-radius: 8px; background: linear-gradient(180deg, rgba(12,34,49,0.66), rgba(4,14,25,0.72)); min-height: 480px; display: grid; place-items: center; text-align: center; padding: 34px; box-shadow: 0 32px 120px rgba(0,0,0,0.34); }
.founder-signal img { width: min(280px, 70%); filter: drop-shadow(0 0 48px rgba(17,245,223,0.38)); margin-bottom: 22px; }
.founder-signal strong { display: block; font-family: var(--display); font-size: 26px; margin-bottom: 8px; }
.founder-signal span { color: var(--text-muted); font-size: 13px; }
.founder-copy { max-width: 1180px; }
.founder-single { max-width: 940px; }
.founder-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.founder-article { border: 1px solid var(--border); border-radius: 8px; background: rgba(8,22,33,0.72); padding: 26px; }
.founder-article h3 { font-size: 22px; margin-bottom: 18px; }
.founder-article p { color: var(--text-soft); font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.founder-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.founder-principle { border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(180deg, rgba(12,34,49,0.72), rgba(6,17,29,0.80)); padding: 22px; min-height: 220px; }
.founder-principle span { color: var(--primary); font-family: var(--display); font-weight: 700; font-size: 13px; }
.founder-principle strong { display: block; margin: 18px 0 10px; font-size: 17px; }
.founder-principle p { color: var(--text-muted); font-size: 13px; }

@media (max-width: 1360px) {
    .nav-links { display: none; position: absolute; top: 60px; left: 24px; right: 24px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: rgba(2,7,18,0.96); backdrop-filter: blur(24px); flex-direction: column; align-items: stretch; }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
}

@media (max-width: 900px) {
    .nav-inner { min-height: 56px; }
    .nav-links { top: 56px; left: 12px; right: 12px; background: rgba(2,7,18,0.96); }
    .nav-links.active { display: flex; }
    .nav-auth { display: none; }
    .nav-toggle { display: block; }
    .hero-shell { padding-top: 96px; }
    .hero-grid, .human-agent-split, .founder-grid, .founder-columns { grid-template-columns: 1fr; }
    .metric-strip { grid-template-columns: repeat(2, 1fr); }
    .section-head { display: block; }
    .product-header { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .state-grid, .state-map { grid-template-columns: 1fr; }
    .state-logo-stage { min-height: 360px; }
    .state-institutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .slogan-grid { grid-template-columns: 1fr; }
    .visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .department-atlas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .infographic-board { grid-template-columns: 1fr; }
    .founder-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-card-media.horizontal { grid-template-columns: 1fr; }
    .feature-card-media.horizontal img { grid-row: auto; width: calc(100% + 40px); height: 140px; margin: -20px -20px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .section { padding: 56px 18px; }
    .hero-title { font-size: 38px; }
    .metric-strip { grid-template-columns: 1fr; }
    .path-item { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn-lg { width: 100%; }
    .state-hero { padding-top: 96px; }
    .state-title { font-size: 46px; }
    .state-institutions { grid-template-columns: 1fr; }
    .state-map-visual { min-height: 280px; }
    .visual-grid { grid-template-columns: 1fr; }
    .visual-card { min-height: 0; }
    .department-atlas { grid-template-columns: 1fr; }
    .department-card { min-height: 0; }
    .founder-principles { grid-template-columns: 1fr; }
    .founder-signal { min-height: 340px; }
}
