:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-2: #eef2ec;
  --ink: #17221d;
  --muted: #607068;
  --line: #dbe2dc;
  --brand: #146c4a;
  --brand-2: #23a36d;
  --accent: #f59e55;
  --danger: #b42318;
  --shadow: 0 20px 55px rgba(23, 34, 29, .1);
  --radius: 22px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 360px; pointer-events: none; background: radial-gradient(circle at 12% 0%, rgba(35,163,109,.14), transparent 42%), radial-gradient(circle at 85% 0%, rgba(245,158,85,.12), transparent 35%); z-index: -1; }
img { max-width: 100%; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(219,226,220,.8); background: rgba(247,248,244,.9); backdrop-filter: blur(18px); }
.nav-shell { width: min(1180px, calc(100% - 32px)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 850; letter-spacing: -.03em; }
.brand-logo { display: block; width: 140px; height: 36px; object-fit: contain; }
.footer-brand { width: fit-content; padding: 5px 9px; border-radius: 10px; background: #f7f8f4; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 22px rgba(20,108,74,.22); }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a { padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav-cta { padding: 10px 16px !important; color: white !important; background: var(--ink) !important; }
.menu-button { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 11px; }
.language-switcher { position: relative; flex: 0 0 auto; }
.language-button { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: 13px; font-weight: 800; box-shadow: 0 5px 16px rgba(23,34,29,.06); }
.language-menu { position: absolute; z-index: 80; top: calc(100% + 9px); inset-inline-end: 0; width: 210px; max-height: 430px; overflow-y: auto; display: none; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.language-menu.open { display: grid; }
.language-menu a { padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; }
.language-menu a:hover, .language-menu a[aria-current="page"] { color: var(--brand); background: var(--surface-2); }
.footer-language-bar { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 0 0 34px; padding: 22px 0 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-language-bar a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid transparent; border-radius: 11px; color: #bccbc3; text-decoration: none; font-size: 14px; }
.footer-language-bar a span { color: #6f8b7c; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.footer-language-bar a:hover, .footer-language-bar a[aria-current="page"] { border-color: rgba(255,255,255,.18); color: white; background: rgba(255,255,255,.04); }
.footer-language-bar a[aria-current="page"] span { color: white; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.hero { padding: 74px 0 40px; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand-2); }
.hero h1 { max-width: 690px; margin: 18px 0 20px; font: 700 clamp(42px, 6vw, 76px)/.98 var(--serif); letter-spacing: -.055em; }
.hero h1 span { color: var(--brand); }
.hero-copy { max-width: 620px; color: var(--muted); font-size: 18px; }
.proof-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.proof-pill { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); color: #435149; font-size: 13px; font-weight: 700; }

.studio { border: 1px solid rgba(20,108,74,.18); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); overflow: hidden; }
.studio-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.studio-title { margin: 0; font-size: 17px; }
.privacy-badge { color: var(--brand); font-size: 12px; font-weight: 800; }
.engine-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; background: var(--surface-2); }
.engine-tab { border: 0; border-radius: 12px; padding: 11px; color: var(--muted); background: transparent; font-weight: 800; }
.engine-tab.active { color: var(--ink); background: white; box-shadow: 0 4px 14px rgba(23,34,29,.08); }
.engine-note { padding: 0 22px 14px; color: var(--muted); font-size: 13px; }
.studio-body { padding: 22px; }
.control-grid { display: grid; grid-template-columns: minmax(0, 1fr) 130px 130px; gap: 12px; margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.field select, .field input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: white; padding: 0 11px; color: var(--ink); }
.editor-wrap { position: relative; }
.studio textarea { width: 100%; min-height: 230px; resize: vertical; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfa; color: var(--ink); padding: 18px; outline: none; line-height: 1.7; }
.studio textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(35,163,109,.1); }
.editor-meta { display: flex; justify-content: space-between; gap: 14px; margin: 8px 2px 0; color: var(--muted); font-size: 12px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.preset { border: 1px solid var(--line); border-radius: 999px; background: white; padding: 7px 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.preset:hover { border-color: var(--brand-2); color: var(--brand); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); padding: 0 17px; font-weight: 800; text-decoration: none; }
.btn-primary { border-color: var(--brand); color: white; background: var(--brand); box-shadow: 0 9px 20px rgba(20,108,74,.2); }
.btn-primary:hover { background: #0f5b3e; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.status { min-height: 26px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.status.error { color: var(--danger); }
.progress { height: 7px; margin-top: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .3s; }
.audio-result { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.audio-result audio { width: 100%; }

.section { padding: 76px 0; }
.section-soft { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section h2 { margin: 0 0 12px; font: 700 clamp(31px, 4vw, 48px)/1.08 var(--serif); letter-spacing: -.035em; }
.section-head p, .lead { color: var(--muted); font-size: 17px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #e1f3e9; color: var(--brand); font-weight: 900; }
.card h3 { margin: 18px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.tool-card { color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-card small { display: block; margin-top: 18px; color: var(--brand); font-weight: 800; }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.compare table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: #f8faf7; }

.page-hero { padding: 68px 0 38px; }
.page-hero .breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.page-hero h1 { max-width: 850px; margin: 0 0 18px; font: 700 clamp(38px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -.045em; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 18px; }
.article-shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto 80px; display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 52px; align-items: start; }
.article { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.article h2 { margin: 44px 0 12px; font: 700 32px/1.15 var(--serif); letter-spacing: -.025em; }
.article h3 { margin: 30px 0 8px; font-size: 20px; }
.article p, .article li { color: #35443c; }
.article li + li { margin-top: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.article th, .article td { padding: 12px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.article th { background: var(--surface-2); }
.article .note { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--brand-2); border-radius: 0 12px 12px 0; background: #eef8f2; }
.sidebar-box { position: sticky; top: 94px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.sidebar-box h2 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; }
.sidebar-box a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; }
.sidebar-box a:last-child { border: 0; }

.tool-shell { width: min(1000px, calc(100% - 32px)); margin: 0 auto 80px; }
.language-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.language-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; text-decoration: none; transition: transform .18s, border-color .18s; }
.language-card:hover { transform: translateY(-2px); border-color: var(--brand-2); }
.language-card span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.language-explainer { max-width: 850px; margin: 38px auto 0; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.method-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #f8faf7; }
.method-card > span { color: var(--brand-2); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.method-card h2 { margin: 12px 0 8px; font: 700 24px/1.15 var(--serif); }
.method-card p { margin: 0; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.check-grid p { margin: 5px 0 0; font-size: 14px; }
.tool-panel { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.dropzone { padding: 34px 20px; border: 2px dashed #b9c8be; border-radius: 18px; background: #f8faf7; text-align: center; }
.dropzone.dragging { border-color: var(--brand); background: #eef8f2; }
.output-panel { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.output-number { font: 700 46px/1 var(--serif); color: var(--brand); }

.site-footer { padding: 48px 0 28px; border-top: 1px solid var(--line); background: #13231c; color: #dce7e1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-size: 14px; color: white; }
.footer-grid a { display: block; width: fit-content; margin: 7px 0; color: #afc1b7; text-decoration: none; font-size: 13px; }
.footer-copy { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8fa399; font-size: 12px; }

.consent-banner { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: auto; padding: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: #13231c; color: white; box-shadow: var(--shadow); }
.consent-banner span { flex: 1 1 390px; font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .article-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-copy { font-size: 16px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar-box { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .language-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-shell { min-height: 62px; }
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; inset: 62px 0 auto; padding: 12px 16px 18px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .language-switcher { margin-inline-start: 0; }
  .language-button { min-height: 38px; padding-inline: 10px; }
  .language-menu { position: fixed; top: 66px; left: 16px; right: 16px; width: auto; max-height: calc(100vh - 90px); grid-template-columns: 1fr 1fr; }
  .footer-language-bar { gap: 8px 12px; }
  .footer-language-bar a { padding: 7px 8px; font-size: 13px; }
  .hero h1 { font-size: 46px; }
  .studio-head { align-items: flex-start; flex-direction: column; }
  .control-grid { grid-template-columns: 1fr 1fr; }
  .control-grid .field:first-child { grid-column: 1 / -1; }
  .card-grid, .footer-grid, .language-grid, .method-grid, .check-grid { grid-template-columns: 1fr; }
  .article { padding: 24px 20px; }
  .section { padding: 58px 0; }
}
