/* ============================================================
   RENOCY — marketing site (Direction D "Ascent")
   Palette & type are defined once here as tokens so the whole
   page stays consistent and is easy to re-theme later.
   ============================================================ */

:root {
  /* Brand palette */
  --bg:        #F4F8F5;  /* page background        */
  --hero-bg:   #E9EEEA;  /* hero band behind anim  */
  --ink:       #1E2B2A;  /* primary text           */
  --ink-soft:  #46564F;  /* secondary text         */
  --mute:      #7C8A84;  /* muted labels           */
  --accent:    #1E96BE;  /* teal brand accent      */
  --accent-ink:#1A85A8;  /* accent hover/pressed   */

  --card:        #F7FAF8;
  --card-border: #DCE6E0;
  --panel:       #FFFFFF;

  --sage: #7E9C88;  /* app accent — Pulse   */
  --blue: #34607E;  /* app accent — Restore */

  /* Dark stat band */
  --band-bg:    #1E2B2A;
  --band-num:   #5FB6D2;
  --band-label: #9DB0A8;

  --mission-bg: #ECF1ED;
  --contact-bg: #E3EDE6;

  /* Type — 'Noto Sans Georgian' is the fallback for Georgian text (/ka/),
     because the Latin brand fonts contain no Georgian letters. */
  --font-head: 'Space Grotesk', 'Noto Sans Georgian', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', 'Noto Sans Georgian', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans Georgian', ui-monospace, SFMono-Regular, monospace;

  --maxw: 1180px;  /* content max width */
}

/* ---- reset ------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-head); margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 52px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ---- buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--card-border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn .arrow { font-family: var(--font-mono); }

/* ============================================================
   HERO (overlaid nav + animated canvas)
   The animation canvas is 16:9; keeping the band at that ratio
   lets it fill edge-to-edge with no letterboxing.
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 760px;
  min-height: 420px;
  background: var(--hero-bg);
  overflow: hidden;
}
#hero-root { position: absolute; inset: 0; }

/* gradient so the overlaid nav stays legible over the artwork */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 130px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(243,247,244,.9), rgba(243,247,244,0));
}

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 52px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav .btn {
  padding: 11px 22px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 15px;
}
.nav .btn:hover { background: var(--accent-ink); }
/* language switcher (EN <-> KA) — stays visible on mobile */
.nav a.lang-switch {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(255,255,255,.55);
  color: var(--ink);
}
.nav a.lang-switch:hover { border-color: var(--accent); }

/* ---- intro + CTA ------------------------------------------ */
.intro { padding: 66px 0 70px; text-align: center; }
.intro h1 {
  font-weight: 600;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 auto 20px;
  max-width: 760px;
}
.intro p {
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 34px;
}
.cta-row { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ---- stat band -------------------------------------------- */
.stats {
  background: var(--band-bg);
  color: var(--bg);
  padding: 40px 52px;
}
.stats-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--band-num);
}
.stat-label { font-size: 14px; color: var(--band-label); margin-top: 6px; }

/* ---- generic section header ------------------------------- */
.section { padding: 88px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}
.section-head h2 {
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 44px);
  letter-spacing: -0.02em;
}
.section-head p { max-width: 330px; font-size: 15px; line-height: 1.6; color: var(--mute); margin: 0; }

/* ---- apps showcase ---------------------------------------- */
.apps { background: var(--panel); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .15s ease, border-color .15s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; }
.app-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
}
.app-icon.pulse   { background: var(--sage); }
.app-icon.restore { background: var(--blue); }
.app-icon.nourish { background: var(--accent); }
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: #E7EEEA;
  color: #557A64;
}
.app-preview {
  height: 120px;
  border-radius: 13px;
  background: repeating-linear-gradient(45deg, #EAF0EC, #EAF0EC 9px, #E0E8E2 9px, #E0E8E2 18px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8FA098;
}
.app-card h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.app-card p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ---- mission ---------------------------------------------- */
.mission { background: var(--mission-bg); }
.mission h2 {
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 50px;
  max-width: 640px;
  line-height: 1.06;
}
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value { display: flex; flex-direction: column; gap: 14px; }
.value-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
}
.value-icon.a { background: var(--sage); }
.value-icon.b { background: var(--blue); }
.value-icon.c { background: var(--accent); }
.value h3 { font-size: 21px; font-weight: 600; margin: 0; }
.value p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---- contact ---------------------------------------------- */
.contact { padding: 90px 0; }
.contact-card {
  background: var(--contact-bg);
  border-radius: 28px;
  padding: 62px 56px;
  text-align: center;
}
.contact-card .eyebrow { margin-bottom: 18px; }
.contact-card h2 {
  font-weight: 600;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.contact-card > p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.signup { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.signup input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s ease;
}
.signup input:focus { border-color: var(--accent); }
.signup button {
  padding: 15px 26px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}
.signup button:hover { background: var(--accent-ink); }
.contact-note { margin-top: 20px; font-size: 14px; color: var(--mute); }
.contact-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.form-status { margin-top: 16px; font-size: 14px; color: var(--accent-ink); min-height: 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- footer ----------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner .brand-mark { width: 22px; height: 22px; border-radius: 7px; }
.footer-inner .brand-mark span { width: 8px; height: 8px; }
.footer-inner .brand-name { font-size: 15px; }
.copyright { font-size: 13px; color: var(--mute); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .wrap, .site-header, .stats, .footer-inner { padding-left: 24px; padding-right: 24px; }
  .nav { gap: 20px; }
  .nav a:not(.btn):not(.lang-switch) { display: none; }  /* keep logo + language + CTA */
  .nav { gap: 12px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .stats-grid, .app-grid, .value-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 20px; }
  .contact-card { padding: 44px 24px; }
  .signup { flex-direction: column; }
  .signup button { width: 100%; }
}

@media (max-width: 480px) {
  .hero { aspect-ratio: 4 / 3; }          /* a touch taller so the nav + art breathe */
  .site-header { padding: 18px 16px; }
  .nav .btn { padding: 10px 14px; font-size: 14px; }
  .brand-name { font-size: 18px; }
}

/* Respect reduced-motion: the hero script also checks this. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
