/* =========================================================
   PiDynasty LLC — design tokens
   Ink Navy   #142438  primary dark
   Shell      #F7F2E9  paper / light bg
   Brass      #C99A3D  accent (orbit / apps)
   Teal       #2E6E6A  accent (orbit / web)
   Rose       #C1666B  accent (orbit / social) — used sparingly
   Charcoal   #20242B  body text on light
   ========================================================= */

:root {
  --navy: #142438;
  --navy-deep: #0E1A29;
  --shell: #F7F2E9;
  --brass: #C99A3D;
  --teal: #2E6E6A;
  --rose: #C1666B;
  --charcoal: #20242B;
  --shell-line: #E4DCC8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--shell);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}

p { line-height: 1.6; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 242, 233, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shell-line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.brand-pi {
  font-size: 1.5rem;
  color: var(--teal);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  color: var(--charcoal);
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.site-nav a:hover { opacity: 1; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--shell);
}
.btn-primary:hover { transform: translateY(-1px); background: #275C59; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover { transform: translateY(-1px); background: rgba(20,36,56,0.06); }

.btn-large { padding: 16px 32px; font-size: 1.05rem; }

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

.hero {
  background: var(--navy);
  background-image: radial-gradient(circle at 82% 18%, rgba(201,154,61,0.16), transparent 55%);
  color: var(--shell);
  padding: 90px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  color: var(--shell);
}

.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(247,242,233,0.82);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero .btn-ghost { color: var(--shell); border-color: rgba(247,242,233,0.5); }
.hero .btn-ghost:hover { background: rgba(247,242,233,0.08); }

/* ---------------- orbit diagram ---------------- */

.hero-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-system {
  position: relative;
  width: min(380px, 78vw);
  height: min(380px, 78vw);
}

.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(247,242,233,0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 { width: 62%; height: 62%; }
.ring-2 { width: 100%; height: 100%; }

.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--teal), var(--navy-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(46,110,106,0.14);
  z-index: 2;
}

.orbit-core-symbol {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--shell);
}
.orbit-core-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: rgba(247,242,233,0.75);
  margin-top: 2px;
}

.orbit-spin {
  position: absolute;
  top: 50%; left: 50%;
  width: 62%;
  height: 62%;
  margin-top: -31%;
  margin-left: -31%;
  animation: spin linear infinite;
  animation-duration: 26s;
}
.spin-1 { animation-duration: 22s; }
.spin-2 { width: 100%; height: 100%; margin-top: -50%; margin-left: -50%; animation-duration: 34s; animation-direction: reverse; }
.spin-3 { width: 100%; height: 100%; margin-top: -50%; margin-left: -50%; animation-duration: 40s; }
.spin-4 { animation-duration: 30s; animation-direction: reverse; }
.spin-5 { width: 100%; height: 100%; margin-top: -50%; margin-left: -50%; animation-duration: 46s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-node {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-web    { background: var(--teal); }
.node-apps   { background: var(--brass); }
.node-social { background: var(--rose); }
.node-bakery { background: var(--brass); }
.node-books  { background: var(--teal); }

.spin-3 .orbit-node, .spin-5 .orbit-node { top: auto; bottom: -11px; }

.node-counter {
  position: absolute;
  white-space: nowrap;
  top: 26px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(247,242,233,0.6);
  animation: counter-spin linear infinite;
  animation-duration: inherit;
  animation-direction: inherit;
}
.spin-2 .node-counter, .spin-3 .node-counter, .spin-5 .node-counter { animation-direction: reverse; }

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-spin, .node-counter { animation: none; }
}

/* ---------------- shared section chrome ---------------- */

section { padding: 84px 0; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin: 0 0 14px;
}

.lines h2, .web h2, .status h2, .contact h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
}

.section-lede {
  max-width: 62ch;
  margin-top: 16px;
  color: #454B54;
  font-size: 1.05rem;
}

/* ---------------- lines of work ---------------- */

.line-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.line-card {
  background: #FFFFFF;
  border: 1px solid var(--shell-line);
  border-top: 3px solid var(--accent, var(--teal));
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}

.line-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent, var(--teal));
  margin: 0 0 10px;
}

.line-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.line-card p:last-child {
  color: #4A505A;
  font-size: 0.95rem;
}

/* ---------------- web tiers ---------------- */

.web { background: #FFFFFF; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.tier-card {
  border: 1px solid var(--shell-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}

.tier-card--featured {
  border-color: var(--teal);
  box-shadow: 0 12px 28px -18px rgba(46,110,106,0.45);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--teal);
  color: var(--shell);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}

.tier-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
}

.tier-price {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--navy);
}
.tier-price span { font-weight: 600; }

.tier-price-sub {
  font-size: 0.85rem;
  color: #6B7076;
  margin-top: 2px;
}

.tier-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-card li {
  font-size: 0.92rem;
  color: #454B54;
  padding-left: 20px;
  position: relative;
}
.tier-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------------- status ---------------- */

.status {
  background: var(--shell);
  border-top: 1px solid var(--shell-line);
  border-bottom: 1px solid var(--shell-line);
}

.status-inner { max-width: 760px; }

.status p:not(.section-eyebrow) { color: #454B54; font-size: 1.05rem; margin-top: 16px; }

/* ---------------- contact ---------------- */

.contact-inner { text-align: left; }

.contact .btn { margin-top: 26px; }

.contact-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #8A8F94;
}

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

.site-footer {
  background: var(--navy-deep);
  color: rgba(247,242,233,0.72);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-fine { color: rgba(247,242,233,0.45); }

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

@media (max-width: 860px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-orbit { order: -1; margin-bottom: 8px; }
  .line-grid, .tier-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
