/* ============================================
   citychat.pl — Design Tokens
   Brand: void / graphite / sky / frost
   (shared design language with pawelrojek.dev
   and appliedai.dev; accent = CityChat brandSky)
   ============================================ */

:root {
  --color-void: #09090B;
  --color-graphite: #161618;
  --color-panel: #0D0D0F;
  --color-sky: #0EA5E9;
  --color-sky-light: #38BDF8;
  --color-sky-deep: #0284C7;
  --color-frost: #F0EFEB;
  --color-zinc: #85858E;
  --color-terminal: #34D399;

  --font-space: 'Space Grotesk', sans-serif;
  --font-instrument: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);
  --hairline: rgba(255, 255, 255, 0.04);

  --radius: 4px;
  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-void);
  color: var(--color-frost);
  font-family: var(--font-space);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

/* Blueprint dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(240, 239, 235, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

main, .site-nav, .footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--color-sky);
  color: var(--color-void);
}

a {
  color: inherit;
  text-decoration: none;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-void); }
::-webkit-scrollbar-thumb { background: var(--color-graphite); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-zinc); }


/* ============================================
   Keyframes
   ============================================ */

@keyframes systemPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 25px) scale(1.06); }
}

@keyframes typingBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   Layout
   ============================================ */

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 3rem; }
}

.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  scroll-margin-top: 4.5rem;
}

/* Crosshair tick where section rule meets margin */
.section::before {
  content: '+';
  position: absolute;
  top: -0.85rem;
  left: max(1rem, calc((100vw - 72rem) / 2 - 0.5rem));
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(240, 239, 235, 0.22);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .section { padding: 7rem 0; }
}

.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.035;
  pointer-events: none;
  z-index: 2;
}


/* ============================================
   Typography
   ============================================ */

h1 {
  font-family: var(--font-space);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h1 em, h2 em {
  font-family: var(--font-instrument);
  font-style: italic;
  font-weight: 400;
  color: var(--color-sky);
  letter-spacing: 0;
}

h2 {
  font-family: var(--font-space);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 40rem;
}

h3 {
  font-family: var(--font-space);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-zinc);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-label::after {
  content: '';
  width: 3rem;
  height: 1px;
  background: var(--border-hover);
}

.label-no {
  color: var(--color-sky);
}

.text-link {
  color: var(--color-frost);
  border-bottom: 1px solid var(--color-sky);
  transition: color 0.25s var(--easing-smooth), border-color 0.25s var(--easing-smooth);
}

.text-link:hover {
  color: var(--color-sky);
}


/* ============================================
   Nav
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s var(--easing-smooth), border-color 0.3s var(--easing-smooth);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: none;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-zinc);
}

.nav-links a {
  transition: color 0.25s var(--easing-smooth);
}

.nav-links a:hover {
  color: var(--color-frost);
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-zinc);
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-terminal);
  animation: systemPulse 2.4s infinite;
  flex-shrink: 0;
}


/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  padding: 8.5rem 0 5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero { padding: 11rem 0 7rem; }
}

.hero-orb {
  position: absolute;
  top: -12rem;
  right: -10rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, transparent 65%);
  animation: floatOrb 14s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; }
}

.hero-copy h1 {
  margin: 1.4rem 0 1.6rem;
}

.hero-sub {
  color: var(--color-zinc);
  max-width: 32rem;
  font-size: 1.05rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--color-zinc);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-stagger {
  opacity: 0;
  animation: riseIn 0.7s var(--easing-smooth) forwards;
}

.hero-copy .hero-stagger:nth-child(1) { animation-delay: 0.05s; }
.hero-copy h1.hero-stagger { animation-delay: 0.15s; }
.hero-sub.hero-stagger { animation-delay: 0.27s; }
.hero-actions.hero-stagger { animation-delay: 0.39s; }
.hero-chat.hero-stagger { animation-delay: 0.5s; }


/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--easing-spring), background-color 0.25s var(--easing-smooth),
    border-color 0.25s var(--easing-smooth), color 0.25s var(--easing-smooth);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-sky);
  color: var(--color-void);
  font-weight: 500;
}

.btn-primary:hover { background: var(--color-sky-deep); color: var(--color-frost); }

.btn-ghost {
  border-color: var(--border-hover);
  color: var(--color-frost);
}

.btn-ghost:hover {
  border-color: var(--color-sky);
  color: var(--color-sky);
}

.btn-disabled {
  border-color: var(--border-subtle);
  color: var(--color-zinc);
  cursor: default;
}

.btn-disabled:hover { transform: none; }


/* ============================================
   Hero chat card (the app, as a schematic)
   ============================================ */

.hero-chat {
  background: var(--color-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.t-red { background: #FF5F57; }
.t-amber { background: #FEBC2E; }
.t-green { background: #28C840; }

.chat-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-zinc);
  letter-spacing: 0.04em;
}

.chat-body {
  padding: 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.msg {
  max-width: 88%;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
}

.msg-user {
  align-self: flex-end;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--color-frost);
  border-bottom-right-radius: 3px;
}

.msg-city {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--color-zinc);
  border-bottom-left-radius: 3px;
}

.msg-city strong {
  color: var(--color-frost);
  font-weight: 500;
}

.msg-meta {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(240, 239, 235, 0.35);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.typing-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--color-sky);
  animation: typingBlink 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }


/* ============================================
   Reveal on scroll
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--easing-smooth), transform 0.7s var(--easing-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   Feature cards
   ============================================ */

.cards-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: rgba(13, 13, 15, 0.5);
  transition: border-color 0.25s var(--easing-smooth), transform 0.25s var(--easing-smooth);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-sky);
}

.card p {
  color: var(--color-zinc);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.card-pro {
  border-color: rgba(14, 165, 233, 0.3);
}

.pro-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-void);
  background: var(--color-sky);
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
}


/* ============================================
   Cities
   ============================================ */

.cities-list {
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.city-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 1.6rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.city-name {
  font-family: var(--font-space);
  font-weight: 500;
  font-size: 1.25rem;
  min-width: 11rem;
}

.city-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid;
}

.city-status-live {
  color: var(--color-terminal);
  border-color: rgba(52, 211, 153, 0.4);
}

.city-status-next {
  color: var(--color-zinc);
  border-color: var(--border-hover);
}

.city-note {
  color: var(--color-zinc);
  font-size: 0.9rem;
  flex: 1;
  min-width: 14rem;
}


/* ============================================
   Business
   ============================================ */

.biz-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 1.4rem;
}

@media (min-width: 1024px) {
  .biz-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.biz-copy p {
  color: var(--color-zinc);
  margin-top: 1.1rem;
  max-width: 32rem;
}

.biz-copy p strong {
  color: var(--color-frost);
  font-weight: 500;
}

.biz-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(13, 13, 15, 0.5);
  padding: 1.6rem;
}

.biz-points li {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--color-zinc);
  padding-left: 1.2rem;
  position: relative;
}

.biz-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: rgba(14, 165, 233, 0.7);
  font-size: 0.72rem;
  top: 0.18em;
}

.biz-points li strong {
  color: var(--color-frost);
  font-weight: 500;
}


/* ============================================
   Privacy strip
   ============================================ */

.privacy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.4rem;
  margin-top: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-zinc);
}

.privacy-strip span::before {
  content: '✓ ';
  color: var(--color-terminal);
}


/* ============================================
   Contact / download
   ============================================ */

.section-contact {
  padding-bottom: 8rem;
}

.contact-sub {
  color: var(--color-zinc);
  max-width: 30rem;
  margin: 1.2rem 0 2.2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(240, 239, 235, 0.3);
  letter-spacing: 0.08em;
}


/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-zinc);
}

.footer-sep { color: rgba(240, 239, 235, 0.2); }

.footer-mono { color: rgba(240, 239, 235, 0.3); }


/* ============================================
   Subpages (privacy policy)
   ============================================ */

.page-hero {
  position: relative;
  padding: 9rem 0 3.5rem;
  overflow: hidden;
}

.page-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--color-sky);
  margin-bottom: 1.2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.page-sub {
  color: var(--color-zinc);
  max-width: 36rem;
  font-size: 1.05rem;
  margin-top: 1.4rem;
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-zinc);
  margin-top: 1.6rem;
}

.prose {
  color: var(--color-zinc);
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 6rem;
}

.prose h2 {
  color: var(--color-frost);
  font-size: 1.35rem;
  margin-top: 2.2rem;
}

.prose strong {
  color: var(--color-frost);
  font-weight: 500;
}

.prose a {
  color: var(--color-frost);
  border-bottom: 1px solid var(--color-sky);
}

.prose a:hover { color: var(--color-sky); }

.prose ul {
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.6rem 0;
}

.prose th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-frost);
  text-align: left;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--border-hover);
}

.prose td {
  padding: 0.7rem 0.8rem 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.prose td:first-child {
  color: var(--color-frost);
}

/* ============================================
   Concept screens gallery
   ============================================ */

.screens-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-zinc);
  margin-top: 0.8rem;
}

.phones-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .phones-row { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .phones-row { grid-template-columns: repeat(5, 1fr); }
}

.phone-shot {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.phone-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s var(--easing-spring), border-color 0.3s var(--easing-smooth);
}

.phone-shot:hover img {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.phone-shot figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-zinc);
  text-align: center;
}
