/* ── WEXXEL Websites — showcase shell ─────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  --ink: #15181b;
  --ink-soft: #3c4247;
  --paper: #f1f2ed;
  --paper-raised: #ffffff;
  --line: #d9dad3;
  --muted: #6b7179;
  --accent: #2545c7;
  --accent-ink: #ffffff;
  --gold: #c9932f;
  --radius: 3px;
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --focus: 2px solid var(--accent);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible { outline: var(--focus); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Top nav ─────────────────────────────────────────────────────────── */

.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(241, 242, 237, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand span { color: var(--accent); }

.navlinks {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navlinks a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.navlinks a:hover { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.55;
  margin: 0 0 30px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--paper-raised); }

/* Hero preview stack — a set of little "device" swatches representing the
   three example sites, not real screenshots. Purely decorative + honest. */
.hero-stack {
  position: relative;
  height: 360px;
}

.hero-card {
  position: absolute;
  width: 78%;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  box-shadow: 0 18px 34px -20px rgba(21, 24, 27, 0.35);
  overflow: hidden;
}

.hero-card .bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.hero-card .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }

.hero-card .swatch { height: 130px; }

.hero-card .lines { padding: 14px; }
.hero-card .lines i {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: var(--line);
  margin-bottom: 8px;
  font-style: normal;
}

.hero-card.c1 { top: 0; left: 0; z-index: 3; }
.hero-card.c2 { top: 46px; left: 14%; z-index: 2; opacity: 0.9; }
.hero-card.c3 { top: 92px; left: 28%; z-index: 1; opacity: 0.75; }

/* ── Intro / "why a website" ────────────────────────────────────────── */

.intro {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.intro .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.intro h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: 0;
}

.intro-body p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.needs-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.needs-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.98rem;
  color: var(--ink);
}

.needs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Work / cards ────────────────────────────────────────────────────── */

.work { padding: 88px 0; border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin: 0;
}

.section-note { color: var(--muted); font-size: 0.92rem; max-width: 32ch; margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -22px rgba(21, 24, 27, 0.4);
}

.card-preview {
  height: 168px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.card-preview .mark {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
}

.card-body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }

.card-category {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.card-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
  flex: 1;
}

.card-cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.fictional-note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── How it works ────────────────────────────────────────────────────── */

.how { padding: 88px 0; border-bottom: 1px solid var(--line); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.step {
  padding: 26px 22px 0;
  border-right: 1px solid var(--line);
}

.step:last-child { border-right: none; }

.step .num {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.02rem; margin: 0 0 8px; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ── Final CTA ───────────────────────────────────────────────────────── */

.final-cta {
  padding: 100px 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 18px;
}

.final-cta p {
  max-width: 52ch;
  margin: 0 auto 32px;
  color: #c7c9c2;
  line-height: 1.6;
}

.final-cta .btn-primary { background: var(--accent); }
.final-cta .btn-primary:hover { background: var(--gold); color: var(--ink); }

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer { padding: 40px 0; }

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ── Viewer screen ───────────────────────────────────────────────────── */

.viewer-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}

.viewer-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.viewer-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.viewer-back:hover { color: var(--ink); }

.viewer-title { text-align: left; }
.viewer-title .name { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.viewer-title .category { font-size: 0.78rem; color: var(--muted); }

.viewer-controls { display: flex; align-items: center; gap: 10px; }

.device-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.device-toggle button {
  border: none;
  background: var(--paper-raised);
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--muted);
}

.device-toggle button.active { background: var(--ink); color: var(--paper); }
.device-toggle button:not(:last-child) { border-right: 1px solid var(--line); }

.viewer-nav { display: flex; gap: 8px; }

.viewer-nav button {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
}

.viewer-nav button:hover { background: var(--ink); color: var(--paper); }
.viewer-nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.viewer-nav button:disabled:hover { background: transparent; color: var(--ink); }

.viewer-stage {
  padding: 28px 0 60px;
  min-height: calc(100vh - 72px);
  display: flex;
  justify-content: center;
}

.iframe-shell {
  width: 100%;
  height: calc(100vh - 160px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: width 0.25s ease;
}

.iframe-shell.mode-mobile { width: 390px; height: calc(100vh - 160px); max-height: 780px; }

.iframe-shell iframe { width: 100%; height: 100%; border: none; display: block; }

.viewer-fallback {
  display: none;
  padding: 40px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Utility screens ─────────────────────────────────────────────────── */

.empty-state {
  padding: 120px 28px;
  text-align: center;
  color: var(--muted);
}

[hidden] { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 920px) {
  .navlinks { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stack { height: 220px; margin-top: 16px; }
  .hero-card { width: 90%; }
  .intro .wrap { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .step:nth-child(2) { border-right: none; }
  .viewer-title { display: none; }
  .iframe-shell.mode-mobile { width: 340px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .viewer-controls { gap: 6px; }
  .device-toggle button { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .iframe-shell { transition: none; }
}
