@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Playfair+Display:ital,wght@1,500&display=swap');

:root { font-family: 'DM Sans', sans-serif; color: #e9ece8; background: #11151b; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 80% 35%, #202930 0, #11151b 52%, #10151a 100%); }
button { font: inherit; }
.shell { width: min(1220px, calc(100% - 96px)); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 34px 0; border-bottom: 1px solid #30383b; font-size: 14px; }
.brand { font-weight: 700; letter-spacing: -.03em; }
.brand-mark { display: inline-block; margin-right: 9px; color: #dbedac; font-size: 23px; vertical-align: -2px; }
.brand-muted, .topbar-note { color: #8e9999; font-weight: 400; }
.topbar-note { font-size: 12px; }
.workspace { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(40px, 9vw, 160px); align-items: center; padding: 70px 4% 82px; }
.intro { align-self: center; padding-bottom: 56px; }
.eyebrow { color: #c5d99a; font: 500 11px 'DM Mono', monospace; letter-spacing: .13em; }
.status-dot { display: inline-block; height: 7px; width: 7px; margin-right: 9px; border-radius: 50%; background: #c8df99; box-shadow: 0 0 13px #b9d49188; }
h1 { max-width: 660px; margin: 28px 0 19px; font-size: clamp(64px, 7.3vw, 112px); line-height: .98; font-weight: 500; letter-spacing: -.075em; }
h1 em { display: block; color: #d8eab4; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: -.055em; white-space: nowrap; }
.subtitle { color: #9eaaa7; font-size: 15px; line-height: 1.6; }
.calculator { background: #1b2328; border: 1px solid #364144; border-radius: 26px; padding: 19px; box-shadow: 0 32px 85px #05090d76, inset 0 1px #ffffff10; }
.display { height: 153px; padding: 29px 18px 18px; display: flex; flex-direction: column; align-items: end; justify-content: end; overflow: hidden; }
.expression { color: #8e9d99; font: 400 14px 'DM Mono', monospace; min-height: 23px; white-space: nowrap; }
.result { width: 100%; text-align: right; font-size: clamp(38px, 4vw, 56px); line-height: 1.15; letter-spacing: -.06em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.key { border: 1px solid #354144; background: #263137; color: #f1f2ed; border-radius: 15px; height: 69px; cursor: pointer; font-size: 22px; font-weight: 500; transition: background .15s, transform .15s, border-color .15s; }
.key:hover { background: #354248; border-color: #52605d; transform: translateY(-2px); }
.key:active { transform: translateY(1px) scale(.97); }
.key:focus-visible { outline: 2px solid #ddedb7; outline-offset: 2px; }
.key-muted { background: #303c3c; color: #c5d6c0; font-size: 18px; }
.key-operator { color: #dceeb3; background: #303b37; }
.key-zero { grid-column: span 2; text-align: left; padding-left: 30px; }
.key-equals { color: #1b2821; background: #d8eab4; border-color: #d8eab4; font-size: 27px; }
.key-equals:hover { color: #16241c; background: #edf8d2; border-color: #edf8d2; }
.calculator-foot { display: flex; justify-content: space-between; align-items: center; padding: 17px 5px 1px; color: #738781; font: 500 10px 'DM Mono', monospace; letter-spacing: .12em; }
.foot-icon { font-size: 17px; color: #a5bb95; }
.page-footer { display: flex; justify-content: space-between; padding: 21px 0 29px; border-top: 1px solid #30383b; color: #7d8a8a; font-size: 12px; }
@media (max-width: 800px) { .shell { width: min(470px, calc(100% - 36px)); } .topbar { padding: 22px 0; } .topbar-note { display: none; } .workspace { display: flex; flex-direction: column; gap: 32px; padding: 58px 0 64px; align-items: stretch; } .intro { padding: 0; } h1 { font-size: clamp(59px, 12vw, 82px); margin: 22px 0 12px; } .subtitle { margin: 0; } .calculator { width: 100%; } }
@media (max-width: 380px) { .key { height: 61px; } .calculator { padding: 13px; } .display { height: 130px; } }
@media (prefers-reduced-motion: reduce) { .key { transition: none; } }
