/*
 * saxelosno.com — the app's "night workshop" look: deep warm brown, one amber
 * accent, cream text, Noto Sans Georgian. Shared by every page.
 */
:root {
  --bg: #1c1712;
  --bg-deep: #140f0a;
  --surface: #2a231c;
  --surface-2: #342b22;
  --line: rgba(255, 236, 214, 0.09);
  --text: #f4e9dc;
  --muted: #c8b6a2;
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, 0.14);
  --on-amber: #291800;
  --radius-sheet: 28px;
  --radius-card: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans Georgian', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

a {
  color: var(--amber);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Language switch (Georgian default, English second) ---------- */
html:not([data-lang='en']) .en,
html[data-lang='en'] .ka {
  display: none !important;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(28, 23, 18, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--amber);
}

.mark svg {
  width: 22px;
  height: 22px;
  fill: var(--on-amber);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.lang button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lang button[aria-pressed='true'] {
  background: var(--amber);
  color: var(--on-amber);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

.btn-store {
  background: var(--amber);
  color: var(--on-amber);
  box-shadow: 0 10px 30px -10px rgba(255, 176, 32, 0.55);
}

.btn-store:hover {
  box-shadow: 0 14px 38px -10px rgba(255, 176, 32, 0.75);
}

.btn-store .stack {
  display: grid;
  line-height: 1.2;
  text-align: left;
}

.btn-store .stack small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.8;
}

.btn-store .stack strong {
  font-size: 1.05rem;
}

/* Not published yet: same shape, quieter, not clickable. */
.btn-store[aria-disabled='true'] {
  cursor: default;
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-store[aria-disabled='true'] svg {
  fill: var(--amber);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}

/* Warm workshop-lamp glow behind the app icon. */
.hero::before {
  content: '';
  position: absolute;
  width: 760px;
  height: 760px;
  right: -180px;
  top: -120px;
  background: radial-gradient(closest-side, rgba(255, 176, 32, 0.28), rgba(255, 176, 32, 0.06) 55%, transparent 72%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero .lead {
  max-width: 34ch;
  margin: 22px 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fine {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Hero visual: the app icon with floating badges ---------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

/* The app icon, large, lit like a workshop sign. */
.emblem {
  display: grid;
  place-items: center;
  width: min(240px, 58vw);
  aspect-ratio: 1;
  border-radius: 28%;
  background: linear-gradient(150deg, #ffc24d, var(--amber) 55%, #f09a00);
  box-shadow: 0 40px 90px -30px rgba(255, 176, 32, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  animation: float 7s ease-in-out infinite;
}

.emblem svg {
  width: 58%;
  height: 58%;
  fill: var(--on-amber);
}

/* Small badges in the app's style, floating around the icon. */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(42, 35, 28, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8), inset 0 0 0 1px var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 8s ease-in-out infinite;
}

.chip svg {
  width: 18px;
  height: 18px;
  fill: var(--amber);
}

.chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6fdc7c;
  box-shadow: 0 0 0 4px rgba(111, 220, 124, 0.18);
}

.chip-a { top: 4%; left: 2%; animation-delay: -1s; }
.chip-b { top: 22%; right: 0; animation-delay: -3s; }
.chip-c { bottom: 18%; left: 0; animation-delay: -5s; }
.chip-d { bottom: 3%; right: 6%; animation-delay: -2s; }

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.kicker {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Audience blocks: features on one side, the app on the other. */
.audience {
  display: grid;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  padding: 28px 22px;
  border-radius: var(--radius-sheet);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Grid items may shrink below their content (the screenshots), so nothing overflows. */
.audience > * {
  min-width: 0;
}

.audiences {
  display: grid;
  gap: 20px;
}

/* Round icon at the top of each audience card. */
.audience-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--amber);
}

.audience-ico svg {
  width: 30px;
  height: 30px;
  fill: var(--on-amber);
}

.audience h3 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.audience > div > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.features {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.features .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--amber-soft);
}

.features .ico svg {
  width: 24px;
  height: 24px;
  fill: var(--amber);
}

.features strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.4;
}

/* The description under each feature title (not the title's own language spans). */
.features li > div > span {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Download band ---------- */
.download {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  justify-items: start;
  padding: 48px 36px;
  border-radius: var(--radius-sheet);
  background: var(--amber);
  color: var(--on-amber);
}

/* The app's car-wrench mark, large and faint, in the corner. */
.download .bg-mark {
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  fill: var(--on-amber);
  opacity: 0.1;
  pointer-events: none;
}

.download > :not(.bg-mark) {
  position: relative;
}

.download h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
}

.download p {
  margin: -12px 0 0;
  max-width: 44ch;
}

.download .btn-store {
  background: var(--on-amber);
  color: #ffe1a6;
  box-shadow: none;
}

.download .btn-store[aria-disabled='true'] {
  background: rgba(41, 24, 0, 0.12);
  color: var(--on-amber);
  box-shadow: inset 0 0 0 1px rgba(41, 24, 0, 0.25);
}

.download .btn-store[aria-disabled='true'] svg {
  fill: var(--on-amber);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

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

.site-footer a:hover {
  color: var(--amber);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---------- Document pages (privacy, deletion, share link) ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.doc header {
  margin-bottom: 32px;
}

.doc h1 {
  /* Long Georgian words like კონფიდენციალურობის need room on phones. */
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
}

.doc h2 {
  font-size: 1.3rem;
  margin: 36px 0 8px;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

.doc li {
  margin: 6px 0;
}

.updated,
.muted {
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin: 16px 0;
}

.lang-switch {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.doc hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0 32px;
}

.doc footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Wider screens ---------- */
@media (min-width: 900px) {
  .hero {
    padding: 88px 0 104px;
  }

  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .audiences {
    grid-template-columns: 1fr 1fr;
  }

  .audience {
    align-items: start;
    padding: 44px 40px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .download {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 56px 64px;
  }

  .download p {
    margin: 8px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .emblem,
  .chip {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
