/* ==========================================================================
   Calopic.top — coming soon landing
   Liquid Glass: neutral graphite, frosted layers, one warm orange accent.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #0b0b0c;
  --bg-soft: #121214;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-top: rgba(255, 255, 255, 0.22);
  --well: rgba(0, 0, 0, 0.2);
  --text: #f2f2f4;
  --text-dim: #a6a6ac;
  --text-faint: #6e6e75;
  --accent: #e8702a;
  --accent-hover: #f08140;
  --accent-soft: rgba(232, 112, 42, 0.14);
  --success: #79b58e;
  --danger: #d96b5e;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-pill: 999px;
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 48px rgba(0, 0, 0, 0.38);
  --glass-shadow-strong: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 64px rgba(0, 0, 0, 0.46);
  --font-sans: -apple-system, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Inter, system-ui,
    "Noto Sans SC", "Noto Sans KR", "Noto Sans JP", "Noto Sans Arabic", sans-serif;
  --font-mono: "Cascadia Code", "SF Mono", "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --mid: 180ms;
  --slow: 220ms;
  --container: 1160px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

p,
figure,
blockquote {
  margin: 0;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(232, 112, 42, 0.32);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid rgba(232, 112, 42, 0.7);
  outline-offset: 2px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  max-width: 860px;
}

/* --------------------------------------------------------------------------
   Ambient background
   -------------------------------------------------------------------------- */
#ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.ambient-glow {
  position: fixed;
  inset: -220px 0 auto;
  z-index: -2;
  height: 760px;
  pointer-events: none;
  background:
    radial-gradient(620px 360px at 50% 8%, rgba(232, 112, 42, 0.09), transparent 70%),
    radial-gradient(520px 300px at 78% 24%, rgba(232, 112, 42, 0.05), transparent 70%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.018;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Glass primitives
   -------------------------------------------------------------------------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid var(--stroke);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid var(--stroke);
  box-shadow: var(--glass-shadow-strong);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .glass-strong,
  .waitlist-form,
  .app-window,
  .preview-card,
  .cta-card,
  .faq-item {
    background: #171719;
  }
}

/* --------------------------------------------------------------------------
   Buttons / forms
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 30px rgba(232, 112, 42, 0.18);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 15.5px;
}

.waitlist-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin-top: 30px;
  padding: 7px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid var(--stroke);
  box-shadow: var(--glass-shadow);
  transition: border-color var(--mid) var(--ease);
}

.waitlist-form:focus-within {
  border-color: rgba(232, 112, 42, 0.5);
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
}

.waitlist-input::placeholder {
  color: var(--text-faint);
}

.waitlist-input[aria-invalid="true"] {
  color: #f0b0a9;
}

.waitlist-button {
  flex: none;
  height: 44px;
  padding: 0 22px;
}

.waitlist-button .spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  min-height: 22px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

.form-status[data-kind="success"] {
  color: var(--success);
}

.form-status[data-kind="error"] {
  color: #f0a89f;
}

.form-status[data-kind="info"] {
  color: var(--text-dim);
}

.form-status[data-kind="warning"] {
  color: #e7b96d;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background-color var(--mid) var(--ease), border-color var(--mid) var(--ease);
}

.site-header[data-scrolled="true"] {
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-bottom-color: var(--stroke);
  box-shadow: inset 0 1px 0 var(--stroke-top);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 14px rgba(232, 112, 42, 0.3));
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid rgba(232, 112, 42, 0.28);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: 10px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 550;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--glass);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding-inline: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.lang-switch:hover,
.lang-switch:focus-within {
  background: var(--glass);
  border-color: var(--stroke);
}

.lang-switch svg {
  width: 16px;
  height: 16px;
  flex: none;
  pointer-events: none;
}

.lang-select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 92px;
}

.lang-select option {
  background: var(--bg-soft);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-head {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -0.02em;
}

.section-sub {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 100px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 580px;
  animation: rise-in var(--slow) var(--ease) both;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 550;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 112, 42, 0.6);
}

.hero-mark {
  width: 68px;
  height: 68px;
  margin-top: 26px;
  filter: drop-shadow(0 10px 34px rgba(232, 112, 42, 0.28));
  animation: float-soft 7s ease-in-out infinite;
}

.hero h1 {
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(40px, 5.1vw, 68px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 500px;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 16.5px;
  line-height: 1.65;
}

.hero-privacy {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--text-faint);
  font-size: 12.5px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes float-soft {
  50% {
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   App mock (hero)
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  animation: rise-in var(--slow) 60ms var(--ease) both;
}

.app-window {
  overflow: hidden;
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-strong);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding-inline: 13px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.15);
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.35;
}

.traffic i:nth-child(1) {
  opacity: 0.55;
}

.app-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline: auto;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 550;
}

.app-badge {
  padding: 3px 9px;
  border: 1px solid rgba(232, 112, 42, 0.28);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 600;
}

.app-body {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  min-height: 358px;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 10px;
  border-inline-end: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.12);
}

.side-new {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(232, 112, 42, 0.28);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
}

.side-new svg {
  width: 13px;
  height: 13px;
}

.side-label {
  padding: 7px 10px 4px;
  color: var(--text-faint);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-item.active {
  background: var(--glass);
  color: var(--text);
}

.side-item-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--text-faint);
}

.side-item.active .side-item-dot {
  background: var(--accent);
}

.side-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--stroke);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 10.5px;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--stroke);
  color: var(--text-dim);
  font-size: 11.5px;
}

.mode-chips {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.mode-chip {
  padding: 3px 8px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--text-faint);
  font-size: 9.5px;
  font-weight: 600;
}

.mode-chip.active {
  border-color: rgba(232, 112, 42, 0.4);
  background: var(--accent-soft);
  color: var(--accent);
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.msg {
  display: flex;
  gap: 9px;
  max-width: 94%;
}

.msg-user {
  margin-inline-start: auto;
}

.msg-user p {
  padding: 9px 12px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  border-end-end-radius: 4px;
  background: var(--glass);
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.55;
}

.msg-ai {
  max-width: 100%;
}

.ai-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: rgba(232, 112, 42, 0.12);
}

.msg-body {
  min-width: 0;
}

.ai-name {
  display: block;
  margin-bottom: 4px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 600;
}

.msg-body p {
  color: var(--text-dim);
  font-size: 11.5px;
  line-height: 1.6;
}

.tool-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.12);
  color: var(--text-faint);
  font-size: 9.5px;
}

.tool-chip svg {
  width: 11px;
  height: 11px;
  color: var(--success);
}

.chat-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 14px 14px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--well);
  color: var(--text-faint);
  font-size: 11px;
}

.composer-send {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex: none;
}

.composer-send svg {
  width: 13px;
  height: 13px;
}

.float-card {
  position: absolute;
  inset-block-end: 30px;
  inset-inline-start: -28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: var(--glass-shadow-strong);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 550;
  animation: float-soft 6s 0.8s ease-in-out infinite;
}

.float-spark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 112, 42, 0.7);
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: var(--glass-shadow);
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.feature-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong, var(--stroke-top));
}

.feature-wide {
  grid-column: span 1;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border: 1px solid rgba(232, 112, 42, 0.24);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 17px;
  height: 17px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Preview section
   -------------------------------------------------------------------------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.preview-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: var(--glass-shadow);
}

.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--stroke);
}

.preview-head h3 {
  font-size: 16px;
}

.preview-head p {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mini-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 24px;
}

.mini-msg {
  max-width: 94%;
  font-size: 12px;
  line-height: 1.6;
}

.mini-msg.user {
  align-self: flex-end;
  padding: 9px 12px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  border-end-end-radius: 4px;
  background: var(--glass);
  color: var(--text);
}

.mini-msg.ai {
  display: flex;
  gap: 8px;
  color: var(--text-dim);
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: rgba(232, 112, 42, 0.12);
}

.mini-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  color: var(--text-faint);
  font-size: 10px;
}

.mini-tool svg {
  width: 11px;
  height: 11px;
  color: var(--success);
}

/* IDE preview */
.ide-mock {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 126px;
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 1;
  min-height: 300px;
  background: rgba(10, 10, 12, 0.55);
  font-size: 9.5px;
}

.ide-sidebar {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border-inline-end: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.18);
}

.ide-side-title {
  padding: 4px 6px 8px;
  color: var(--text-faint);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ide-file {
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ide-file.active {
  background: var(--accent-soft);
  color: var(--text);
}

.ide-file.nested {
  padding-inline-start: 16px;
}

.ide-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ide-tabs {
  display: flex;
  border-bottom: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.12);
}

.ide-tab {
  padding: 7px 10px;
  border-inline-end: 1px solid var(--stroke);
  color: var(--text-faint);
  font-size: 9px;
}

.ide-tab.active {
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 var(--accent);
}

.ide-code {
  flex: 1;
  overflow: hidden;
  padding: 9px 0;
  font-family: var(--font-mono);
  font-size: 8.7px;
  line-height: 1.7;
}

.code-line {
  display: flex;
  gap: 9px;
  padding-inline: 10px;
  white-space: pre;
  direction: ltr;
  text-align: left;
}

.line-no {
  width: 13px;
  flex: none;
  color: #4e4e55;
  text-align: end;
}

.tok-keyword {
  color: #e8702a;
}
.tok-fn {
  color: #d9b98a;
}
.tok-str {
  color: #a8b89a;
}
.tok-comment {
  color: #64646b;
}
.tok-tag {
  color: #d98b6b;
}
.tok-attr {
  color: #e6c08a;
}
.tok-var {
  color: #e8a87c;
}
.tok-plain {
  color: #a6a6ac;
}

.ide-terminal {
  grid-column: 2 / 4;
  padding: 7px 10px 9px;
  border-top: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.7;
  direction: ltr;
  text-align: left;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-prompt {
  color: var(--accent);
}

.terminal-ok {
  color: var(--success);
}

.terminal-cursor {
  display: inline-block;
  width: 4px;
  height: 9px;
  background: var(--text-dim);
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.ide-agent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-inline-start: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.18);
}

.ide-agent-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-faint);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-card {
  padding: 8px;
  border: 1px solid rgba(232, 112, 42, 0.26);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text-dim);
  font-size: 8.5px;
  line-height: 1.5;
}

.agent-card strong {
  display: block;
  color: var(--text);
  font-size: 9px;
  font-weight: 600;
}

.agent-diff {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
}

.agent-diff .add,
.agent-diff .del {
  padding: 1px 4px;
  border-radius: 3px;
}

.agent-diff .add {
  color: #a8c9b3;
  background: rgba(121, 181, 142, 0.12);
}

.agent-diff .del {
  color: #e0a49c;
  background: rgba(217, 107, 94, 0.12);
}

.agent-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.agent-actions span {
  flex: 1;
  padding: 4px 0;
  border-radius: 5px;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
}

.agent-actions .accept {
  background: var(--accent);
  color: #fff;
}

.agent-actions .reject {
  border: 1px solid var(--stroke);
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: var(--glass-shadow);
}

.faq-item[open] {
  border-color: var(--stroke-top);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: var(--glass);
  color: var(--text-dim);
  transition: transform var(--mid) var(--ease), background-color var(--mid) var(--ease),
    color var(--mid) var(--ease);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--accent-soft);
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px 18px;
  max-width: 92%;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-section {
  padding-top: 20px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 6vw, 68px) 28px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(620px 300px at 50% -10%, rgba(232, 112, 42, 0.09), transparent 70%),
    var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: var(--glass-shadow);
  text-align: center;
}

.cta-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.02em;
}

.cta-card p {
  max-width: 520px;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15.5px;
}

.cta-card .btn {
  margin-top: 26px;
}

.cta-note {
  margin-top: 16px !important;
  color: var(--text-faint) !important;
  font-size: 12px !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 40px;
  padding: 44px 0 36px;
  border-top: 1px solid var(--stroke);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 12.5px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--text-faint);
  font-size: 11.5px;
  text-align: end;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 12px;
}

.footer-status .status-dot {
  width: 5px;
  height: 5px;
  animation: pulse-dot 2.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  50% {
    opacity: 0.4;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero-copy {
    max-width: 660px;
  }
  .hero-visual {
    max-width: 700px;
    width: 100%;
    margin-inline: auto;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid .feature-card:nth-child(3) {
    grid-column: span 2;
  }
  .preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .header-inner {
    gap: 12px;
  }
  .hero h1 {
    font-size: clamp(38px, 7vw, 56px);
  }
  .ide-mock {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 280px;
  }
  .ide-agent {
    display: none;
  }
  .ide-terminal {
    grid-column: 2;
  }
  .app-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .app-sidebar {
    display: none;
  }
  .float-card {
    inset-inline-start: 12px;
    inset-block-end: 12px;
  }
}

@media (max-width: 700px) {
  .container {
    padding-inline: 18px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-grid .feature-card:nth-child(3) {
    grid-column: auto;
  }
  .header-join {
    display: none;
  }
  .lang-select {
    max-width: 76px;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-mark {
    width: 56px;
    height: 56px;
  }
  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: var(--radius-lg);
    padding: 10px;
  }
  .waitlist-input {
    height: 42px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-pill);
    background: var(--well);
  }
  .waitlist-button {
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-meta {
    align-items: flex-start;
    text-align: start;
  }
  .section {
    padding: 56px 0;
  }
  .ide-code {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .brand-pill {
    display: none;
  }
  .hero h1 {
    font-size: clamp(34px, 9.6vw, 44px);
  }
  .hero-sub {
    font-size: 15px;
  }
  .status-pill {
    font-size: 11px;
  }
  .preview-head {
    flex-direction: column;
    gap: 8px;
  }
  .mini-chat {
    padding: 16px;
  }
  .faq-item summary {
    font-size: 13.5px;
    padding: 15px 16px;
  }
  .faq-answer {
    padding-inline: 16px;
  }
  .cta-card {
    padding-inline: 18px;
  }
}

/* --------------------------------------------------------------------------
   RTL
   -------------------------------------------------------------------------- */
[dir="rtl"] .code-line,
[dir="rtl"] .ide-terminal {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .float-card {
  inset-inline-start: 12px;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
