/* Landing de abertura do Dilatrix: tokens, base, topo, hero e demonstração */
:root {
  color-scheme: dark;
  --bg: #0a0a0d;
  --fg: #ececf1;
  --muted: #9a98a8;
  --dim: #6f6d7c;
  --accent: #7c6cff;
  --accent-2: #14b8a6;
  --accent-grad: linear-gradient(135deg, #8b7cff 0%, #4f7cf0 55%, #14b8a6 100%);
  --accent-soft: rgba(124, 108, 255, .14);
  --glass: rgba(22, 22, 30, .6);
  --glass-strong: rgba(26, 26, 36, .85);
  --surface-1: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .11);
  --hairline: rgba(255, 255, 255, .07);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, .35);
  --shadow-float: 0 24px 70px rgba(0, 0, 0, .5);
  --glow-1: rgba(124, 108, 255, .28);
  --glow-2: rgba(20, 184, 166, .18);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0f8;
  --fg: #1c1a2e;
  --muted: #55526a;
  --dim: #67647c;
  --accent: #5b4bea;
  --accent-2: #0d9488;
  --accent-grad: linear-gradient(135deg, #5b4bea 0%, #2f5fd8 55%, #0d9488 100%);
  --accent-soft: rgba(91, 75, 234, .11);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 254, 255, .9);
  --surface-1: rgba(91, 75, 234, .04);
  --surface-2: rgba(91, 75, 234, .07);
  --surface-3: rgba(91, 75, 234, .12);
  --hairline: rgba(76, 60, 160, .1);
  --shadow-soft: 0 1px 2px rgba(60, 40, 140, .05), 0 10px 30px rgba(70, 50, 150, .09);
  --shadow-float: 0 2px 6px rgba(60, 40, 140, .06), 0 24px 60px rgba(70, 50, 150, .16);
  --glow-1: rgba(91, 75, 234, .16);
  --glow-2: rgba(13, 148, 136, .1);
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 400 15px/1.6 Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.ab-grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Luz ambiente lilás e verde-água */
.ab-ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vh at 18% 8%, var(--glow-1), transparent 70%),
    radial-gradient(36vw 38vh at 85% 12%, var(--glow-2), transparent 70%),
    radial-gradient(50vw 40vh at 50% 100%, var(--accent-soft), transparent 70%);
}

/* Topo */
.ab-nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; gap: 20px;
  max-width: 1120px; margin: 12px auto 0; padding: 10px 12px 10px 18px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 18px; box-shadow: var(--shadow-soft);
}
.ab-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.ab-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: var(--accent-grad); color: #fff; font-size: 14px; font-weight: 800;
}
.ab-links { display: flex; gap: 4px; margin-left: auto; }
.ab-links a { padding: 7px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: background .2s, color .2s; }
.ab-links a:hover { background: var(--surface-2); color: var(--fg); }
.ab-nav-actions { display: flex; align-items: center; gap: 8px; }
.ab-theme { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 11px; color: var(--muted); font-size: 13px; }
.ab-theme:hover { background: var(--surface-2); color: var(--fg); }

/* Botões */
.ab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.ab-btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.ab-btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 30px var(--glow-1); }
.ab-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px var(--glow-1); }
.ab-btn-ghost { background: var(--surface-2); color: var(--fg); }
.ab-btn-ghost:hover { background: var(--surface-3); }

/* Hero */
.ab-hero { max-width: 1120px; margin: 0 auto; padding: 88px 20px 40px; text-align: center; }
.ab-pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600;
}
:root:not([data-theme="light"]) .ab-pill { color: #b9b0ff; }
.ab-hero h1 { margin: 22px auto 0; font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.ab-lead { max-width: 600px; margin: 22px auto 0; color: var(--muted); font-size: 18px; }
.ab-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.ab-note { margin-top: 14px; color: var(--dim); font-size: 13px; }
.ab-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ab-note a:hover { color: var(--fg); }

/* Demonstração: janela de conversa + preview */
.ab-demo { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; margin: 64px auto 0; max-width: 960px; text-align: left; }
.ab-win { padding: 14px; border-radius: 20px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-float); }
.ab-win-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.ab-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.ab-chip { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ab-chip-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent-2); vertical-align: 1px; animation: ab-pulse 2s infinite; }
.ab-msg { padding: 10px 13px; border-radius: 14px; font-size: 13.5px; margin-bottom: 10px; }
.ab-msg-user { margin-left: auto; width: fit-content; max-width: 85%; background: var(--accent-soft); }
.ab-msg-bot { display: flex; flex-direction: column; gap: 7px; background: var(--surface-1); }
.ab-line { display: block; height: 8px; border-radius: 6px; background: var(--surface-3); }
.ab-line-strong { height: 14px; background: var(--accent-grad); opacity: .85; }
.w90 { width: 90%; } .w75 { width: 75%; } .w60 { width: 60%; } .w40 { width: 40%; }
.ab-compose { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 10px; border-radius: 14px; background: var(--surface-2); color: var(--dim); font-size: 13px; }
.ab-plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--surface-3); color: var(--fg); font-weight: 600; }
.ab-compose-text { flex: 1; }
.ab-send { width: 26px; height: 26px; border-radius: 9px; background: var(--accent-grad); }
.ab-preview { position: relative; overflow: hidden; }
.ab-site { padding: 12px; border-radius: 14px; background: var(--surface-1); }
.ab-site-nav { display: flex; gap: 8px; justify-content: flex-end; }
.ab-site-nav span { width: 34px; height: 7px; border-radius: 5px; background: var(--surface-3); }
.ab-site-hero { display: flex; flex-direction: column; gap: 9px; padding: 26px 6px 22px; }
.ab-site-btn { width: 84px; height: 24px; margin-top: 6px; border-radius: 9px; background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: 3px; }
.ab-site-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ab-site-grid span { height: 58px; border-radius: 10px; background: var(--surface-2); }
.ab-cursor {
  position: absolute; left: 34%; top: 56%; width: 16px; height: 20px;
  background: var(--fg); clip-path: polygon(0 0, 100% 62%, 56% 66%, 36% 100%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
  animation: ab-move 6s ease-in-out infinite;
}

@keyframes ab-pulse { 50% { opacity: .35; } }
@keyframes ab-move { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-60px, 10px); } }
