/* Personal site — Nimrod Bar
   Vanilla CSS, no build step. */

:root {
  /* Color tokens */
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-faint: #86868b;
  --accent: #007AFF;
  --hairline: rgba(0, 0, 0, 0.06);

  --shadow-card: 0 1px 0 rgba(0,0,0,0.04),
                 0 8px 24px -8px rgba(0,0,0,0.12),
                 0 0 0 1px rgba(0,0,0,0.06);

  /* Type scale */
  --fs-hero: clamp(56px, 7vw, 88px);
  --fs-section: clamp(34px, 4vw, 44px);
  --fs-app-name: 30px;
  --fs-app-tag: 18px;
  --fs-body: 17px;
  --fs-small: 14px;

  --lh-display: 1;
  --lh-body: 1.5;

  --ls-display: -0.025em;
  --ls-section: -0.022em;
  --ls-app: -0.02em;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }

/* HERO */
.hero {
  background: radial-gradient(ellipse at 50% 0%, #1a1d24 0%, #0a0a0c 70%);
  color: #f5f5f7;
  padding: 96px 32px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 50% 0%, rgba(10,132,255,0.18), transparent 70%);
  pointer-events: none;
}
.hero-name {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
}
.hero-role {
  font-size: 22px;
  color: #a1a1a6;
  margin: 22px auto 0;
  max-width: 580px;
  line-height: 1.45;
}
.hero-meta {
  margin-top: 36px;
  font-size: var(--fs-small);
  color: var(--text-faint);
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta a {
  color: #f5f5f7;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px;
}
.hero-meta a:hover { border-color: #f5f5f7; }
.hero-meta .dot { color: #444; }

/* SECTIONS */
.section { padding: 96px 32px 72px; }
.section-eyebrow {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-size: var(--fs-section);
  font-weight: 700;
  letter-spacing: var(--ls-section);
  margin-bottom: 56px;
}

/* APP CARDS */
.apps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}
.app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.app-text {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  margin-bottom: 18px;
}
.app-name {
  font-size: var(--fs-app-name);
  font-weight: 700;
  letter-spacing: var(--ls-app);
}
.app-tag {
  font-size: var(--fs-app-tag);
  color: var(--text-muted);
  margin: 6px 0 18px;
}
.app-desc {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.app-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 980px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}
.btn-primary { background: #1d1d1f; color: #fff; }
.btn-secondary { background: rgba(0,0,0,0.06); color: #1d1d1f; }
.btn:hover { opacity: 0.85; }

/* Status pills */
.status {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 980px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-live { background: rgba(52,199,89,0.10); color: #1f8a3b; }
.status-soon { background: rgba(255,159,10,0.12); color: #b46500; }
.status-dev  { background: rgba(212,175,80,0.18); color: #a07a1f; }
.status-beta { background: rgba(0,87,255,0.12); color: #0047cc; }

/* App visuals */
.app-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 320px;
}
.app-visual img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.18);
}

/* Parsee — App Store hero fills the cell edge-to-edge.
   Card background matches the hero's own lavender background so any
   vertical letterboxing is invisible. */
.app-visual-parsee {
  background: linear-gradient(180deg, #b9c2e3 0%, #a4afd6 100%);
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.app-visual-parsee img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* WisePath — soft blue, screenshot centered with rounded corners */
.app-visual-wisepath {
  background: linear-gradient(135deg, #e7eeff 0%, #cdd9ff 100%);
}
.app-visual-wisepath img {
  max-height: 340px;
  border-radius: 24px;
}

/* Safeus — soft green, screenshot centered with rounded corners */
.app-visual-safeus {
  background: linear-gradient(135deg, #e9f5ee 0%, #d1ead9 100%);
}
.app-visual-safeus img {
  max-height: 320px;
  border-radius: 24px;
}

/* Bond — cream so dark phone reads against it */
.app-visual-bond {
  background: linear-gradient(135deg, #f4ebd4 0%, #e8d9b7 100%);
  padding: 32px;
}
.app-visual-bond img {
  max-height: 380px;
  border-radius: 28px;
  box-shadow: 0 18px 44px -12px rgba(60,40,10,0.35);
}

/* ABOUT */
.about { background: var(--bg-alt); text-align: center; }
.about-prose {
  max-width: 620px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.6;
}
.about-prose p { margin-bottom: 18px; }
.about-prose p:last-child { margin-bottom: 0; }
.about-prose .muted { color: var(--text-muted); }

/* FOOTER */
.footer {
  padding: 56px 32px 64px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.footer-link {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 16px;
}
.footer-link:hover { color: var(--accent); }
.copyright {
  color: var(--text-faint);
  font-size: 13px;
}

/* RESPONSIVE — stack app cards on narrow viewports */
@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr;
  }
  .app-visual {
    order: -1;
    min-height: 280px;
  }
  .status {
    top: 16px;
    right: 16px;
  }
}
