/* MIMO Landing — Production CSS */
::selection { background: #d4a574; color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f3f1ed; }
::-webkit-scrollbar-thumb { background: #d4a574; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8b6914; }
*:focus-visible { outline: 2px solid #d4a574; outline-offset: 3px; border-radius: 4px; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(212,165,116,0.2); }
::placeholder { color: #8a8a8a; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
:root {
    --bg: #faf9f7; --bg2: #f3f1ed; --s: #fff;
    --t: #1a1a1a; --t2: #5c5c5c; --t3: #8a8a8a;
    --a: #d4a574; --ah: #c4955f; --as: rgba(212,165,116,0.12); --ab: #f5e6d3;
    --b: #e2ddd6; --bl: #eeeae4;
    --r: 12px; --rl: 16px; --rxl: 24px;
    --sh: 0 2px 8px rgba(0,0,0,0.05); --sm: 0 4px 16px rgba(0,0,0,0.06); --sl: 0 8px 28px rgba(0,0,0,0.08); --sx: 0 16px 48px rgba(0,0,0,0.1);
    --e: cubic-bezier(0.33,1,0.68,1); --sec: 100px; --mw: 1120px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.65; color: var(--t); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }
.container { max-width: var(--mw); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* Typography */
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; }
h2, .stitle { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 16px; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.ssub { font-size: 1.0625rem; color: var(--t2); max-width: 560px; margin-bottom: 40px; line-height: 1.7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: var(--r); font-weight: 600; font-size: 0.9375rem; transition: all 0.25s var(--e); white-space: nowrap; }
.btn--accent { background: var(--a); color: #fff; box-shadow: 0 2px 8px rgba(180,140,80,0.25); }
.btn--accent:hover { background: var(--ah); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(180,140,80,0.35); }
.btn--accent:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(180,140,80,0.2); }
.btn--sm { padding: 9px 18px; font-size: 0.8125rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--rl); }

/* Inputs */
.inp { width: 100%; padding: 12px 16px; border: 1.5px solid var(--b); border-radius: var(--r); background: var(--s); transition: all 0.2s ease; font-size: 0.9375rem; }
.inp:focus { border-color: var(--a); box-shadow: 0 0 0 3px var(--as); outline: none; }
.inp--ta { min-height: 96px; resize: vertical; }
.inp--sm { max-width: 100px; }

/* Tabs */
.tab { padding: 9px 18px; border-radius: 100px; font-size: 0.8125rem; font-weight: 600; color: var(--t2); background: transparent; border: 1.5px solid var(--b); transition: all 0.2s var(--e); }
.tab:hover { border-color: var(--a); color: var(--t); }
.tab.active { background: var(--a); color: #fff; border-color: var(--a); }
.tab.active:hover { background: var(--ah); border-color: var(--ah); color: #fff; }

/* Scroll reveal */
.reveal-item { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--e), transform 0.7s var(--e); }
.reveal-item.visible { opacity: 1; transform: none; }
.reveal-item:nth-child(2) { transition-delay: 0.08s; }
.reveal-item:nth-child(3) { transition-delay: 0.16s; }
.reveal-item:nth-child(4) { transition-delay: 0.24s; }
.reveal-item:nth-child(5) { transition-delay: 0.32s; }
.reveal-item:nth-child(6) { transition-delay: 0.4s; }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,249,247,0.88); backdrop-filter: blur(16px) saturate(1.6); border-bottom: 1px solid var(--bl); transition: background 0.3s; }
.hdr { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; transition: color 0.2s; }
.logo:hover { color: var(--a); }
.dot { color: var(--a); }
.nav { display: flex; gap: 28px; }
.nl { font-size: 0.875rem; font-weight: 500; color: var(--t2); transition: color 0.15s; position: relative; }
.nl::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1.5px; background: var(--a); transition: width 0.25s var(--e); }
.nl:hover { color: var(--t); }
.nl:hover::after { width: 100%; }
.burger { display: none; flex-direction: column; gap: 5px; width: 22px; }
.burger span { display: block; height: 1.5px; background: var(--t); border-radius: 2px; transition: all 0.2s; }

/* ===== HERO ===== */
#hero-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 100px 0 60px; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero-sub { font-size: 1.0625rem; color: var(--t2); line-height: 1.7; margin-bottom: 24px; max-width: 500px; }
.hero-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-tabs .tab { padding: 7px 14px; font-size: 0.75rem; }
.hero-offer { margin-bottom: 24px; min-height: 52px; }
.offer-text { font-size: 0.875rem; line-height: 1.6; padding: 14px 18px; background: var(--ab); border-radius: var(--r); border-left: 3px solid var(--a); animation: fadeUp 0.25s var(--e); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero-cta { margin-bottom: 28px; }
.metrics { display: flex; gap: 36px; padding-top: 20px; border-top: 1px solid var(--bl); }
.mv { font-size: 1.5rem; font-weight: 800; color: var(--a); display: block; letter-spacing: -0.02em; }
.ml { font-size: 0.6875rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; display: block; margin-top: 2px; }
.hero-photo { position: relative; }
.hero-photo::before { content: ''; position: absolute; top: -8px; right: -8px; bottom: 8px; left: 8px; border: 2px solid var(--a); border-radius: var(--rxl); z-index: -1; opacity: 0.25; }
.hero-photo img { border-radius: var(--rxl); box-shadow: var(--sx); object-fit: cover; max-height: 480px; width: 100%; }

/* ===== CALCULATOR ===== */
.calc-section { padding: var(--sec) 0; background: var(--bg2); position: relative; z-index: 2; }
.calc-section::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--b), transparent); }
.calc-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.cf { margin-bottom: 24px; }
.cfl { display: block; font-size: 0.75rem; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.slider { width: 100%; -webkit-appearance: none; height: 5px; border-radius: 3px; background: var(--b); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--a); cursor: pointer; box-shadow: 0 2px 8px rgba(180,140,80,0.3); transition: transform 0.15s; }
.slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.cfv { display: block; margin-top: 8px; font-weight: 700; font-size: 1.125rem; color: var(--a); }
.calc-results { background: var(--s); border-radius: var(--rxl); padding: 28px; box-shadow: var(--sl); border: 1px solid var(--bl); text-align: center; }
.cr { padding: 16px 0; border-bottom: 1px solid var(--bl); text-align: center; }
.cr:last-of-type { border-bottom: none; }
.crl { font-size: 0.75rem; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: 0.05em; }
.crv { display: block; font-size: 1.75rem; font-weight: 800; color: var(--a); margin-top: 4px; letter-spacing: -0.02em; }
.calc-cta { margin-top: 20px; width: 100%; }

/* ===== SOLUTIONS ===== */
.solutions-section { padding: var(--sec) 0; position: relative; z-index: 2; background: var(--bg); overflow: hidden; min-height: 600px; }
#solutions-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.5; }
.solutions-section .container { position: relative; z-index: 1; }
.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.sol-card { background: var(--s); border-radius: var(--rl); padding: 28px; box-shadow: var(--sh); border: 1px solid var(--bl); transition: all 0.3s var(--e); }
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--sl); }
.sol-pain { font-size: 0.9375rem; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.sol-arrow { font-size: 0; margin-bottom: 12px; height: 1px; background: var(--b); width: 32px; }
.sol-sol { font-size: 1.0625rem; font-weight: 700; color: var(--a); margin-bottom: 10px; }
.sol-res { font-size: 0.8125rem; color: var(--t2); line-height: 1.65; }

/* ===== CASES ===== */
.cases-section { padding: var(--sec) 0; background: var(--bg2); position: relative; z-index: 2; }
.case-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: stretch; }
.cc { background: var(--s); border-radius: var(--rl); padding: 28px; box-shadow: var(--sh); border: 1px solid var(--bl); transition: all 0.3s var(--e); display: flex; flex-direction: column; }
.cc:hover { transform: translateY(-4px); box-shadow: var(--sl); }
.cc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cc-n { font-size: 0.6875rem; font-weight: 700; color: var(--a); background: var(--ab); padding: 4px 10px; border-radius: 100px; letter-spacing: 0.04em; }
.cc-t { font-size: 0.6875rem; color: var(--t3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.cc-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.cc-prob { font-size: 0.8125rem; color: var(--t2); margin-bottom: 16px; line-height: 1.6; }
.cc-res { display: flex; align-items: baseline; gap: 8px; padding: 14px; background: var(--ab); border-radius: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cc-m { font-size: 1.5rem; font-weight: 800; color: var(--a); white-space: nowrap; }
.cc-ml { font-size: 0.8125rem; color: var(--t2); font-weight: 500; }
.cc-det { font-size: 0.75rem; color: var(--t3); line-height: 1.65; }
.cc-vid { margin-top: 14px; flex-grow: 1; }
.cc-vid iframe { width: 100%; aspect-ratio: 16/9; border-radius: 8px; border: none; }
.cc-more { font-size: 0.75rem; font-weight: 600; color: var(--a); cursor: pointer; margin-top: 8px; transition: color 0.2s; display: inline-block; background: none; border: none; padding: 0; }
.cc-more:hover { color: var(--ah); }
.cc-full { display: none; margin-top: 12px; font-size: 0.8125rem; color: var(--t2); line-height: 1.7; }
.cc-full p { margin-bottom: 8px; }
.cc-full strong { color: var(--t); }
.cc.open .cc-full { display: block; animation: fadeUp 0.25s var(--e); }
.cc-placeholder { background: linear-gradient(135deg, var(--ab), rgba(212,165,116,0.08)); border-radius: 8px; padding: 24px; text-align: center; color: var(--t3); font-size: 0.8125rem; display: flex; align-items: center; justify-content: center; min-height: 180px; border: 1px dashed rgba(212,165,116,0.2); }
.cc-ph-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cc-ph-icon { width: 48px; height: 48px; color: var(--a); opacity: 0.5; }
.cc-ph-text { font-size: 0.875rem; font-weight: 600; color: var(--t2); margin: 0; }
.cc-ph-sub { font-size: 0.75rem; color: var(--t3); margin: 0; opacity: 0.7; }
.cc-placeholder p { margin: 0; }
.case-hint { font-size: 0.8125rem; color: var(--t3); margin-bottom: 20px; }

/* ===== STACK ===== */
.stack-section { padding: var(--sec) 0; position: relative; z-index: 2; background: var(--bg); overflow: hidden; }
#stack-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.4; }
.stack-section .container { position: relative; z-index: 1; }
.stk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.stk { background: var(--s); border-radius: var(--r); padding: 28px 20px; text-align: center; box-shadow: var(--sh); border: 1px solid var(--bl); transition: all 0.3s var(--e); }
.stk:hover { transform: translateY(-4px); box-shadow: var(--sm); border-color: var(--a); }
.stk-i { font-size: 2rem; display: block; margin-bottom: 10px; line-height: 1; }
.stk-n { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.stk-d { font-size: 0.75rem; color: var(--t3); line-height: 1.5; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pr { padding: 24px 24px 24px 28px; border-left: 2px solid var(--a); background: var(--s); border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--sh); transition: all 0.3s var(--e); }
.pr:hover { box-shadow: var(--sm); transform: translateX(4px); }
.pr-t { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.pr-x { font-size: 0.875rem; color: var(--t2); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-section { padding: var(--sec) 0; background: var(--bg2); position: relative; z-index: 2; }
.faq-list { max-width: 680px; margin: 0 auto 40px; }
.faq-section .stitle { text-align: center; }
.faq-section .ssub { margin-left: auto; margin-right: auto; text-align: center; }
.faq-item { border-bottom: 1px solid var(--b); transition: background 0.15s; }
.faq-item:hover { background: rgba(212,165,116,0.03); }
.fq { padding: 20px 0; font-size: 0.9375rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fq::-webkit-details-marker { display: none; }
.fq::after { content: '+'; font-size: 1.25rem; color: var(--a); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ab); transition: all 0.2s var(--e); flex-shrink: 0; }
.faq-item[open] .fq::after { transform: rotate(45deg); background: var(--a); color: #fff; }
.fa { padding: 0 0 20px; font-size: 0.875rem; color: var(--t2); line-height: 1.7; max-width: 600px; animation: fadeUp 0.2s; }
.faq-cta { max-width: 480px; margin: 0 auto; text-align: center; background: var(--s); padding: 32px; border-radius: var(--rl); box-shadow: var(--sm); }
.faq-cta-text { font-size: 0.9375rem; color: var(--t2); margin-bottom: 20px; }

/* ===== FINAL ===== */
.final-section { padding: var(--sec) 0; text-align: center; position: relative; z-index: 2; background: var(--bg); }
.ftitle { margin-bottom: 16px; }
.fsub { font-size: 1.0625rem; color: var(--t2); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }
.fname { font-size: 0.8125rem; color: var(--t3); margin-top: 16px; font-weight: 500; }

/* ===== FOOTER ===== */
.footer { padding: 24px 0; border-top: 1px solid var(--bl); background: var(--bg2); position: relative; z-index: 2; }
.ftr { display: flex; justify-content: space-between; align-items: center; }
.fcopy, .flink { font-size: 0.75rem; color: var(--t3); }
.flink:hover { color: var(--a); }

/* ===== POPUPS ===== */
.popup { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; }
.popup.open { display: flex; }
.popup-bg { position: absolute; inset: 0; background: rgba(26,26,26,0.45); backdrop-filter: blur(6px); animation: fadeIn 0.15s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.popup-box { position: relative; background: var(--s); border-radius: var(--rxl); padding: 36px; max-width: 440px; width: 90%; box-shadow: var(--sx); animation: slideUp 0.25s var(--e); }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.popup-x { position: absolute; top: 14px; right: 14px; font-size: 1.5rem; color: var(--t3); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.15s; }
.popup-x:hover { background: var(--bg2); color: var(--t); }
.popup-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.popup-text { font-size: 0.875rem; color: var(--t2); margin-bottom: 20px; line-height: 1.6; }
.popup-box--quiz { max-width: 480px; }
.qs { margin-top: 20px; }
.qq { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.qo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qopt { padding: 12px 16px; border: 1.5px solid var(--b); border-radius: 8px; font-size: 0.8125rem; font-weight: 500; text-align: center; transition: all 0.2s var(--e); background: var(--s); }
.qopt:hover { border-color: var(--a); background: var(--ab); transform: translateY(-1px); }

/* ===== ADMIN ===== */
.admin { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--s); border-top: 2px solid var(--a); box-shadow: 0 -4px 16px rgba(0,0,0,0.08); padding: 16px 24px; }
.admin-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; font-size: 0.8125rem; }
.admin-b { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.admin-b label { font-size: 0.75rem; color: var(--t3); font-weight: 500; }
.admin-x { font-size: 1.25rem; color: var(--t3); }
.admin-trigger { font-size: 0.75rem; color: var(--t3); opacity: 0.3; transition: opacity 0.2s; padding: 4px 8px; border-radius: 4px; }
.admin-trigger:hover { opacity: 1; background: var(--bl); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root { --sec: 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo { order: -1; max-width: 280px; margin: 0 auto; }
    .hero-photo::before { display: none; }
    .calc-grid { grid-template-columns: 1fr; gap: 32px; }
    .stk-grid { grid-template-columns: repeat(2, 1fr); }
    .principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    :root { --sec: 56px; }
    .container { padding: 0 18px; }
    .nav { display: none; }
    .burger { display: flex; }
    .nav.active { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); padding: 16px 18px; border-bottom: 1px solid var(--b); box-shadow: var(--sl); }
    .hdr .btn { display: none; }
    .hero { padding: 84px 0 48px; }
    .hero-tabs { gap: 6px; }
    .tab { padding: 7px 14px; font-size: 0.75rem; }
    .metrics { gap: 20px; flex-wrap: wrap; }
    .case-grid, .sol-grid { grid-template-columns: 1fr; }
    .stk-grid, .principles { grid-template-columns: 1fr; }
    .qo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ftr { flex-direction: column; gap: 8px; }
    .hero-photo img { max-height: 320px; }
    .crv { font-size: 1.375rem; }
    .cc-m { font-size: 1.375rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal-item { opacity: 1; transform: none; }
    #hero-canvas { display: none; }
}
