/* s2speech.com — AIVISION public site. One file, no framework. */
:root {
  --ink: #0b1530; --ink-2: #1f2a44; --muted: #5b6785; --line: #e3e8f2; --bg: #ffffff; --bg-alt: #f5f7fc;
  --brand: #2563eb; --brand-2: #1d4ed8; --brand-soft: #e8efff; --accent: #22d3ee; --good: #059669;
  --radius: 16px; --shadow: 0 1px 2px rgba(11, 21, 48, .06), 0 8px 28px rgba(11, 21, 48, .06);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16.5px; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 13.5px; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 650;
  font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16.5px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center-row { justify-content: center; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(227, 232, 242, .8); }
.nav-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-size: 17px; letter-spacing: .01em; }
.brand small { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { color: var(--ink-2); font-weight: 560; font-size: 15px; padding: 8px 11px; border-radius: 10px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { background: var(--bg-alt); text-decoration: none; color: var(--brand); }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.lang-switch { font-weight: 700 !important; letter-spacing: .04em; }
.menu-toggle, .menu-btn { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #1e40af 0%, transparent 60%),
  linear-gradient(180deg, #0b1530 0%, #0f1f46 100%); color: #fff; padding: 84px 0 56px; }
.hero-glow { position: absolute; inset: auto -20% -40% auto; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 19px; color: #c7d4f2; max-width: 620px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero-note { margin-top: 16px; font-size: 14px; color: #9fb2de; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand); margin-bottom: 14px; }
.hero .eyebrow { color: #93c5fd; background: rgba(255, 255, 255, .07); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px;
  padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.wave { display: flex; align-items: center; gap: 4px; height: 70px; margin-bottom: 18px; }
.wave i { flex: 1; height: var(--h); border-radius: 4px; background: linear-gradient(180deg, #60a5fa, #22d3ee);
  animation: pulse 1.6s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: .2s; } .wave i:nth-child(3n+1) { animation-delay: .45s; }
@keyframes pulse { 50% { transform: scaleY(.55); opacity: .7; } }
.transcript p { font-size: 14.5px; color: #e2e8f8; margin: 0 0 10px; }
.transcript .t { font-family: var(--mono); font-size: 12px; color: #7dd3fc; margin-right: 8px; }
.typing { color: #fff !important; }
.caret { display: inline-block; width: 2px; height: 1em; background: #22d3ee; vertical-align: -2px; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chips span { font-size: 12.5px; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: rgba(96, 165, 250, .16); color: #bfdbfe; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; position: relative; }
.stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 18px 20px; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.stat span { font-size: 13.5px; color: #a9badf; }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: #0b1530; color: #e2e8f8; }
.section.dark h2 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; max-width: none; text-align: left; }
.band { border-bottom: 1px solid var(--line); background: #fff; }
.countries .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; padding: 20px 0; }
.country { font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card.highlight { border-color: #bfd3ff; background: linear-gradient(180deg, #f5f8ff, #fff); }
.product .tagline { color: var(--muted); }
.icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); margin-bottom: 16px; }
.icon::before { content: ""; width: 24px; height: 24px; background: var(--brand); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.icon-mic { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M12 17v5'/%3E%3C/svg%3E"); }
.icon-wave { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 12h2M7 7v10M11 4v16M15 8v8M19 10v4M21 12h0'/%3E%3C/svg%3E"); }
.icon-chat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.icon-phone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.icon-mail { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.checks { list-style: none; padding: 0; margin: 16px 0 20px; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.app h3 { font-size: 17px; }
.app p { font-size: 15px; color: var(--muted); }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pills li { padding: 12px 20px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-weight: 600; }

/* benchmark */
.bench { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.table-card.wide { margin-bottom: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
.bench-table td:nth-child(2) b { color: var(--brand); }
.bar { display: block; height: 6px; background: var(--bg-alt); border-radius: 3px; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.bar.base i { background: #cbd5e1; }
.avg td { font-weight: 800; background: #f8fbff; }
.price-table td small { display: block; color: var(--muted); font-size: 13px; }
.num { text-align: right; white-space: nowrap; }
.minute-cards { margin-bottom: 28px; }
.minute-cards .big, .price-box strong { display: block; font-size: 34px; font-weight: 800; color: var(--brand); }

/* developers, pricing teaser, founder */
.dev { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.code { margin: 0; background: #050b1d; border: 1px solid #1f2a44; border-radius: 16px; padding: 22px; overflow-x: auto;
  font: 13.5px/1.65 var(--mono); color: #c7d2fe; white-space: pre; }
.price-teaser { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.price-box { text-align: center; border-radius: 22px; padding: 40px; background: linear-gradient(160deg, #eef3ff, #fff); border: 1px solid #c7d7fe; }
.price-box strong { font-size: 64px; }
.founder { display: flex; gap: 36px; align-items: center; }
.founder img { border-radius: 50%; flex: none; box-shadow: 0 12px 30px rgba(37, 99, 235, .25); }
.founder h2 a { color: var(--ink); }
.role { color: var(--brand); font-weight: 700; margin-top: -6px; }
.contact-line { font-weight: 600; }

/* faq */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--brand); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); }

/* final cta, page hero */
.final-cta { background: linear-gradient(120deg, #1d4ed8, #0b1530 70%); color: #fff; padding: 72px 0; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #c7d4f2; font-size: 18px; }
.page-hero { background: linear-gradient(180deg, #f2f6ff, #fff); padding: 64px 0 36px; }
.page-hero .lede { font-size: 19px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.big-text { font-size: 20px; color: var(--ink-2); }
.numbers { list-style: none; padding: 0; margin: 0; }
.numbers li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.numbers li:last-child { border: 0; }
.numbers strong { display: block; font-size: 24px; color: var(--brand); }
.numbers span { color: var(--muted); font-size: 14px; }
.country-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.contact-card h2 { font-size: 19px; }
.big-link { font-size: 22px; font-weight: 750; }

/* blog */
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.cat-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.cat-nav a[aria-current="page"], .cat-nav a:hover { background: var(--brand); color: #fff; border-color: var(--brand); text-decoration: none; }
.cat-nav small { opacity: .7; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cover { display: flex; align-items: flex-end; height: 150px; padding: 16px; color: #fff; font-weight: 750; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(135deg, #1d4ed8, #0b1530); position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cover:hover { text-decoration: none; }
.cat-tts { background: linear-gradient(135deg, #7c3aed, #1e1b4b); }
.cat-llm { background: linear-gradient(135deg, #0891b2, #082f49); }
.cat-industry { background: linear-gradient(135deg, #059669, #052e2b); }
.cat-guide { background: linear-gradient(135deg, #ea580c, #431407); }
.cat-voice-ai { background: linear-gradient(135deg, #db2777, #3b0764); }
.cat-company { background: linear-gradient(135deg, #2563eb, #172554); }
.post-card-body { padding: 20px 22px 24px; }
.post-card h3 { font-size: 18px; }
.post-card h3 a { color: var(--ink); }
.post-card p { color: var(--muted); font-size: 15px; }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; font-weight: 650; }
.post-head { background: linear-gradient(180deg, #f2f6ff, #fff); padding: 56px 0 28px; }
.post-head h1 { font-size: clamp(30px, 4.2vw, 46px); }
.post-lede { font-size: 19px; color: var(--muted); }
.byline { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: var(--muted); }
.byline img { border-radius: 50%; }
.byline a { font-weight: 700; }
.post-grid { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 48px; justify-content: center; padding: 24px 0 64px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc-title { font-weight: 750; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { padding: 5px 0 5px 14px; }
.toc li.l3 { padding-left: 26px; font-size: 13.5px; }
.toc a { color: var(--ink-2); }
.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 28px; margin-top: 1.8em; scroll-margin-top: 90px; color: var(--ink); }
.prose h3 { font-size: 21px; margin-top: 1.5em; scroll-margin-top: 90px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 12px 12px 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #0b1530; color: #e2e8f8; padding: 18px; border-radius: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose strong { color: var(--ink); }
.post-faq { margin-top: 2.4em; }
.post-cta { margin: 2.4em 0; padding: 28px; border-radius: 18px; background: linear-gradient(120deg, #eef3ff, #f5fbff); border: 1px solid #c7d7fe; }
.post-cta h2 { margin-top: 0; font-size: 24px; }
.author-box { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; margin: 2em 0; }
.author-box img { border-radius: 50%; flex: none; }
.author-box h3 { margin: 0 0 6px; }
.author-box p { font-size: 15px; margin-bottom: 6px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-size: 13px; background: var(--bg-alt); border-radius: 999px; padding: 4px 10px; color: var(--muted); }

/* footer */
.foot { background: #0b1530; color: #a9badf; padding: 56px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand { color: #fff; }
.foot .brand small { color: #93c5fd; }
.foot h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.foot a { display: block; color: #c7d4f2; margin: 6px 0; }
.foot-contact a { display: inline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #1f2a44; margin-top: 36px; padding-top: 20px; font-size: 14px; }
.foot-bottom a { display: inline; margin: 0; }

/* responsive */
@media (max-width: 1080px) {
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 10px; }
  .menu-btn span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow); }
  .menu-toggle:checked ~ .nav-links { display: flex; }
  .nav-sep { display: none; }
  .hero-grid, .bench, .dev, .price-teaser, .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 60px 0; }
  .cards-3, .cards-5 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat strong { font-size: 22px; }
  .founder { flex-direction: column; text-align: center; }
  .row-head { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .prose { font-size: 16.5px; }
  .author-box { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .wave i, .caret { animation: none; } html { scroll-behavior: auto; } }
