/* ============================================================================
   gurgui.com design system: white background, light-blue pastel accents
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f7faff;          /* very light blue-tinted card surface */
  --pastel: #e9f1fc;           /* light blue pastel */
  --pastel-strong: #d9e8fb;    /* deeper pastel for chips / hover */
  --blue: #3d7edb;             /* primary accent */
  --blue-dark: #2c5fb5;
  --ink: #101b2e;              /* headings */
  --muted: #57647c;            /* body copy */
  --line: #e4ebf5;             /* borders */
  --shadow-sm: 0 1px 2px rgba(16, 27, 46, 0.04), 0 4px 14px rgba(16, 27, 46, 0.05);
  --shadow-md: 0 2px 6px rgba(16, 27, 46, 0.05), 0 12px 32px rgba(16, 27, 46, 0.08);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  padding-top: var(--nav-h);   /* fixed nav */
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 5%; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.13rem; margin-bottom: 10px; }
h1 em, h2 em {
  font-style: normal;
  color: var(--blue);
}

p { color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
strong { color: var(--ink); }

.small { font-size: 0.86rem; }
.muted { color: var(--muted); }

/* ---------- Eyebrow pill ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--pastel);
  color: var(--blue-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.38rem 0.95rem;
  border-radius: 100px;
  margin-bottom: 1.3rem;
}

/* ---------- Nav (fixed, glassy, pill CTA) ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.brand .slash { color: var(--blue); }

.nav-links { display: flex; gap: 1.8rem; flex-wrap: wrap; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-dark); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.8rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--blue); }

.nav-cta {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 10px;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--blue-dark);
  border: 1.5px solid var(--pastel-strong);
}
.btn-ghost:hover { border-color: var(--blue); background: var(--pastel); }

.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 55% at 78% 30%, rgba(61, 126, 219, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 12% 75%, rgba(61, 126, 219, 0.07) 0%, transparent 65%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 { margin-bottom: 1.4rem; }

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2.2rem;
}
.hero-sub strong { color: var(--ink); }

/* Right column: portrait + architect's telemetry card */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.portrait {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--pastel-strong);
  box-shadow: var(--shadow-md);
  background: var(--pastel);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
}
.about-portrait {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--pastel-strong);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
  max-width: 260px;
}
.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
}

.telemetry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.telemetry-head, .tech-line, .article-date, .step-num, .year,
.tag, .badge, .proof-value, .status-line { font-family: var(--mono); }

.telemetry-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--pastel);
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.telemetry-head .dot { color: var(--blue); }
.telemetry-body { padding: 1.3rem 1.4rem; }
.telemetry-body h4 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin: 0 0 0.6rem;
}
.telemetry-body ul { list-style: none; margin: 0 0 1.1rem; }
.telemetry-body ul:last-child { margin-bottom: 0; }
.telemetry-body li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.34rem 0;
  border-bottom: 1px dashed var(--line);
}
.telemetry-body li:last-child { border-bottom: none; }
.telemetry-body li::before { content: "• "; color: var(--blue); font-weight: 800; }

/* ---------- Stat band ---------- */

.stat-band { padding: 30px 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  background: linear-gradient(120deg, var(--pastel) 0%, #f2f7fe 55%, var(--pastel) 100%);
  border: 1px solid var(--pastel-strong);
  border-radius: 20px;
  padding: 2rem 1.8rem;
}
.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
}
.stat-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); margin: 0.2rem 0; }
.stat-context { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section-tight { padding: 48px 0; border-top: 1px solid var(--line); }
.alt { background: var(--surface); }
.no-top-border { border-top: none; }
.section-head { max-width: 680px; margin-bottom: 44px; }

/* Decorative section divider: gradient hairline + diamond motif */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--pastel-strong));
}
.divider::after {
  background: linear-gradient(90deg, var(--pastel-strong), transparent);
}
.divider .side-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pastel-strong);
  flex: none;
}
.divider .diamond {
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 2px;
  transform: rotate(45deg);
  opacity: 0.85;
  flex: none;
}

/* Manifesto (thesis) */
.manifesto {
  font-size: 1.08rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  max-width: 820px;
}
.manifesto p { margin-bottom: 14px; }
.manifesto p:last-child { margin-bottom: 0; }
.manifesto strong { color: var(--blue-dark); }

/* Icon-tile cards */

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--pastel-strong);
}
.card.featured { grid-column: 1 / -1; }
.card p { font-size: 0.94rem; flex: 1; }
.card ul { color: var(--muted); font-size: 0.93rem; padding-left: 1.1rem; }
.card li { margin: 0.35rem 0; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  background: var(--pastel);
  border: 1px solid var(--pastel-strong);
  border-radius: 12px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--pastel);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.9rem;
  align-self: flex-start;
}

.card .tech-line { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.card .cta-line { margin-top: 1rem; }
.card .cta-line a { color: var(--blue-dark); font-weight: 700; font-size: 0.92rem; }
.card .cta-line a:hover { text-decoration: underline; }

details.archive-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.5rem;
  margin-top: 1.4rem;
}
details.archive-row summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); font-size: 0.92rem; }
details.archive-row ul { color: var(--muted); font-size: 0.93rem; padding: 0.8rem 0 0 1.1rem; }

/* Compare (thesis two-column) */
.compare-card { border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; background: var(--surface); }
.compare-card.bad { border-top: 4px solid #e8b4ae; }
.compare-card.good { border-top: 4px solid var(--blue); }
.compare-card h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.9rem; }
.compare-card ul { color: var(--muted); font-size: 0.93rem; padding-left: 1.1rem; }
.compare-card li { margin: 0.4rem 0; }

/* Numbered steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; }
.step-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pastel-strong);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.step h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Offers ---------- */

.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: stretch; }
.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.offer ul { color: var(--muted); font-size: 0.94rem; padding-left: 1.1rem; margin-bottom: 1rem; }
.offer li { margin: 0.45rem 0; }
.offer .price-note { font-size: 0.85rem; font-weight: 700; color: var(--blue-dark); margin-top: auto; }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--pastel);
  border: 1px solid var(--pastel-strong);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.9rem;
  align-self: flex-start;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--pastel) 0%, #eef5fe 50%, var(--pastel-strong) 100%);
  border: 1px solid var(--pastel-strong);
  border-radius: 24px;
  padding: 3.4rem 2rem;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Writing ---------- */

.article-list { list-style: none; }
.article-list li {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.article-list li:first-child { border-top: 1px solid var(--line); }
.article-date { font-size: 0.8rem; font-weight: 700; color: var(--blue-dark); white-space: nowrap; min-width: 84px; }
.article-list a { font-weight: 700; color: var(--ink); }
.article-list a:hover { color: var(--blue-dark); }
.article-ext { font-size: 0.78rem; color: var(--muted); white-space: nowrap; margin-left: auto; }

.newsletter-box {
  background: var(--pastel);
  border: 1px solid var(--pastel-strong);
  border-radius: 18px;
  padding: 2rem;
  margin-top: 3rem;
}

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }

.cred-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.cred-table th, .cred-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
.cred-table th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--pastel);
}
.cred-table td { color: var(--muted); }
.cred-table td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }

.timeline { list-style: none; margin-top: 1.6rem; }
.timeline li {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}
.timeline li strong { color: var(--ink); }
.timeline .year { font-weight: 800; color: var(--blue-dark); min-width: 78px; white-space: nowrap; }

/* ---------- Page head (subpages) ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: 72px 0 12px;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 80% 10%, rgba(61, 126, 219, 0.09) 0%, transparent 70%);
}
.page-head .wrap { position: relative; }
.page-head p { color: var(--muted); max-width: 620px; font-size: 1.05rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 3rem 0;
  margin-top: 60px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner strong { color: var(--ink); }
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--blue-dark); }
.status-line { font-size: 0.8rem; margin-top: 1.6rem; color: var(--muted); }
.status-line .pulse { color: var(--blue); }

/* ---------- 404 ---------- */

.error-404 { padding: 110px 0; text-align: center; }
.error-404 .code {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--pastel-strong);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.error-404 .btn-row { justify-content: center; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-grid, .about-grid, .offers-grid, .card-grid, .card-grid.three { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0 5% 10px;
    box-shadow: var(--shadow-md);
  }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 13px 0; font-size: 1rem; }
  .site-nav.open .nav-links { display: flex; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  .steps-grid, .stat-grid { grid-template-columns: 1fr; }
  .article-list li { flex-wrap: wrap; gap: 0.2rem 1rem; }
  .article-ext { margin-left: 0; width: 100%; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 60px 0; }
}
