/* Light theme in Sionic AI colors: the logo's gray-to-teal gradient on white. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f9f8;
  --ink: #16201f;
  --text: #2c3836;
  --dim: #5b6866;
  --faint: #7d8987;
  --line: #e2ebe9;
  --line-2: #d3dfdc;
  --teal: #3a9b92;
  --teal-strong: #2c8179;
  --teal-soft: #e8f5f3;
  --gray: #8e9493;
  --grad: linear-gradient(100deg, #8e9493 0%, #6aa39d 45%, #3a9b92 100%);
  --code-bg: #f3f7f6;
  --shadow-lg: 0 30px 80px -20px rgba(22, 60, 56, .28), 0 12px 30px -12px rgba(22, 60, 56, .16);
  --shadow-sm: 0 1px 2px rgba(22, 60, 56, .06), 0 6px 20px -8px rgba(22, 60, 56, .12);
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Hiragino Sans', 'Yu Gothic', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --head: Montserrat, var(--sans);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base, var(--bg)); transition: background-color 1.2s linear; color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: min(1140px, 100% - 32px); margin: 0 auto; }
/* Korean breaks lines between words, not inside them. */
:lang(ko) { word-break: keep-all; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Scroll reveal: elements rise into place as they come into view. */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 60, 56, .4); }
.nav-in { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; font: 600 17px/1 var(--head); letter-spacing: -.01em; color: var(--ink); }
.by { width: 1px; height: 18px; background: var(--line-2); }
.sionic img { width: 96px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.langs button { border: 0; background: none; padding: 4px 11px; border-radius: 999px; font-size: 13px; color: var(--dim); white-space: nowrap; transition: color .2s, background .2s; }
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed='true'] { background: var(--teal-soft); color: var(--teal-strong); font-weight: 500; }
.gh { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--dim); }
.gh:hover { color: var(--ink); background: var(--bg-soft); }

/* Hero */
.hero { position: relative; text-align: center; padding: 96px 0 40px; }
/* The page background: soft color fields behind everything. main.js moves their colors through
   mint, pale sky and sage as the page scrolls (--a to --d, --s from 0 to 1). */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --s: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .6; animation: drift 22s ease-in-out infinite alternate; transition: background-color 1.2s linear; }
.blob.a { width: 46vw; height: 46vw; min-width: 420px; min-height: 420px; left: -6vw; top: -8vh; background-color: var(--a, #bfe6e0); translate: 0 calc(var(--s) * 18vh); }
.blob.b { width: 40vw; height: 40vw; min-width: 380px; min-height: 380px; right: -8vw; top: 6vh; background-color: var(--b, #d9e2e1); translate: 0 calc(var(--s) * -14vh); animation-duration: 26s; animation-delay: -8s; }
.blob.c { width: 50vw; height: 50vw; min-width: 460px; min-height: 460px; left: 26vw; bottom: -30vh; background-color: var(--c, #cdeee9); translate: calc(var(--s) * -10vw) calc(var(--s) * -20vh); animation-duration: 30s; animation-delay: -14s; }
.blob.d { width: 30vw; height: 30vw; min-width: 300px; min-height: 300px; right: 10vw; bottom: -12vh; background-color: var(--d, #e4ebef); translate: calc(var(--s) * 8vw) calc(var(--s) * -10vh); animation-duration: 34s; animation-delay: -20s; opacity: .5; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 20px) scale(.96); }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 5px 14px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 13.5px; color: var(--dim); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--teal-soft); }
h1, h2 { font-family: var(--head); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
h1 { margin: 0 0 26px; font-size: clamp(36px, 6vw, 62px); line-height: 1.18; }
.lead { max-width: 740px; margin: 0 auto 6px; font-size: 18.5px; color: var(--text); text-wrap: pretty; }
.lead.dim { color: var(--dim); font-size: 16px; }
.downloads { display: flex; justify-content: center; gap: 14px; margin: 34px 0 14px; flex-wrap: wrap; }
.dl {
  display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 12px 22px 12px 18px; border-radius: 999px; text-align: left;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s;
}
.dl:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 12px 30px -12px rgba(58, 155, 146, .45); }
.dl b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.dl small { display: block; font-size: 12px; color: var(--faint); line-height: 1.3; }
/* The visitor's own platform gets the filled button. */
.dl.primary { background: linear-gradient(135deg, #46a89f, #2c8179); border-color: transparent; color: #fff; }
.dl.primary small { color: rgba(255, 255, 255, .8); }
.dl.primary:hover { box-shadow: 0 14px 34px -12px rgba(44, 129, 121, .6); }
.fine { margin: 0; font-size: 13px; color: var(--faint); }
.version { margin-right: 6px; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--teal-strong); background: var(--teal-soft); }

/* The hero screenshot starts tilted back and stands up as it scrolls into view (--p from 0 to 1). */
.stage { perspective: 1400px; margin-top: 64px; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.hero-shot {
  --p: 0; max-width: 1080px; margin: 0 auto; transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 16deg)) translateY(calc((1 - var(--p)) * 30px)) scale(calc(.93 + var(--p) * .07));
  will-change: transform;
}

/* Sections */
section h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.28; margin: 0 0 48px; }
.features { padding: 130px 0 40px; }
.features h2 { text-align: center; }
.kicker { display: block; margin-bottom: 12px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.features .kicker, .cta .kicker { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  min-width: 0; padding: 34px 34px 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .8); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
/* The reveal transition is on the same element; hover only changes shadow and border. */
.card:hover { border-color: var(--line-2); box-shadow: 0 18px 44px -20px rgba(22, 60, 56, .3); }
.card h3 { margin: 0 0 10px; font-weight: 600; font-size: 21px; color: var(--ink); }
.card p { margin: 0 0 26px; color: var(--dim); text-wrap: pretty; }
.card-shot { margin-top: auto; height: 300px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--bg-soft); }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .8s var(--ease); }
.card:hover .card-shot img { transform: scale(1.025); }
.card.wide { grid-column: 1 / -1; }
.card.wide .card-shot { height: auto; }
.card.wide .card-shot img { height: auto; }
/* The languages card: text and chips on the left, points on the right. */
.card.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 48px; align-items: center; padding-bottom: 8px; background: linear-gradient(135deg, rgba(255, 255, 255, .85) 40%, rgba(244, 249, 248, .7)); }
.card.split .points { margin: 0 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text); background: #fff; transition: border-color .2s, color .2s; }
.chips li:hover { border-color: var(--teal); color: var(--teal-strong); }
.points { margin: 0 0 36px; padding: 0; list-style: none; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 24px; color: var(--dim); font-size: 15px; }
.points li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }

.install { padding: 130px 0 40px; }
.install .card { padding-bottom: 30px; }
.install .card p { margin-bottom: 20px; }
.code { position: relative; margin-top: auto; padding: 14px 72px 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--code-bg); font: 13.5px/1.7 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.code .ps { color: var(--teal); margin-right: 6px; user-select: none; }
.copy { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--dim); font-size: 12.5px; transition: color .2s, border-color .2s; }
.copy:hover { color: var(--teal-strong); border-color: var(--teal); }
.copy.done { color: var(--teal-strong); border-color: var(--teal); }

.cta { position: relative; margin-top: 120px; padding: 120px 0 130px; text-align: center; }
.cta::before { content: ''; position: absolute; left: 50%; top: 40%; width: min(900px, 100%); height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(74, 169, 160, .2), transparent); pointer-events: none; }
.cta .wrap { position: relative; }
.cta h2 { margin-bottom: 18px; }
.cta p { max-width: 560px; margin: 0 auto 32px; color: var(--dim); }
.cta-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 500; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); border-color: var(--teal); }
.btn.solid { background: linear-gradient(135deg, #46a89f, #2c8179); border-color: transparent; color: #fff; }
.btn.solid:hover { box-shadow: 0 14px 34px -12px rgba(44, 129, 121, .6); }

.foot { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .55); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 40px; font-size: 13px; color: var(--faint); }
.foot img { width: 96px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card.split { grid-template-columns: minmax(0, 1fr); }
  .card-shot { height: 240px; }
  .features, .install { padding-top: 90px; }
  .card { padding: 26px 22px 0; }
  .install .card { padding-bottom: 24px; }
}
@media (max-width: 600px) {
  .nav-in { gap: 10px; }
  .by, .sionic { display: none; }
  .brand span { display: none; }
  .langs button { padding: 4px 8px; font-size: 12px; }
  .hero { padding-top: 56px; }
  .lead { font-size: 16px; }
  .dl { width: 100%; min-width: 0; }
  .stage { margin-top: 40px; }
  .shot { border-radius: 10px; }
  .cta { margin-top: 80px; padding: 90px 0 100px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-shot { transform: none; }
  .blob { animation: none; translate: none; }
  .dl, .btn, .card-shot img { transition: none; }
}
