/* Cyaniz Labs™ — premium indie studio */
:root {
  --bg: #07090c;
  --bg-elev: #0d1117;
  --bg-card: #12181f;
  --bg-card-hover: #171e27;
  --border: rgba(120, 180, 200, 0.12);
  --border-strong: rgba(80, 220, 230, 0.28);
  --text: #e8eef2;
  --text-muted: #8a9aa8;
  --text-dim: #5c6b78;
  --cyan: #2ee6d6;
  --cyan-dim: #1a9e94;
  --cyan-glow: rgba(46, 230, 214, 0.18);
  --amber: #e8b84a;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, "Inter", sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(46, 230, 214, 0.09), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 10%, rgba(40, 120, 160, 0.06), transparent 50%),
    radial-gradient(ellipse 35% 25% at 10% 60%, rgba(20, 80, 90, 0.05), transparent 50%);
}

a { color: var(--cyan); text-decoration: none; transition: color 0.15s; }
a:hover { color: #7ff5ea; }

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

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 12, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-strong), 0 0 20px var(--cyan-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.nav-links a.nav-cta {
  background: linear-gradient(135deg, rgba(46,230,214,0.15), rgba(46,230,214,0.05));
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  margin-left: 0.4rem;
}
.nav-links a.nav-cta:hover {
  background: rgba(46,230,214,0.22);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 13, 18, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-cta { margin-left: 0; text-align: center; }
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(46,230,214,0.06);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0 auto 1.1rem;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--cyan), #7ec8ff 55%, var(--cyan-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 38rem;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.hero-mark {
  margin: 2.5rem auto 0;
  width: min(220px, 55vw);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 24px 60px rgba(0,0,0,0.45),
    0 0 80px var(--cyan-glow);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(145deg, #2ee6d6, #149e98);
  color: #041210;
  box-shadow: 0 4px 24px var(--cyan-glow);
}
.btn-primary:hover { color: #041210; filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* —— Sections —— */
section { padding: 3.25rem 0; }
.section-head {
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.section-head p {
  color: var(--text-muted);
  max-width: 36rem;
}
.eyebrow {
  color: var(--cyan-dim);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* —— Pitch strip —— */
.pitch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) {
  .pitch { grid-template-columns: 1fr; }
}
.pitch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}
.pitch-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  font-weight: 650;
}
.pitch-card p { color: var(--text-muted); font-size: 0.92rem; }

/* —— App cards —— */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.app-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.app-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}
.app-card h3 {
  font-size: 1.1rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}
.app-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}
.app-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.app-card .play-link {
  font-size: 0.82rem;
  font-weight: 600;
}
.app-card.coming-soon {
  border-style: dashed;
  opacity: 0.92;
}
.app-card.coming-soon .tag { color: var(--amber); }

.category-block { margin-bottom: 2.5rem; }
.category-block h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.category-block h2 span {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* —— CTA band —— */
.cta-band {
  margin: 2rem 0 1rem;
  padding: 2.5rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(145deg, rgba(46,230,214,0.08), transparent 50%),
    var(--bg-elev);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin-bottom: 0.5rem;
}
.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* —— About / prose —— */
.prose {
  max-width: 40rem;
}
.prose p { color: var(--text-muted); margin-bottom: 1rem; }
.prose strong { color: var(--text); font-weight: 650; }
.studio-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.meta-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.meta-tile dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  font-weight: 650;
  margin-bottom: 0.25rem;
}
.meta-tile dd { font-weight: 600; color: var(--text); }

/* —— Contact —— */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
}
.contact-card a.email {
  font-size: 1.25rem;
  font-weight: 650;
  word-break: break-all;
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 550;
}
.social-chip:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
}

/* —— Privacy —— */
.policy-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.policy-list a {
  display: block;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 550;
}
.policy-list a:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
}
.policy-list a span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 450;
  margin-top: 0.15rem;
}

/* —— Footer —— */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--cyan); }

/* —— Page title —— */
.page-hero {
  padding: 3rem 0 1.5rem;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 720;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* —— Status pills (apps catalog) —— */
.app-card .tag + .status,
.app-card .status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  width: fit-content;
}
.status-closed {
  color: var(--amber);
  background: rgba(232, 184, 74, 0.1);
  border: 1px solid rgba(232, 184, 74, 0.28);
}
.status-demo {
  color: #9ec5ff;
  background: rgba(100, 150, 220, 0.12);
  border: 1px solid rgba(100, 150, 220, 0.3);
}
.status-live {
  color: var(--cyan);
  background: rgba(46, 230, 214, 0.1);
  border: 1px solid var(--border-strong);
}
.status-label { color: var(--amber); cursor: default; }

.hero-price {
  margin-top: 0.35rem !important;
  margin-bottom: 1.5rem !important;
  color: var(--cyan) !important;
  font-weight: 600;
}
.hero-price code { color: inherit; font-size: 0.95em; }

.chip-note {
  color: var(--text-dim);
  font-weight: 450;
  font-size: 0.78rem;
  margin-left: 0.15rem;
}

/* —— Mobile polish —— */
@media (max-width: 760px) {
  .wrap { width: min(100% - 1.5rem, var(--max)); }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { max-width: none; }
  .hero-actions .btn,
  .nav-links a,
  .social-chip,
  .btn {
    min-height: 44px;
  }
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .cta-band { padding: 1.75rem 1.25rem; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-card { padding: 1.5rem 1.25rem; max-width: 100%; }
  .apps-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 2.25rem 0 1.25rem; }
}

/* —— Screenshot gallery —— */
.app-card[data-app] {
  cursor: pointer;
  position: relative;
}
.app-card[data-app]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.app-card .shot-hint {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  opacity: 0.75;
  transition: opacity 0.15s, color 0.15s;
}
.app-card[data-app]:hover .shot-hint,
.app-card[data-app]:focus-visible .shot-hint {
  opacity: 1;
  color: var(--cyan);
}

.shot-modal[hidden] { display: none !important; }
.shot-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.shot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 10, 0.78);
  backdrop-filter: blur(6px);
}
.shot-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.shot-modal-title {
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  padding-right: 2.5rem;
}
.shot-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.shot-modal-close:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.shot-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  outline: none;
}
.shot-track {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #05070a;
  touch-action: pan-y;
  user-select: none;
}
.shot-slide {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.shot-slide.is-active {
  display: flex;
}
.shot-slide img {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.shot-nav {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.shot-nav:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--cyan);
}
.shot-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.shot-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.shot-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: var(--text-dim);
  cursor: pointer;
  padding: 0;
}
.shot-dot.is-active {
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
body.shot-modal-open {
  overflow: hidden;
}
@media (max-width: 640px) {
  .shot-modal { padding: 0.75rem; }
  .shot-modal-dialog { padding: 1rem 0.85rem 1.15rem; }
  .shot-nav { width: 2rem; height: 2rem; font-size: 1.25rem; }
  .shot-slide img { max-height: min(62vh, 560px); }
}
