/* MeldCAD website — Ember theme (matches the app's default look) */
@font-face { font-family: "Sora"; src: url("fonts/sora.woff") format("woff"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans.woff") format("woff"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff") format("woff"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0c0a19; --bg-2: #110d22; --bg-3: #1a1120; --card: #120e24; --card-2: #0f0c1f;
  --line: #241d3d; --line-2: #2a2347; --line-3: #3a3160;
  --text: #ece8ff; --text-2: #c9c3e6; --text-3: #b4aed4; --text-4: #a49fc2;
  --purple: #6d4aff; --purple-2: #a874ff; --purple-3: #c4b0ff;
  --orange: #ff8a3d; --orange-2: #ffb27a; --orange-soft: rgba(255, 138, 61, .18);
  --display: "Sora", system-ui, sans-serif; --body: "IBM Plex Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
a { color: var(--purple-3); }
a:hover { color: var(--orange-2); }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--orange-2); color: #1a0f08; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* beta notice */
.beta-strip { background: linear-gradient(90deg, #2a1c78, #33205e 55%, #4a2a2a); color: #ffe3cc; text-align: center; font-size: 15px; padding: 11px 24px; border-bottom: 1px solid #4a2e2a; }
.beta-strip strong { display: inline-block; color: #1a0f08; background: var(--orange-2); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; padding: 2px 9px; border-radius: 999px; margin-right: 10px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.wordmark span { color: var(--orange); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 15px; }
.nav-links a { color: var(--text-2); text-decoration: none; padding: 12px 0; }
.nav-links a:hover { color: var(--orange-2); }
.lang-switch { display: flex; gap: 2px; background: #15112a; border: 1px solid #2e2650; border-radius: 10px; padding: 2px; }
.lang-switch button { min-width: 44px; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 600 13px/1 var(--body); letter-spacing: .04em; cursor: pointer; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--purple); color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #6d4aff 0%, #7d55ff 70%, #ff8a3d 140%); box-shadow: 0 12px 40px -12px var(--orange); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-3); font-weight: 500; }
.btn-ghost:hover { color: var(--text); border-color: var(--purple-2); }
.btn-warm { color: #1a0f08; background: var(--orange-2); }
.btn-warm:hover { color: #1a0f08; filter: brightness(1.05); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.nav-links .btn-primary { color: #fff; padding: 0 18px; }

/* hero */
.hero { background: radial-gradient(900px 420px at 50% 100%, var(--orange-soft), transparent 70%), linear-gradient(180deg, #0c0a19 0%, #100c1e 55%, #1a1120 100%); padding: 88px 0 0; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.pill { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-2); border: 1px solid #4a2e2a; background: #1d1220; padding: 8px 14px; border-radius: 999px; }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.035em; max-width: 16ch; }
.grad { background: linear-gradient(90deg, #6d4aff, #a874ff 55%, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.cta-row .btn { min-height: 54px; padding: 0 28px; font-size: 17px; }

/* app window mock-up */
.app-window { width: 100%; max-width: 1080px; margin-top: 48px; border: 1px solid #2e2650; border-bottom: 0; border-radius: 16px 16px 0 0; background: #0f0c1f; box-shadow: 0 -10px 80px -30px #6d4aff, 0 30px 120px -40px var(--orange); overflow: hidden; text-align: left; }
.aw-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #120e24; }
.aw-name { font-family: var(--display); font-weight: 700; font-size: 14px; background: linear-gradient(90deg, #a874ff, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aw-file { font-family: var(--mono); font-size: 12px; color: #8c86ad; }
.aw-tools { margin-left: auto; display: flex; gap: 8px; }
.aw-chip { font-size: 12px; color: var(--text-2); background: #1c1736; border: 1px solid #2e2650; padding: 5px 10px; border-radius: 6px; white-space: nowrap; }
.aw-chip.on { color: #fff; background: var(--purple); border-color: var(--purple); }
.aw-body { display: flex; }
.aw-rail { width: 52px; flex-shrink: 0; border-right: 1px solid var(--line); background: #110d22; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; }
.aw-rail i { width: 30px; height: 30px; border-radius: 8px; background: #1a1532; }
.aw-rail i:first-child { background: #2a2150; border-bottom: 2px solid var(--orange); }
.aw-view { flex: 1; min-width: 0; background: linear-gradient(180deg, #0c0a19 0%, #100c1e 55%, #1a1120 82%, #24141a 100%); }
.aw-view svg { display: block; width: 100%; height: auto; }
.aw-timeline { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: #110d22; font-family: var(--mono); font-size: 12px; color: #a49fc2; overflow: hidden; white-space: nowrap; }
.aw-timeline span { background: #1c1736; border: 1px solid #2e2650; padding: 4px 9px; border-radius: 6px; }
.aw-timeline .tl-label { background: none; border: 0; padding: 0; color: #8c86ad; }
.aw-timeline .tl-now { background: #2a2150; border-color: var(--purple); border-bottom: 2px solid var(--orange); color: var(--text); }
@media (max-width: 640px) { .aw-tools .aw-chip:not(.on) { display: none; } .aw-rail { display: none; } }

/* sections */
section { padding: 104px 0; }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-2); }
h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.03em; }
h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.sec-head p { margin: 0; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); }
.fade { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; color: var(--text-3); line-height: 1.6; font-size: 15.5px; }
.alt .card { background: var(--card-2); }
.num { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: #fff; background: linear-gradient(135deg, #6d4aff, #8d5cff 65%, #ff8a3d 150%); }
.formats { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-2); }
.tag { font-family: var(--mono); font-size: 13px; color: var(--purple-3); border: 1px solid var(--line-3); padding: 4px 10px; border-radius: 6px; }
.tag.warm { color: var(--orange-2); border-color: #4a2e2a; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step { border-top: 2px solid var(--purple); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.step:nth-child(2) { border-color: #8a62ff; }
.step:nth-child(3) { border-color: var(--orange); }
.step .n { font-family: var(--mono); font-size: 15px; color: var(--purple-2); }
.step:nth-child(3) .n { color: var(--orange-2); }
.step h3 { font-size: 22px; }
.step p { margin: 0; color: var(--text-3); line-height: 1.6; }

.lang-panel { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: 28px; border-radius: 16px; border: 1px solid #3a2a4a; background: radial-gradient(500px 200px at 100% 100%, var(--orange-soft), transparent 70%), #15112a; }
.lang-panel > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.lang-panel h3 { font-size: 22px; font-weight: 700; }
.lang-panel p { margin: 0; color: var(--text-2); line-height: 1.6; }
.lang-big { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-big button { min-height: 48px; padding: 0 18px; border-radius: 12px; font: 16px var(--body); cursor: pointer; border: 1px solid var(--line-3); background: var(--card-2); color: var(--text); }
.lang-big button[aria-pressed="true"] { border-color: var(--orange); background: #2a2150; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > .sec-head { flex: 1 1 380px; margin: 0; }
.chips { flex: 1 1 460px; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 15px; background: #1a1532; border: 1px solid #332a5c; padding: 10px 16px; border-radius: 999px; }

.platform { border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; border: 1px dashed var(--line-3); background: var(--card-2); }
.platform h3 { font-size: 22px; font-weight: 700; color: var(--text-2); }
.platform .status { align-self: flex-start; font-size: 14px; color: var(--text-2); border: 1px solid var(--line-3); padding: 6px 12px; border-radius: 999px; }
.platform.live { border: 1px solid var(--purple); background: radial-gradient(400px 160px at 50% 120%, var(--orange-soft), transparent 70%), #15112a; }
.platform.live h3 { color: var(--text); }
.platform.live .status { color: #1a0f08; background: var(--orange-2); border-color: var(--orange-2); font-weight: 600; }
.platform.testing .status { color: var(--purple-3); border-color: var(--purple); }

.os-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.os-actions .mono { font-family: var(--mono); font-size: 14px; color: var(--text-4); }
.os-note { margin: 20px 0 0; color: var(--text-4); font-size: 14.5px; max-width: 760px; }
[hidden] { display: none !important; }

/* beta sign-up */
.beta { padding: 112px 0; background: radial-gradient(700px 360px at 50% 120%, var(--orange-soft), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-3)); border-top: 1px solid var(--line); }
.beta .wrap { max-width: 760px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.beta h2 { font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.beta p { margin: 0; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.beta .note { color: #ffe3cc; font-size: 15.5px; border: 1px solid #4a2e2a; background: #1d1220; border-radius: 12px; padding: 14px 18px; }
.signup { width: 100%; max-width: 560px; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.signup label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.signup .full { grid-column: 1 / -1; }
.signup input { min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--card-2); color: var(--text); font: 16px var(--body); }
.signup input:focus { border-color: var(--purple-2); }
.signup .btn { grid-column: 1 / -1; min-height: 54px; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5em; margin: 0; font-size: 15.5px; }
.form-msg.ok { color: #9ff0c3; }
.form-msg.err { color: #ffb3a6; }
.small { font-size: 14px; color: var(--text-4); }
@media (max-width: 560px) { .signup { grid-template-columns: 1fr; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--text-4); }
.site-footer .wordmark { font-size: 16px; }
.foot-left { display: flex; flex-direction: column; gap: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a { color: var(--text-4); text-decoration: none; padding: 12px 0; }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 80px 24px; }
