:root {
    --bg-primary: #0A0A0A;
    --text-primary: #FAF8F2;
    --text-secondary: #A1A1AA;
    --text-tertiary: #6B6B74;
    --accent: #38BDF8;
    --accent-dim: rgba(56, 189, 248, 0.14);
    --border: rgba(255, 255, 255, 0.08);
    --font-sans: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

header { position: fixed; top: 20px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; }
.header-inner {
    display: flex; align-items: center; gap: 28px;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.6); border-radius: 999px; padding: 10px 14px 10px 10px;
}
.logo { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--text-primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; transition: transform .15s ease; }
.logo:hover { transform: scale(1.08); }
nav { display: flex; gap: 22px; align-items: center; }
nav a { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-secondary); transition: color .15s ease, transform .15s ease; white-space: nowrap; display: inline-block; }
nav a:hover { color: var(--text-primary); transform: translateY(-1px); }
nav a.active { color: var(--text-primary); }
nav .nav-contact { background: var(--text-primary); color: var(--bg-primary); padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; border: none; cursor: pointer; transition: transform .15s ease; }
nav .nav-contact:hover { transform: scale(1.05); }
.nav-contact-group { position: relative; }
.nav-contact-panel { position: absolute; top: 100%; right: 0; margin-top: 10px; min-width: 150px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: rgba(22, 23, 26, 0.95); border: 1px solid var(--border); border-radius: 16px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.nav-contact-group:hover .nav-contact-panel, .nav-contact-group:focus-within .nav-contact-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-contact-panel a { padding: 8px 10px; border-radius: 10px; }
.nav-contact-panel a:hover { background: rgba(255,255,255,0.06); transform: none; }

.ea-wrap { max-width: 820px; margin: 0 auto; padding: 128px 24px 100px; }
.ea-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 28px; transition: color .2s; }
.ea-back:hover { color: var(--text-primary); }
.ea-back svg { width: 16px; height: 16px; }

.ea-hero { text-align: center; margin-bottom: 44px; }
.ea-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; display: inline-block; }
.ea-hero h1 { font-weight: 500; letter-spacing: -0.03em; font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 16px; }
.ea-lede { font-size: 16px; line-height: 1.7; color: var(--text-secondary); max-width: 460px; margin: 0 auto; }

.ea-tool { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.ea-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ea-preset { font-size: 12px; font-weight: 600; color: var(--text-secondary); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.ea-preset:hover, .ea-preset.is-active { color: var(--bg-primary); background: var(--accent); border-color: var(--accent); }

.ea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ea-curve-panel { display: flex; justify-content: center; }
.ea-svg { width: 100%; max-width: 280px; touch-action: none; }
.ea-svg-bg { fill: rgba(255,255,255,0.03); }
.ea-axis { stroke: rgba(255,255,255,0.15); stroke-width: 1.5; }
.ea-guide { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0.5; }
.ea-path { fill: none; stroke: var(--text-primary); stroke-width: 3; stroke-linecap: round; }
.ea-anchor { fill: var(--text-tertiary); }
.ea-handle { fill: var(--accent); cursor: grab; stroke: var(--bg-primary); stroke-width: 2; }
.ea-handle:active { cursor: grabbing; }

.ea-preview-panel { display: flex; flex-direction: column; gap: 16px; }
.ea-track { position: relative; height: 48px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 999px; }
.ea-ball { position: absolute; top: 50%; left: 0; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--accent); box-shadow: 0 4px 14px -4px rgba(56,189,248,0.6); }
.ea-play { align-self: flex-start; background: var(--text-primary); color: var(--bg-primary); border: none; border-radius: 999px; padding: 10px 22px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .15s ease; }
.ea-play:hover { transform: scale(1.03); }
.ea-output { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ea-output code { flex: 1; font-size: 13px; color: var(--accent); font-family: ui-monospace, 'SF Mono', Menlo, monospace; overflow-wrap: break-word; }
.ea-copy { background: rgba(255,255,255,0.08); border: none; color: var(--text-primary); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; flex-shrink: 0; transition: background .15s ease; }
.ea-copy:hover { background: rgba(255,255,255,0.16); }
.ea-copied { font-size: 12px; color: var(--accent); }

.ea-faq { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 56px; }
.ea-faq h2 { font-weight: 500; letter-spacing: -0.02em; font-size: 20px; margin-bottom: 20px; }
.ea-faq-item { padding: 18px 0; border-top: 1px solid var(--border); }
.ea-faq-item:first-of-type { border-top: none; }
.ea-faq-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ea-faq-item p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); max-width: 620px; }
.ea-faq-item code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; color: var(--accent); }

footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 40px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-name { font-weight: 700; font-size: 14px; }
.footer-status { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .header-inner { gap: 14px; padding: 8px 10px 8px 8px; }
    nav { gap: 12px; }
    .ea-wrap { padding: 108px 20px 80px; }
    .ea-tool { padding: 20px; }
    .ea-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}
