/* ceanic.app — base styles */

* { box-sizing: border-box; }

:root {
  --bg: #0A0A0B;
  --bg-elev: #111114;
  --bg-card: #131318;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F5F5F7;
  --text-dim: #A1A1A6;
  --text-muted: #6B6B72;
  --brand: #5B8DEF;
  --brand-accent: #1F4FB6;
  --status-live: #34D399;
  --status-soon: #F59E0B;
  --status-dev: #6B6B72;
  --radius: 14px;
  --radius-sm: 10px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.011em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body { line-height: 1.5; }

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

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  padding: 22px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  z-index: 10;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand .dot { color: var(--brand); }

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

.site-footer {
  margin-top: auto;
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.footer-inner a { color: var(--text-dim); }
.footer-inner a:hover { color: var(--text); }

/* ── Home page ──────────────────────────────────────────── */

.home-main { max-width: 1100px; margin: 0 auto; padding: 80px 32px; width: 100%; }

.hero-home h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #fff 0%, #B8B8C0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-dim);
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 56px;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter {
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand, #5B8DEF), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 1px var(--brand, #5B8DEF) inset;
}
.card:hover::before { opacity: 1; }

.card-logo {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.logo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand, #5B8DEF), var(--brand-accent, #1F4FB6));
  color: white;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-name { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.card-tagline {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
  margin-top: 4px;
}
.status-live { background: rgba(52,211,153,0.12); color: var(--status-live); }
.status-coming_soon { background: rgba(245,158,11,0.12); color: var(--status-soon); }
.status-in_development { background: rgba(107,107,114,0.16); color: var(--status-dev); }

/* ── App page ───────────────────────────────────────────── */

.app-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  width: 100%;
  position: relative;
}

.brand-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 720px;
  height: 520px;
  margin-left: -360px;
  pointer-events: none;
  z-index: 0;
}
/* Two stacked radial glows that breathe + drift independently for organic motion */
.brand-glow::before,
.brand-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, var(--brand) 0%, transparent 68%);
  filter: blur(48px);
  will-change: transform, opacity;
  border-radius: 50%;
}
.brand-glow::before {
  opacity: 0.22;
  animation: glow-pulse 7s ease-in-out infinite;
}
.brand-glow::after {
  opacity: 0.14;
  animation: glow-drift 11s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.22; }
  50%      { transform: scale(1.12) translate(0, -6px); opacity: 0.30; }
}
@keyframes glow-drift {
  0%   { transform: scale(0.95) translate(-22px, 8px);  opacity: 0.14; }
  33%  { transform: scale(1.08) translate(28px, -4px);  opacity: 0.20; }
  66%  { transform: scale(1.02) translate(-12px, -16px); opacity: 0.16; }
  100% { transform: scale(0.95) translate(-22px, 8px);  opacity: 0.14; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-glow::before, .brand-glow::after { animation: none; }
}

/* Subtle logo lift to match the glow's rhythm */
.app-logo {
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-logo { animation: none; }
}

.app-hero {
  position: relative;
  text-align: center;
  z-index: 1;
}

.app-logo {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  margin: 0 auto 28px;
  display: block;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  object-fit: cover;
}
.app-logo.logo-fallback {
  font-size: 48px;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
}

.app-name {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.app-tagline {
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1.4;
  margin: 0 auto 32px;
  max-width: 480px;
}

.cta-row {
  margin: 0 0 60px;
  display: flex;
  justify-content: center;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease;
}
.appstore-badge:hover { transform: scale(1.02); }
.appstore-badge svg { display: block; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(245,158,11,0.12);
  color: var(--status-soon);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(245,158,11,0.25);
}
.status-pill.muted {
  background: rgba(107,107,114,0.14);
  color: var(--text-dim);
  border-color: rgba(255,255,255,0.08);
}

.pitch {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto 48px;
  max-width: 560px;
}
.pitch p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.012em;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0 0 60px;
  position: relative;
  z-index: 1;
}
.feature {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}
.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--brand);
}
.feature-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}

.screenshots {
  /* Stays within .app-main's 720px column to preserve page symmetry.
     Third phone deliberately peeks off the right edge as a scroll hint. */
  margin: 0 -32px 60px;
  position: relative;
  z-index: 1;
}
/* Edge gradients so users see there's more content to scroll to */
.screenshots::before,
.screenshots::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 16px;
  width: 48px;
  pointer-events: none;
  z-index: 2;
}
.screenshots::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}
.screenshots::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}
.screenshots-track {
  display: flex;
  gap: 18px;
  padding: 4px 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 32px;
  -webkit-overflow-scrolling: touch;
  /* Slim styled scrollbar so users know it scrolls */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.screenshots-track::-webkit-scrollbar {
  height: 8px;
}
.screenshots-track::-webkit-scrollbar-track {
  background: transparent;
}
.screenshots-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
}
.screenshots-track::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.28);
}
.screenshots-track img {
  height: 540px;
  width: auto;
  border-radius: 22px;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  user-select: none;
}

.long-desc {
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 560px;
}
.long-desc p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 720px) {
  .home-main, .app-main { padding-left: 20px; padding-right: 20px; }
  .app-name { font-size: 42px; }
  .pitch p { font-size: 17px; }
  .screenshots-track img { height: 420px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
