/* ============================================================
   Pixaluz — public site
   Palette derives from the app theme (pixaluz-theme.css):
   accent #4263eb, ink #1f2328 family, soft cool neutrals.
   Display face: Bricolage Grotesque. Body: system stack.
   ============================================================ */

:root {
  --ink: #10141f;
  --ink-soft: #545c6b;
  --ink-faint: #8b93a2;
  --bg: #fafbfd;
  --surface: #ffffff;
  --border: #e5e8ef;
  --border-soft: #eef0f5;
  --accent: #4263eb;
  --accent-deep: #2c47c9;
  --accent-soft: #edf2ff;
  --ok: #1f9d55;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .07);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 24px 56px rgba(30, 45, 110, .16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; }

h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 2.75rem;
}

h2 em {
  font-style: normal;
  color: var(--accent);
}

a { color: var(--accent); }

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

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

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 10px;
  padding: .55rem 1.1rem;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }

.btn-invert { background: #fff; color: var(--accent); }
.btn-invert:hover { transform: translateY(-2px); }

.btn-lang {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-soft);
  padding: .55rem .7rem;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 251, 253, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.nav.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: .35rem; }

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 8px;
}

.nav-links a:hover { background: var(--accent-soft); color: var(--accent); }

.nav-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }

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

.hero { padding: 5.5rem 0 0; overflow: hidden; }

.hero-inner { text-align: center; max-width: 860px; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

/* The hero lede opens with "Pixaluz is a web application for…" — full ink so the
   app name and purpose carry, while the rest of the sentence stays soft. */
.lede strong { color: var(--ink); font-weight: 700; }

.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.fine { margin-top: 1.1rem; font-size: .85rem; color: var(--ink-faint); }

/* Viewfinder brackets — the signature. Four corners around the framed words,
   like the AF frame in a camera viewfinder. */

.vf {
  position: relative;
  display: inline-block;
  padding: .05em .18em;
  color: var(--accent);
  white-space: nowrap;
}

.vf .c {
  position: absolute;
  width: .38em;
  height: .38em;
  border: 3px solid var(--accent);
  animation: vf-pulse 2.6s ease-in-out infinite;
}

.vf .c1 { top: -.08em; left: -.08em; border-right: 0; border-bottom: 0; }
.vf .c2 { top: -.08em; right: -.08em; border-left: 0; border-bottom: 0; }
.vf .c3 { bottom: -.08em; left: -.08em; border-right: 0; border-top: 0; }
.vf .c4 { bottom: -.08em; right: -.08em; border-left: 0; border-top: 0; }

@keyframes vf-pulse {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(var(--vx, 2px), var(--vy, 2px)); opacity: .55; }
}

.vf .c1 { --vx: 2px;  --vy: 2px; }
.vf .c2 { --vx: -2px; --vy: 2px; }
.vf .c3 { --vx: 2px;  --vy: -2px; }
.vf .c4 { --vx: -2px; --vy: -2px; }

/* ---------- Gallery mock ---------- */

.mock-wrap {
  position: relative;
  margin-top: 4rem;
  padding-bottom: 5.5rem;
}

.mock-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 6% 20%;
  background: radial-gradient(ellipse at 50% 40%, rgba(66, 99, 235, .14), transparent 65%);
  pointer-events: none;
}

.mock {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }

.mock-url {
  margin-left: 10px;
  font-size: .78rem;
  color: var(--ink-faint);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 2px 10px;
}

.mock-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 0 15px 15px;
}

.toast {
  position: absolute;
  left: -18px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 18px 12px 14px;
}

.toast strong { display: block; font-size: .85rem; }
.toast span:not(.toast-dot) { font-size: .75rem; color: var(--ink-faint); }

.toast-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, .15);
}

.pill {
  position: absolute;
  top: 74px;
  right: -14px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 15px;
  box-shadow: var(--shadow);
}

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

.features { padding: 5.5rem 0; background: var(--surface); border-block: 1px solid var(--border-soft); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2.75rem;
}

/* Each feature is a "frame": viewfinder corners appear on hover */
.feature { position: relative; padding: 1.35rem 1.1rem; }

.feature::before, .feature::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity .2s ease;
}

.feature::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.feature::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.feature:hover::before, .feature:hover::after { opacity: 1; }

.feature svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: .9rem;
}

.feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .4rem; }

.feature p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Product tour ---------- */

.tour { padding: 5.5rem 0 0; }

.tour-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
  align-items: center;
}

.tour-row + .tour-row { margin-top: 5rem; }

.tour-copy .eyebrow { margin-bottom: .9rem; }

.tour-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .9rem;
}

.tour-copy p:last-child { color: var(--ink-soft); }

.tour-shot {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

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

.steps { padding: 5.5rem 0; }

.steps-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.25rem;
}

.steps-list .num {
  font-family: var(--display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: .3rem;
  margin-bottom: 1rem;
}

.steps-list h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .5rem; }

.steps-list p { font-size: .95rem; color: var(--ink-soft); }

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

.cta {
  background: linear-gradient(140deg, var(--accent-deep), var(--accent) 60%, #5f7bf2);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.cta h2 { margin-bottom: .6rem; }

.cta p { opacity: .85; margin-bottom: 2rem; }

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

.footer { padding: 2.5rem 0; }

.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer .brand { font-size: 1rem; }

/* Wraps: the legal links push this to four items, which overflows a phone row. */
.footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }

.footer nav a { color: var(--ink-soft); text-decoration: none; font-size: .88rem; }

.footer nav a:hover { color: var(--accent); }

.footer p { margin-left: auto; font-size: .85rem; color: var(--ink-faint); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .vf .c { animation: none; }
  .btn { transition: none; }
}

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

@media (max-width: 860px) {
  .grid, .steps-list { grid-template-columns: 1fr 1fr; }
  .tour-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .toast { left: 8px; bottom: -18px; }
  .pill { right: 8px; top: 58px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 3.5rem; }
  .grid, .steps-list { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer p { margin-left: 0; width: 100%; }
}
