/* ==========================================================================
   FluentOS — fluentosapp.com
   Palette drawn from the app icon: deep indigo night, blue→violet glow,
   cyan orbit accents, glassy macOS material.
   ========================================================================== */

:root {
  --ink:        #060924;   /* page background — deep space navy */
  --night:      #0d1233;   /* raised surface */
  --night-2:    #131a44;   /* hover / featured surface */
  --line:       rgba(160, 174, 232, 0.14);
  --glass:      rgba(255, 255, 255, 0.055);
  --blue:       #4f7df9;   /* icon's bright blue */
  --violet:     #8b7cf6;
  --cyan:       #67e8f9;   /* orbit dots */
  --green:      #4ade80;   /* the app's saved-card green */
  --text:       #edeffc;
  --text-dim:   #9aa3c7;
  --text-faint: #6b74a0;

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 0.5em; }

/* Static pages (e.g. privacy) whose only heading should be an <h1>
   for document outline, but sized like h2 to match the page's visual weight. */
h1.page-title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 0.5em; }

h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }

a { color: inherit; }

img { max-width: 100%; }

::selection { background: rgba(79, 125, 249, 0.35); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 4px 24px rgba(79, 125, 249, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(79, 125, 249, 0.5), inset 0 1px 0 rgba(255,255,255,0.22); }

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.09); }

.btn-large { font-size: 1.05rem; padding: 15px 30px; }
.btn-small { font-size: 0.86rem; padding: 8px 18px; }

/* ---------- Keyboard pill ---------- */

.kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 9px 3px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 36, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 24px 110px;
}

.hero-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -340px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 720px;
  background:
    radial-gradient(ellipse 50% 55% at 50% 40%, rgba(79, 125, 249, 0.28), transparent 70%),
    radial-gradient(ellipse 38% 42% at 62% 34%, rgba(139, 124, 246, 0.22), transparent 70%);
  filter: blur(4px);
}

/* dotted orbit arc echoing the icon's ring of dots */
.hero-orbit {
  position: absolute;
  left: 50%;
  bottom: -1160px;
  transform: translateX(-50%);
  width: 1500px;
  height: 1500px;
  border-radius: 50%;
  border: 2px dotted rgba(103, 232, 249, 0.28);
  box-shadow: 0 0 90px rgba(79, 125, 249, 0.12) inset;
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  margin: 22px 0 32px;
  max-width: 34em;
}

.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.hero-fineprint {
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ---------- Hero demo: faux macOS window ---------- */

.hero-demo { position: relative; }

.mac-window {
  background: rgba(19, 24, 58, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.mac-dot { width: 11px; height: 11px; border-radius: 50%; }
.mac-dot.red    { background: #ff5f57; }
.mac-dot.yellow { background: #febc2e; }
.mac-dot.green  { background: #28c840; }

.mac-title {
  flex: 1;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-faint);
}

.mac-menuicon {
  display: inline-flex;
  opacity: 0.9;
}
.mac-menuicon img { border-radius: 3px; }

.demo-stage {
  position: relative;
  padding: 44px 26px 20px;
  min-height: 356px;
}

.demo-line {
  position: relative;
  font-size: 1.12rem;
  text-align: center;
  height: 36px;
}

.demo-text { position: relative; }

.demo-word {
  font-weight: 600;
  padding: 1px 5px 2px;
  margin: 0 -2px;
  border-radius: 5px;
  transition: background 0.35s ease;
}
.demo-word.hl { background: rgba(79, 125, 249, 0.3); }

.demo-selection {
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  height: 32px;
  width: 0;
  border-radius: 5px;
  background: rgba(79, 125, 249, 0.26);
  transition: width 0.9s ease-in-out;
}
.demo-selection.on { width: 300px; }

.demo-cursor {
  position: absolute;
  top: 62px;
  left: 18%;
  z-index: 3;
  transition: left 0.85s cubic-bezier(0.45, 0.05, 0.4, 1);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}
.demo-cursor.at-word { left: 72%; }

.demo-hotkey {
  position: absolute;
  top: 26px;
  left: 4px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 243, 255, 0.92);
  color: #1b1e3a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.demo-hotkey.on { opacity: 1; transform: translateY(0); }

/* translation cards — same anatomy as the app's overlays */

.demo-card {
  position: absolute;
  left: 50%;
  top: 118px;
  transform: translateX(-50%) translateY(10px) scale(0.97);
  width: min(356px, calc(100% - 32px));
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(36, 42, 84, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(74, 222, 128, 0.65);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.3, 1.1, 0.5, 1);
  text-align: left;
}
.demo-card.on { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

.demo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.demo-card-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.85rem;
}
.demo-card-head em { font-style: normal; font-size: 0.72rem; color: var(--text-dim); }

.demo-card-main {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2px 0 8px;
}
.demo-card-main-sm { font-size: 1.15rem; margin-top: 4px; }

.demo-card-example { display: flex; flex-direction: column; gap: 1px; font-size: 0.8rem; }
.demo-card-example span:first-child { color: var(--text-dim); }
.ex-target { font-weight: 600; }

.demo-card-source { font-size: 0.8rem; color: var(--text-dim); }

.demo-saved {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.demo-saved.on { opacity: 1; }

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 96px 24px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(13, 18, 51, 0.0), rgba(13, 18, 51, 0.75) 18%, rgba(13, 18, 51, 0.75) 82%, rgba(13, 18, 51, 0));
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-narrow { max-width: 760px; }

.section-sub {
  color: var(--text-dim);
  max-width: 40em;
  margin-bottom: 40px;
}

.footnote {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 22px;
}

/* the hoverable “lookup words” inside headings */
.lookup-word {
  position: relative;
  font-style: italic;
  background: linear-gradient(120deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: default;
  border-bottom: 2px dotted rgba(103, 232, 249, 0.5);
}

.lookup-tip {
  position: fixed;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(36, 42, 84, 0.96);
  border: 1.5px solid rgba(74, 222, 128, 0.65);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lookup-tip.on { opacity: 1; transform: translateY(0); }
.lookup-tip-dir { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dim); }
.lookup-tip-word { font-size: 1.05rem; font-weight: 700; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.step {
  padding: 28px 26px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan);
  border: 1px dotted rgba(103, 232, 249, 0.55);
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--text-dim); }

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.feature {
  padding: 26px 24px;
  background: rgba(6, 9, 36, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: rgba(103, 232, 249, 0.35); transform: translateY(-2px); }

.feature-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 16px;
  border-radius: 10px;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(79, 125, 249, 0.22), rgba(139, 124, 246, 0.22));
  border: 1px solid var(--line);
}
.feature-icon svg { width: 100%; height: 100%; }

.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.92rem; color: var(--text-dim); }

/* ---------- Languages ---------- */

.langs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.langs li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.lang-flag { font-size: 1.15rem; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: rgba(6, 9, 36, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-featured {
  background: linear-gradient(180deg, rgba(79, 125, 249, 0.14), rgba(139, 124, 246, 0.08));
  border-color: rgba(79, 125, 249, 0.5);
  box-shadow: 0 12px 44px rgba(79, 125, 249, 0.18);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.plan h3 { font-size: 0.95rem; color: var(--text-dim); font-weight: 600; }

.plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  margin: 8px 0 2px;
}
.plan-price span { font-size: 1.05rem; color: var(--text-dim); font-family: var(--font-body); }

.plan-tagline { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 18px; }

.plan ul {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}
.plan li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding: 6px 0 6px 26px;
  position: relative;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: no-repeat center / contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234ade80" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
}

.plan .btn { justify-content: center; }

/* ---------- FAQ ---------- */

details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 16px 34px 16px 0;
  position: relative;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--cyan);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

details p {
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 0 0 18px;
  max-width: 60em;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  padding-top: 130px;
  padding-bottom: 130px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  left: 50%;
  bottom: -420px;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(79, 125, 249, 0.3), rgba(139, 124, 246, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.cta-icon {
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(79, 125, 249, 0.4);
}

.cta h2 { margin-bottom: 0; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 48px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-brand img { border-radius: 6px; }

.footer-links { display: flex; gap: 22px; }
.footer-links a {
  font-size: 0.86rem;
  color: var(--text-dim);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }

.footer-note {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 64px; padding-bottom: 80px; }
  .hero-demo { max-width: 520px; margin: 0 auto; width: 100%; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 72px 20px; }
  .footer-note { margin-left: 0; }
}

/* ---------- Reduced motion: land on the finished state ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .demo-cursor { left: 72%; }
  .demo-word { background: rgba(79, 125, 249, 0.3); }
  .demo-card-word { opacity: 1; transform: translateX(-50%); }
  .demo-saved { opacity: 1; }
}
