/* Idea-Tects LLC — site styles
   Palette mirrors the Zayn Predictions mobile app (src/components/ui.tsx). */

:root {
  --bg: #0B0F1A;
  --card: #131826;
  --text: #FFFFFF;
  --muted: #9AA3B2;
  --subtle: #4C5566;
  --accent: #5EEAD4;
  --accent-hover: #7FF3DE;
  --accent-ink: #0B0F1A;
  --border: #252C3B;
  --logo-cyan: #00b1dd;

  --radius: 12px;
  --max: 900px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  color: var(--text);
}
.brand:hover { text-decoration: none; opacity: 0.88; color: var(--text); }
.brand img {
  height: 36px;
  width: 36px;
  display: block;
  object-fit: contain;
}
.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
@media (max-width: 600px) {
  .brand img { height: 30px; width: 30px; }
  .brand-text { font-size: 0.98rem; }
}

/* Featured icon for the homepage hero */
.hero-logo {
  display: block;
  height: 132px;
  width: 132px;
  object-fit: contain;
  margin: 0 0 32px;
}
@media (max-width: 600px) {
  .hero-logo { height: 96px; width: 96px; margin-bottom: 24px; }
}

.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a.active { color: var(--text); }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  padding: 88px 0 60px;
}
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 620px;
}

/* Buttons — match the app's primary/ghost variants */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: var(--accent-ink);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
  text-decoration: none;
}

/* App-store badges — mirrors share.idea-tects.com .store-btn */
.store-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  min-width: 158px;
  transition: transform 120ms ease, border-color 120ms ease;
}
.store-btn:hover {
  border-color: #555;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.store-btn .store-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.store-btn .store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1;
}
.store-btn .store-label-small {
  font-size: 10px;
  letter-spacing: 0.2px;
  opacity: 0.85;
  margin-bottom: 3px;
}
.store-btn .store-label-big {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.store-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
@media (max-width: 380px) {
  .store-row { flex-direction: column; align-items: stretch; }
  .store-btn { min-width: 0; justify-content: center; }
}

/* Page sections */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: 1.6rem;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section p {
  color: var(--muted);
  max-width: 680px;
}

/* Page heading (non-home pages) */
.page-head {
  padding: 64px 0 28px;
}
.page-head h1 {
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.page-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.08rem;
  max-width: 620px;
}

/* Content blocks */
.prose {
  padding: 24px 0 60px;
}
.prose p { margin: 0 0 18px; color: var(--muted); }
.prose ul {
  color: var(--muted);
  padding-left: 22px;
}
.prose li { margin-bottom: 8px; }

/* App cards — mirror the dark card surface from the app */
.app-list {
  display: grid;
  gap: 20px;
  padding: 24px 0 60px;
}
.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.app-card:hover {
  border-color: var(--subtle);
}
.app-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text);
}
.app-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.10);
  border: 1px solid rgba(94, 234, 212, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.app-card p {
  color: var(--muted);
  margin: 0 0 14px;
}

/* Z mark — the actual logo cyan, on dark, no text */
.app-card .app-mark {
  flex: 0 0 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1A2030;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.app-card .app-mark::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 7px;
  background: var(--logo-cyan);
  transform: translateY(-50%) rotate(-32deg);
  opacity: 0;
}
.app-card.is-zayn .app-mark::after { opacity: 1; }
.app-card.is-zayn .app-mark { color: transparent; }

/* When the app-mark actually contains a logo image (the real Zayn
   Predictions mark), suppress every painted overlay and just show the
   image flush inside the existing 56×56 box. */
.app-card .app-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.app-card.is-zayn .app-mark:has(img) { background: transparent; border: 0; }
.app-card.is-zayn .app-mark:has(img)::before,
.app-card.is-zayn .app-mark:has(img)::after { display: none; }
.app-card.is-zayn .app-mark::before {
  content: "Z";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--text);
  z-index: 0;
}
.app-card .app-body { flex: 1; min-width: 0; }

/* Contact card — same card surface as the app */
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0 60px;
  background: var(--card);
}
.contact-card .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  margin: 0 0 6px;
}
.contact-card .value {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 18px;
  color: var(--text);
}
.contact-card .value:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--subtle);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Selection */
::selection {
  background: rgba(94, 234, 212, 0.25);
  color: var(--text);
}

/* Mobile */
@media (max-width: 600px) {
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 1.85rem; }
  .hero p.lede { font-size: 1.05rem; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.9rem; }
  .page-head { padding: 44px 0 24px; }
  .page-head h1 { font-size: 1.6rem; }
  .section { padding: 40px 0; }
}
