/* ============================================================
   Pharanos — corporate site
   Dark slate/indigo base with coral + emerald accents.
   No JavaScript anywhere on this site, by design.
   ============================================================ */

:root {
  /* Background is deliberately lighter than the logo's darkest face
     (#161938) so the mark's bottom triangle stays visible — don't darken
     it back below ~#232e4c without re-checking the logo. */
  --bg: #232e4c;
  --bg-raised: #2a3556;
  --bg-card: #2d395e;
  --border: #3e4b73;
  --text: #e7ecf5;
  --text-muted: #9aa7bd;
  --text-faint: #6b7891;
  --indigo: #6366f1;
  --indigo-soft: #818cf8;
  --coral: #ff5a5f;
  --emerald: #10b981;
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- layout ---------- */

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

.narrow { max-width: 780px; }

section { padding: 72px 0; }

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

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(35, 46, 76, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img { height: 34px; width: auto; display: block; }

.brand .name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

nav.main {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav.main a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

nav.main a:hover,
nav.main a:focus-visible {
  color: var(--text);
  background: var(--bg-card);
}

nav.main a.active { color: var(--indigo-soft); }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%,
      rgba(99, 102, 241, 0.22), transparent 70%);
}

.hero img.mark {
  height: 108px;
  width: auto;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--indigo-soft), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero .cta-row {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover, .btn:focus-visible { transform: translateY(-1px); }

.btn.primary {
  background: linear-gradient(135deg, var(--indigo), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.btn.coral {
  background: linear-gradient(135deg, var(--coral), #f43f5e);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 90, 95, 0.3);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--bg-card); }

/* ---------- section headings ---------- */

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 12px;
}

.kicker.coral { color: var(--coral); }
.kicker.indigo { color: var(--indigo-soft); }

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 720px;
}

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

.grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p { color: var(--text-muted); font-size: 0.96rem; }

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
  background: rgba(99, 102, 241, 0.16);
  color: var(--indigo-soft);
}

.card.emerald .num { background: rgba(16, 185, 129, 0.14); color: var(--emerald); }
.card.coral .num { background: rgba(255, 90, 95, 0.14); color: var(--coral); }

/* ---------- product / brand cards ---------- */

.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-raised));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.product .badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.badge.live { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.badge.soon { background: rgba(255, 90, 95, 0.15); color: var(--coral); }

.product h3 { font-size: 1.4rem; font-weight: 750; }

.product p { color: var(--text-muted); }

.product .links { margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }

.product .links a { color: var(--indigo-soft); text-decoration: none; font-weight: 600; }
.product .links a:hover, .product .links a:focus-visible { text-decoration: underline; }

/* ---------- prose (legal pages) ---------- */

.prose { max-width: 780px; }

.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.prose .meta {
  color: var(--text-faint);
  font-size: 0.92rem;
  margin-bottom: 36px;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
}

.prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 26px 0 8px;
}

.prose p, .prose li { color: var(--text-muted); }

.prose p { margin-bottom: 14px; }

.prose ul, .prose ol { margin: 0 0 14px 22px; }

.prose li { margin-bottom: 6px; }

.prose strong { color: var(--text); }

.prose a { color: var(--indigo-soft); }

.prose .note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

.prose .note p { margin: 0; }

/* ---------- support blocks ---------- */

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 28px;
}

.contact-card .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-card a.email {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--emerald);
  text-decoration: none;
  word-break: break-all;
}

.contact-card a.email:hover, .contact-card a.email:focus-visible { text-decoration: underline; }

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

footer.site {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
  margin-top: 40px;
}

footer.site .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

footer.site .brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

footer.site .brandline img { height: 24px; width: auto; }

footer.site nav {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
}

footer.site nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

footer.site nav a:hover, footer.site nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

footer.site .fine {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.hero .hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.aside-note { margin-top: 18px; color: var(--text-muted); }
.aside-note a { color: var(--indigo-soft); }

/* ---------- misc ---------- */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--indigo-soft);
  outline-offset: 2px;
}

::selection { background: rgba(99, 102, 241, 0.4); }

/* ---------- responsive nav: hamburger + Products dropdown (no JS) ---------- */
.nav-burger { display: none; }

/* Products dropdown — native <details>, so it needs no JavaScript. */
nav.main details.nav-dd { position: relative; }
nav.main details.nav-dd > summary {
  list-style: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.15s, background 0.15s;
}
nav.main details.nav-dd > summary::-webkit-details-marker { display: none; }
/* Font Awesome Free "chevron-down", inlined as SVG (the strict CSP forbids
   external icon fonts and data: URIs). */
nav.main details.nav-dd > summary .dd-caret {
  width: 0.68em; height: 0.68em; fill: currentColor; opacity: 0.75;
  transition: transform 0.15s;
}
nav.main details.nav-dd[open] > summary .dd-caret { transform: rotate(180deg); }
/* Font Awesome Free "arrow-right" used inline in call-to-action links. */
.lnk-arrow {
  width: 0.82em; height: 0.82em; fill: currentColor;
  vertical-align: -0.08em; margin-left: 5px;
}
nav.main details.nav-dd > summary:hover,
nav.main details.nav-dd[open] > summary { color: var(--text); background: var(--bg-card); }

.nav-dd-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.nav-askme { display: inline-flex; padding: 4px; border-radius: 8px; }
.nav-askme img { height: 26px; width: auto; display: block; }
.nav-askme:hover { background: rgba(255, 255, 255, 0.06); }

@media (max-width: 760px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 40px; padding: 9px 10px;
    border-radius: 10px; cursor: pointer;
  }
  .nav-burger span {
    display: block; height: 2px; width: 100%;
    background: var(--text); border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  /* Collapse the nav; the burger reveals it as a stacked panel below. */
  header.site nav.main {
    display: none; flex-basis: 100%; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 6px 0 4px;
  }
  .nav-toggle:checked ~ nav.main { display: flex; }
  /* Burger morphs into an X when open. */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav.main a, nav.main details.nav-dd > summary { padding: 12px 14px; }
  nav.main details.nav-dd > summary { justify-content: space-between; }
  /* Inside the stacked menu the dropdown flows inline, not floating. */
  .nav-dd-menu {
    position: static; box-shadow: none; border: none;
    background: transparent; padding: 4px 14px 8px;
  }
}
