:root {
  --canvas: #ffffff;
  --canvas-soft: #fafafb;
  --surface: #f4f5f7;
  --surface-strong: #eef0f3;
  --ink: #171717;
  --body: #565b64;
  --muted: #9aa0a8;
  --hairline: #ececf0;
  --hairline-strong: #dcdee2;

  --sky-light: #cfe7ff;
  --sky-mid: #a8c8e8;
  --link: #0d74ce;
  --link-deep: #0a5ea8;
  --accent: #171717;

  --radius: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 10px -4px rgba(23, 23, 23, 0.14);
  --shadow-md: 0 14px 40px -16px rgba(23, 23, 23, 0.22);
  --shadow-glow: 0 18px 50px -18px rgba(13, 116, 206, 0.42);

  --maxw: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-feature-settings: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 600;
}
.sky {
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 130vh;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 16% -4%, var(--sky-light) 0%, transparent 52%),
    radial-gradient(95% 70% at 92% 6%, color-mix(in srgb, var(--sky-mid) 62%, transparent) 0%, transparent 56%),
    radial-gradient(80% 60% at 50% 120%, color-mix(in srgb, var(--sky-light) 50%, transparent) 0%, transparent 60%);
  animation: skyDrift 22s var(--ease) infinite alternate;
}

@keyframes skyDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-1.5%, 1.6%, 0) scale(1.05); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header {
  position: relative;
  z-index: 5;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand__logo {
  border-radius: 12px;
  box-shadow: 0 6px 16px -6px rgba(23, 23, 23, 0.3);
}

.brand__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tag {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag--mono {
  background: var(--surface);
  color: var(--body);
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  padding: 9px 14px;
  border-radius: 11px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-link--ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  border: 1px solid var(--hairline-strong);
}

.nav-link--ghost:hover {
  background: color-mix(in srgb, var(--sky-light) 40%, transparent);
  border-color: color-mix(in srgb, var(--link) 30%, transparent);
}
.hero {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 40px) 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}

.hero__logo {
  position: relative;
  z-index: 2;
  width: clamp(104px, 18vw, 132px);
  height: auto;
  border-radius: 30px;
  box-shadow: 0 22px 50px -20px rgba(23, 23, 23, 0.42);
  animation: float 6s ease-in-out infinite;
}

.hero__halo {
  position: absolute;
  z-index: 1;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--link) 34%, transparent), transparent 66%);
  filter: blur(18px);
  animation: halo 5.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes halo {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.07); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--body);
  background: color-mix(in srgb, var(--canvas) 70%, transparent);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 6px 14px 6px 11px;
  box-shadow: var(--shadow-sm);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--link);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 18%, transparent);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(34px, 6.4vw, 58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(105deg, var(--link) 0%, var(--link-deep) 48%, #5b3fd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin-top: 20px;
  max-width: 50ch;
  font-size: clamp(15.5px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--body);
}
.download {
  margin-top: 34px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download__primary {
  width: min(100%, 380px);
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--link) 55%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover::after { opacity: 0.6; }
.btn-primary:active { transform: translateY(0); }

.btn-primary__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.btn-primary__icon svg { width: 24px; height: 24px; }

.btn-primary__text {
  position: relative;
  z-index: 1;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.btn-primary__label {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: block;
}

.btn-primary__sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-top: 1px;
}

.btn-primary__ver {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.download__detected {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.download__detected strong { color: var(--body); }

.download__detected .link {
  color: var(--link);
  font-weight: 500;
}

.download__detected .link:hover { color: var(--link-deep); text-decoration: underline; }

.pill__ver.is-soon-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b9791f;
  background: color-mix(in srgb, #f0b542 20%, transparent);
  padding: 2px 6px;
  border-radius: 6px;
}

.btn-primary__ver.is-soon-badge {
  color: #ffce8a;
  background: rgba(255, 255, 255, 0.13);
}

.btn-primary.is-soon { background: #26262b; }
.pill.is-soon { opacity: 0.96; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: 0 18px 44px -16px rgba(23, 23, 23, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.32s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.download__others {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.download__others-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 12px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--canvas) 65%, transparent);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--link) 36%, transparent);
  background: var(--canvas);
  box-shadow: var(--shadow-md);
}

.pill__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
  flex-shrink: 0;
}

.pill__icon svg { width: 22px; height: 22px; }

.pill__text { display: inline-flex; align-items: center; gap: 8px; line-height: 1.1; }
.pill__label { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.pill__ver { font-size: 10.5px; color: var(--muted); }
.pill__req {
  font-size: 10.5px;
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface);
}
.preview {
  margin-top: 56px;
  width: min(100%, 392px);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 30px 60px -28px rgba(23, 23, 23, 0.34);
  overflow: hidden;
  text-align: left;
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
}

.preview__ava { border-radius: 9px; }
.preview__meta { flex: 1; min-width: 0; }
.preview__name { font-size: 13.5px; font-weight: 600; }
.preview__status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--body); }
.online { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.preview__time { font-size: 11px; color: var(--muted); }

.preview__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, var(--canvas-soft), var(--canvas));
}

.bubble {
  max-width: 82%;
  padding: 9px 13px;
  font-size: 13.5px;
  line-height: 1.4;
  border-radius: 15px;
}

.bubble--in {
  align-self: flex-start;
  background: var(--surface-strong);
  color: var(--ink);
  border-top-left-radius: 5px;
}

.bubble--out {
  align-self: flex-end;
  background: #3b82f6;
  color: #fff;
  border-bottom-right-radius: 5px;
}

.bubble--typing {
  display: inline-flex;
  gap: 5px;
  padding: 13px 15px;
}

.bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.4s ease-in-out infinite;
}

.bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.features {
  max-width: var(--maxw);
  margin: clamp(40px, 8vw, 88px) auto 0;
  padding: 0 clamp(20px, 5vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--link) 24%, transparent);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 16px;
  color: var(--link);
  background: color-mix(in srgb, var(--sky-light) 55%, transparent);
}

.feature__icon svg { width: 24px; height: 24px; }

.feature h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.feature p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

.site-footer {
  max-width: var(--maxw);
  margin: clamp(48px, 9vw, 96px) auto 0;
  padding: 26px clamp(20px, 5vw, 40px) 40px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-footer__brand img { border-radius: 7px; }

.site-footer__powered { font-size: 12.5px; color: var(--muted); }
.site-footer__powered strong { color: var(--body); }

.site-footer__url {
  font-size: 12.5px;
  color: var(--link);
  transition: color 0.2s;
}

.site-footer__url:hover { color: var(--link-deep); text-decoration: underline; }


.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.revealed [data-reveal],
[data-reveal].revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .tag--mono { display: none; }
  .features { grid-template-columns: 1fr; }
  .nav-link[href='#download'] { display: none; }
  .btn-primary__ver { display: none; }
  .site-footer { justify-content: center; text-align: center; }
}
