/* WordWarden website — palette taken from the app's settings window */
:root {
  --bg: #090909;
  --title: #060606;
  --card: #0f0f0f;
  --card-bd: #1f1f1f;
  --ghost: #161616;
  --ghost-h: #202020;
  --orange: #db4f09;
  --orange-lt: #e8692a;
  --orange-bg: #251306;
  --amber: #b07500;
  --fg: #ffffff;
  --fg-lbl: #d4d4d4;
  --fg-dim: #8a8a8a;
  --ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ui-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-lbl);
  font: 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--orange-lt); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--fg); font-family: var(--ui-display); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
::selection { background: #3a2210; color: var(--fg); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-bd);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand .eye { width: 36px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--fg-dim); font-size: 14px; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-links a.btn { color: var(--fg); }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 15px var(--ui); color: var(--fg); cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, box-shadow .2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--orange); box-shadow: 0 0 0 rgba(219, 79, 9, 0); }
.btn-primary:hover { background: var(--orange-lt); box-shadow: 0 0 28px rgba(219, 79, 9, .35); }
.btn-ghost { background: var(--ghost); border-color: #2a2a2a; color: var(--fg-lbl); font-weight: 400; }
.btn-ghost:hover { background: var(--ghost-h); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- eye ---------- */
/* The app's eye PNGs are 480x480 with the eye in the box (60,160)-(420,320); crop to it. */
.eye { position: relative; aspect-ratio: 360 / 160; overflow: hidden; }
.eye img {
  position: absolute; width: 133.333%; max-width: none; left: -16.667%; top: -100%;
  transition: opacity .35s ease;
}
.eye img + img { opacity: 0; }

.hero-eye { width: min(420px, 82vw); margin: 0 auto; position: relative; }
.hero-eye::before {
  content: ""; position: absolute; inset: -40% -20%;
  background: radial-gradient(closest-side, rgba(219, 79, 9, .30), rgba(219, 79, 9, 0) 70%);
  filter: blur(10px); animation: breathe 4.2s ease-in-out infinite; pointer-events: none;
}
.hero-eye .eye { filter: drop-shadow(0 0 22px rgba(219, 79, 9, .45)); }
.hero-eye[data-state="rest"]::before { opacity: .25; }
.hero-eye[data-state="rest"] .eye { filter: drop-shadow(0 0 10px rgba(106, 42, 30, .5)); }
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .65; } 50% { transform: scale(1.06); opacity: 1; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); letter-spacing: -0.02em; margin-top: 36px; }
.hero h1 .accent { color: var(--orange); text-shadow: 0 0 30px rgba(219, 79, 9, .35); }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--fg-dim); max-width: 620px; margin: 18px auto 0; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero .fine { font-size: 13px; color: var(--fg-dim); margin-top: 14px; }

.status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 13px; color: var(--fg-dim); background: var(--card); border: 1px solid var(--card-bd);
  border-radius: 999px; padding: 6px 14px; min-width: 210px; justify-content: center;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #6a2a1e; transition: background .3s, box-shadow .3s; }
.status[data-state="listen"] .dot { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.status[data-state="execute"] .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.typed { color: var(--fg-lbl); min-height: 1.6em; margin-top: 12px; font-size: 15px; }
.typed .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--orange); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.kicker { color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 38px); margin-top: 8px; }
.sec-head p { color: var(--fg-dim); margin-top: 12px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.card {
  background: var(--card); border: 1px solid var(--card-bd); border-radius: 12px; padding: 24px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #2c2c2c; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--fg-dim); font-size: 15px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.step-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-bg); color: var(--orange-lt); font-weight: 600; margin-bottom: 14px;
}
kbd {
  font: 600 13px var(--ui); color: var(--fg); background: var(--ghost); border: 1px solid #2a2a2a;
  border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px;
}

.feat-ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--orange-bg); color: var(--orange); margin-bottom: 14px;
}
.feat-ico svg { width: 22px; height: 22px; }

/* ---------- privacy ---------- */
.privacy-band {
  background: linear-gradient(180deg, var(--bg), #0c0806 50%, var(--bg));
  border-top: 1px solid var(--card-bd); border-bottom: 1px solid var(--card-bd);
}
.privacy-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .privacy-grid { grid-template-columns: 1.1fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--fg-lbl); }
.checks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.flow { display: grid; gap: 10px; }
.flow .node { background: var(--card); border: 1px solid var(--card-bd); border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.flow .node span:last-child { color: var(--fg-dim); text-align: right; }
.flow .node.off { border-style: dashed; color: var(--fg-dim); }
.flow .node.off span:first-child { text-decoration: line-through; text-decoration-color: var(--orange); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 28px; position: relative; }
.plan.best { border-color: rgba(219, 79, 9, .55); box-shadow: 0 0 40px rgba(219, 79, 9, .12); }
.plan .tag { position: absolute; top: -11px; right: 20px; background: var(--orange); color: var(--fg); font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.plan .price { font-size: 44px; color: var(--fg); font-weight: 600; font-family: var(--ui-display); }
.plan .price small { font-size: 16px; color: var(--fg-dim); font-weight: 400; }
.plan .sub { color: var(--fg-dim); font-size: 14px; min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 8px; font-size: 15px; }
.plan ul li::before { content: "›"; color: var(--orange); margin-right: 10px; font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; }
.trial-note { text-align: center; color: var(--fg-dim); font-size: 14px; margin-top: 24px; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--card-bd); border-radius: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; color: var(--fg); font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--fg-dim); }

/* ---------- download band ---------- */
.cta-band { text-align: center; }
.cta-band .card { padding: 48px 24px; background: radial-gradient(ellipse at top, #1a0d05, var(--card) 70%); }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); }
.cta-band p { color: var(--fg-dim); margin: 12px auto 24px; max-width: 520px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--card-bd); background: var(--title); padding: 32px 0; margin-top: 40px; font-size: 14px; color: var(--fg-dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
footer a { color: var(--fg-dim); }
footer a:hover { color: var(--fg); }

/* ---------- document pages (terms, privacy, support) ---------- */
.doc { max-width: 780px; padding-top: 56px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.doc h2 { color: var(--orange); font-size: 20px; margin: 36px 0 10px; }
.doc h3 { font-size: 16px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--fg-lbl); }
.doc p { margin: 10px 0; }
.doc em { color: var(--fg-dim); }
.doc strong { color: var(--fg); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font-family: "Cascadia Mono", Consolas, monospace; color: #f0c090; font-size: .9em; }
.doc blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--orange); color: #e0a070; }
.doc hr { border: 0; border-top: 1px solid var(--card-bd); margin: 32px 0; }
.doc .table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--card-bd); border-radius: 10px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--card-bd); }
.doc th { color: var(--fg); background: var(--card); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- demo ---------- */
.demo { max-width: 760px; margin: 0 auto; }
.demo-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.demo-tab {
  font: 500 14px var(--ui); color: var(--fg-dim); background: var(--ghost); border: 1px solid #2a2a2a;
  border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.demo-tab:hover { color: var(--fg); background: var(--ghost-h); }
.demo-tab.on { color: var(--fg); background: var(--orange-bg); border-color: rgba(219, 79, 9, .6); }
.demo-win {
  position: relative; background: #121212; border: 1px solid var(--card-bd); border-radius: 12px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0c0c0c; border-bottom: 1px solid var(--card-bd); }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.demo-bar b { margin-left: 10px; font-weight: 500; font-size: 13px; color: var(--fg-dim); }
.demo-body { padding: 20px 20px 70px; min-height: 270px; }
.demo-field-label { font-size: 13px; color: var(--fg-dim); padding-bottom: 10px; border-bottom: 1px solid #1c1c1c; margin-bottom: 12px; }
.demo-field {
  position: relative; min-height: 96px; padding: 12px 14px; border: 1px solid #262626; border-radius: 8px;
  background: #0d0d0d; color: var(--fg); font-size: 16px; line-height: 1.55; transition: border-color .2s, box-shadow .2s;
}
.demo-field.focus { border-color: rgba(219, 79, 9, .7); box-shadow: 0 0 0 3px rgba(219, 79, 9, .15); }
.demo-ph { position: absolute; left: 14px; top: 12px; color: #4a4a4a; pointer-events: none; }
.demo-field.has-text .demo-ph, .demo-field.focus .demo-ph { display: none; }
.demo-caret { display: none; width: 2px; height: 1.1em; background: var(--orange); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.demo-field.focus .demo-caret { display: inline-block; }
.demo-speech {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 40px; color: var(--orange-lt);
  visibility: hidden;
}
.demo-speech.on { visibility: visible; animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-speech svg { width: 20px; height: 20px; flex: none; }
.demo-said { color: var(--fg-lbl); font-style: italic; font-size: 15px; }
.demo-said:before { content: "“"; } .demo-said:after { content: "”"; }
.demo-said:empty:before, .demo-said:empty:after { content: none; }
.demo-wave { display: flex; align-items: center; gap: 3px; height: 22px; flex: none; }
.demo-wave i { width: 3px; height: 4px; border-radius: 2px; background: var(--orange); }
.demo-speech.on .demo-wave i { animation: wave .9s ease-in-out infinite; }
.demo-wave i:nth-child(2) { animation-delay: -.7s !important; } .demo-wave i:nth-child(3) { animation-delay: -.2s !important; }
.demo-wave i:nth-child(4) { animation-delay: -.5s !important; } .demo-wave i:nth-child(5) { animation-delay: -.1s !important; }
.demo-wave i:nth-child(6) { animation-delay: -.6s !important; } .demo-wave i:nth-child(7) { animation-delay: -.3s !important; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 20px; } }
.demo-lang {
  position: absolute; left: 20px; bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--orange-lt); background: var(--orange-bg); border-radius: 999px; padding: 4px 12px;
}
.demo-lang:empty { display: none; }
.demo-mouse {
  position: absolute; width: 22px; height: 22px; left: 85%; top: 85%; z-index: 3;
  transition: left .9s cubic-bezier(.4, 0, .2, 1), top .9s cubic-bezier(.4, 0, .2, 1), transform .12s;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
.demo-mouse.click { transform: scale(.82); }
.demo-eye {
  position: absolute; right: 16px; bottom: 14px; width: 92px; opacity: .5; transition: opacity .3s, filter .3s;
}
.demo-eye.listen, .demo-eye.execute { opacity: 1; filter: drop-shadow(0 0 10px rgba(219, 79, 9, .6)); }
.demo-caption { text-align: center; color: var(--fg-dim); font-size: 14px; margin-top: 14px; min-height: 1.6em; }
@media (max-width: 560px) {
  .demo-body { padding: 16px 14px 64px; min-height: 290px; }
  .demo-field { font-size: 15px; }
  .demo-eye { width: 72px; }
}
.demo-langs {
  display: none; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px;
  margin: -4px 0 16px; font-size: 14px; color: var(--fg-dim);
}
.demo.translating .demo-langs { display: flex; }
.demo-langs label { display: flex; align-items: center; gap: 8px; }
.demo-langs select {
  font: 500 14px var(--ui); color: var(--fg); background: var(--ghost); border: 1px solid #2a2a2a;
  border-radius: 8px; padding: 6px 10px; cursor: pointer;
}
.demo-langs select:focus { outline: none; border-color: rgba(219, 79, 9, .7); }
.demo-arrow { color: var(--orange); font-weight: 700; }
@media (max-width: 480px) { .demo-arrow { display: none; } .demo-langs { flex-direction: column; } }
