/* ===== Asymmetric Industries LLC — styles ===== */
:root {
  --bg: #0b0f14;
  --bg-alt: #11161d;
  --surface: #161d27;
  --surface-2: #1d2632;
  --text: #e8edf4;
  --muted: #9aa7b8;
  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --border: #243040;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800; letter-spacing: 0.5px; color: #fff;
}
.brand-name { font-size: 1.05rem; }
.brand-llc { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 0.8rem; vertical-align: super; }

.site-nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  font-weight: 500; transition: background 0.15s, color 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.is-active { color: #fff; background: var(--surface-2); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(1000px 400px at 70% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(800px 360px at 10% 0%, rgba(79, 140, 255, 0.16), transparent 55%);
}
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 8px; }
.hero-title { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 16px; }
.hero-title span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Lead-gen band (deliberate split: local-business path above the brand story) ===== */
.intake-band {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(620px 260px at 50% -30%, rgba(79, 140, 255, 0.20), transparent 60%),
    var(--bg-alt);
}
.intake-band-inner { padding: 42px 0 40px; text-align: center; }
.intake-kicker {
  color: var(--accent); font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; font-size: 0.78rem; margin: 0 0 10px;
}
.intake-band-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.1; margin: 0 0 12px; }
.intake-band-sub { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto 22px; }
.intake-band-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-text, #fff); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow); filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 32px; }

/* ===== Cards (projects) ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  width: 100%; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Per-app accent on each card — a hint of the environment you snap into */
.card-themed { border-top: 3px solid var(--card-accent, var(--accent)); }
.card-themed .card-cta { color: var(--card-accent, var(--accent)); }
.card-themed:hover {
  border-color: var(--card-accent, var(--accent));
  box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--card-accent, var(--accent)) 55%, transparent);
}
.card-swatches { display: flex; gap: 6px; margin-top: 2px; }
.card-swatches span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); }
.card-icon { font-size: 1.8rem; }
.card-title { font-size: 1.2rem; font-weight: 700; margin: 0; }
.card-desc { color: var(--muted); margin: 0; flex: 1; }
.card-cta { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.card-tag { align-self: flex-start; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; }

/* status colors */
.status-shipped  { color: #6ee7a8; border-color: rgba(110,231,168,0.4); }
.status-building  { color: #7fb0ff; border-color: rgba(127,176,255,0.4); }
.status-designed  { color: #c4a6ff; border-color: rgba(196,166,255,0.4); }
.status-concept   { color: var(--muted); }

/* ===== Prose (doctrine + detail body) ===== */
.prose p { color: var(--muted); margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose.tech p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92rem; }

/* ===== Detail overlay ===== */
.no-scroll { overflow: hidden; }
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; }
.overlay[hidden] { display: none; }
.overlay-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(3px); }
.overlay-panel {
  position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 5vh 16px;
  max-height: 90vh; overflow-y: auto;
  background: var(--bg-alt); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px 36px 44px;
}
/* Titles + section headings follow the themed text color so a light-themed
   app (By Bree, Homecraft, etc.) never renders near-white text on a pale panel. */
.overlay-panel .detail-title,
.overlay-panel .detail-h { color: var(--text); }
.overlay-close {
  position: sticky; top: 0; float: right; margin: -12px -12px 0 0;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.overlay-close:hover { border-color: var(--accent); }

/* ===== Themed panel — "snap into the app" ===== */
.overlay-panel.is-themed {
  font-family: var(--app-font, inherit);
  animation: snap-in 0.46s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.overlay-panel.is-themed .detail-title,
.overlay-panel.is-themed .detail-h { font-family: var(--app-font-heading, var(--app-font, inherit)); }
.overlay-panel.is-themed .detail-tagline { color: var(--accent); }
@keyframes snap-in {
  0%   { opacity: 0; transform: translateY(16px) scale(0.975); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .overlay-panel.is-themed { animation: none; }
}

.detail-head { margin-bottom: 24px; }
.detail-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 10px 0 6px; }
.detail-tagline { color: var(--text); font-size: 1.1rem; margin: 0 0 18px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-actions .btn { padding: 10px 18px; }
.detail-h { font-size: 1.25rem; margin: 32px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.feature-label { margin: 0 0 8px; font-size: 1rem; color: var(--accent); }
.feature-detail p { color: var(--muted); margin: 0 0 0.6em; font-size: 0.95rem; }
.feature-detail p:last-child { margin-bottom: 0; }

/* ===== Links ===== */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.link-pill {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; font-weight: 600; transition: border-color 0.15s, background 0.15s;
}
.link-pill:hover { border-color: var(--accent); background: var(--surface-2); }
.link-pill .link-icon { font-size: 1.3rem; }

.about-text { color: var(--muted); font-size: 1.1rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }

/* ===== Empty state ===== */
.empty { color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { border-radius: 8px; }
}
