/* ========================================================================
   PHXTEKS — shared site styles
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* color */
  --bg:           #0b1118;
  --bg-2:         #0e151f;
  --panel:        #141d28;
  --panel-2:      #1a2533;
  --border:       rgba(255,255,255,0.06);
  --border-strong:rgba(255,255,255,0.12);
  --text:         #eef2f7;
  --muted:        #9aa6b4;
  --muted-2:      #6d7886;
  --accent:       #6aa8e6;
  --accent-strong:#8fc1ee;
  --accent-deep:  #3d6996;
  --ok:           #6fc69a;
  --ok-dim:       rgba(111,198,154,0.10);
  --warn:         #c98a6a;
  --warn-dim:     rgba(201,138,106,0.10);

  /* type */
  --font-sans:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

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

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(900px 500px at 12% -10%, rgba(106,168,230,0.08), transparent 60%),
    radial-gradient(700px 400px at 92% 0%, rgba(106,168,230,0.04), transparent 60%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

/* selection */
::selection { background: var(--accent); color: #0b1118; }

/* ---- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,17,24,0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.brand:hover { color: var(--text); }

.brand-mark {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(106,168,230,0.10);
}

/* ---- main / sections ---- */

main { flex: 1; }

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section.narrow { max-width: 920px; }

.section.tight { padding-top: 2rem; padding-bottom: 2rem; }

/* ---- type ---- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, .h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
  text-wrap: balance;
}

h2, .h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

p {
  color: var(--muted);
  line-height: 1.65;
}

p + p { margin-top: 0.75rem; }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color .15s;
}

a:hover { color: var(--text); }

strong { color: var(--text); font-weight: 600; }

hr.divider {
  border: 0;
  border-top: 1px dashed var(--border-strong);
  margin: 2.5rem 0;
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: #0b1118;
  background: var(--accent-strong);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s, border-color .15s, color .15s, opacity .15s;
  white-space: nowrap;
  line-height: 1.2;
}

.btn:hover {
  background: #b3d8f4;
  color: #0b1118;
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn .arrow {
  display: inline-block;
  transition: transform .15s ease;
}

.btn:hover .arrow { transform: translateX(2px); }

/* ---- cards ---- */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
}

.card-feature {
  position: relative;
  background: linear-gradient(180deg, rgba(106,168,230,0.04), transparent 30%), var(--panel);
}

.card-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 25%, var(--accent) 75%, transparent);
  opacity: 0.55;
}

.card h2 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }

/* ---- lists ---- */

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.list li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  padding-left: 0;
  position: static;
  display: flex;
  gap: 0.55rem;
}

.list li::before {
  content: "–";
  color: var(--accent);
  flex-shrink: 0;
  background: none;
  width: auto;
  height: auto;
  position: static;
  top: auto;
  left: auto;
  font-size: 0.95rem;
  line-height: 1.55;
}

.list-check li,
.list-cross li {
  padding-left: 1.85rem;
}

.list-check li::before,
.list-cross li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.list-check li::before {
  background-color: var(--ok-dim);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fc69a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>");
}

.list-cross li::before {
  background-color: var(--warn-dim);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c98a6a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 6l12 12M18 6L6 18'/></svg>");
}

/* ---- grid ---- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

/* ---- chips / tags ---- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.chip-ok {
  border-color: rgba(111,198,154,0.30);
  background: var(--ok-dim);
  color: var(--ok);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(111,198,154,0.18);
  display: inline-block;
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--ok);
  opacity: 0.35;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.45; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---- footer ---- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer-brand .brand { margin-bottom: 0.75rem; }

.site-footer-brand p {
  font-size: 0.88rem;
  color: var(--muted-2);
  max-width: 34ch;
}

.site-footer-brand .related {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.site-footer-brand .related a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}

.site-footer-brand .related a:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

.site-footer-group h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.85rem;
}

.site-footer-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer-group a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-group a:hover { color: var(--text); }

.site-footer-meta {
  border-top: 1px solid var(--border);
}

.site-footer-meta-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.site-footer-meta-inner .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* ---- responsive ---- */

@media (max-width: 760px) {
  .site-header-inner { gap: 0.5rem; padding: 0.75rem 1rem; }
  .site-nav { gap: 0; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { padding: 0.35rem 0.55rem; font-size: 0.84rem; }
  .section { padding: 2.75rem 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 1.25rem 1.5rem; }
  .site-footer-meta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }
}
