:root{
  --bg:#09090B;
  --panel:#0F1113;
  --ink:#F5F5F5;
  --ink-soft:#9a9a9a;
  --accent:#29D5C1;
  --rule:rgba(255,255,255,0.14);
}
*{box-sizing:border-box;}
body{ margin:0; background:var(--bg); color:var(--ink); font-family:'Inter',sans-serif; }
a{ color:inherit; }

/* ---------- Header / Nav ---------- */
header.bar{
  display:flex; justify-content:space-between; align-items:center;
  padding:0 40px; height:64px; border-bottom:1px solid var(--rule); background:var(--panel);
  position:sticky; top:0; z-index:50;
}
.left-group{ display:flex; align-items:center; gap:36px; }
.wordmark{ font-family:'Source Serif 4',serif; font-size:17px; font-weight:600; letter-spacing:0.5px; }
nav{ display:flex; gap:34px; height:100%; }
nav a{ color:var(--ink-soft); text-decoration:none; font-size:13px; display:flex; align-items:center; height:100%; border-bottom:2px solid transparent; }
nav a.active{ color:var(--ink); border-bottom-color:var(--accent); }
.cta{ font-size:12px; border:1px solid var(--rule); padding:8px 18px; color:var(--ink); text-decoration:none; white-space:nowrap; }
.cta:hover{ border-color:var(--accent); color:var(--accent); }

.has-dropdown{ position:relative; display:flex; align-items:center; height:100%; }
.dropdown{
  position:absolute; top:100%; left:0; min-width:200px;
  background:var(--panel); border:1px solid var(--rule); border-top:none;
  padding:8px 0; opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown{
  opacity:1; visibility:visible; transform:translateY(0);
}
.dropdown a{
  display:block; height:auto; padding:10px 18px; font-size:12.5px;
  color:var(--ink-soft); border-bottom:none;
}
.dropdown a:hover{ color:var(--ink); background:rgba(255,255,255,0.04); }
@media (prefers-reduced-motion: reduce){
  .dropdown{ transition:none; }
}

/* ---------- Hero ---------- */
.hero{ max-width:820px; margin:0 auto; padding:90px 24px 50px; text-align:center; }
.eyebrow{ font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--accent); margin:0 0 20px; }
h1{ font-family:'Source Serif 4',serif; font-size:42px; font-weight:600; line-height:1.25; margin:0 auto 22px; max-width:640px; }
.sub{ font-size:15px; color:var(--ink-soft); line-height:1.75; max-width:480px; margin:0 auto; }

/* ---------- Reusable "row list" section (proof points, tiers, steps) ---------- */
.proof{ max-width:640px; margin:70px auto 0; padding:0 24px 70px; }
.section-label{ font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--ink-soft); margin:0 0 24px; text-align:center; }
.proof-row{ display:flex; align-items:baseline; gap:16px; padding:18px 0; border-top:1px solid var(--rule); }
.proof-row:last-child{ border-bottom:1px solid var(--rule); }
a.proof-row{ text-decoration:none; color:inherit; transition:padding-left 0.15s ease; }
a.proof-row:hover{ padding-left:6px; }
a.proof-row:hover .proof-text{ color:var(--accent); }
.proof-tag{ font-size:11px; letter-spacing:0.5px; text-transform:uppercase; color:var(--accent); width:100px; flex-shrink:0; }
.proof-text{ font-size:14.5px; color:var(--ink); }

/* ---------- Section heading (secondary pages) ---------- */
.section-head{ max-width:640px; margin:70px auto 0; padding:0 24px; text-align:center; }
.section-head h2{ font-family:'Source Serif 4',serif; font-size:26px; font-weight:600; margin:0 0 14px; }
.section-head p{ font-size:14.5px; color:var(--ink-soft); line-height:1.7; max-width:480px; margin:0 auto; }

/* ---------- Pricing tiers ---------- */
.tiers{ max-width:640px; margin:36px auto 0; padding:0 24px 70px; display:flex; flex-direction:column; gap:1px; }
.tier{ border:1px solid var(--rule); padding:26px 28px; background:var(--panel); }
.tier + .tier{ border-top:none; }
.tier-top{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; }
.tier-name{ font-family:'Source Serif 4',serif; font-size:18px; font-weight:600; }
.tier-price{ font-size:15px; color:var(--accent); white-space:nowrap; }
.tier-desc{ font-size:13.5px; color:var(--ink-soft); line-height:1.65; margin:10px 0 0; }

/* ---------- CTA band ---------- */
.cta-band{ max-width:640px; margin:0 auto; padding:0 24px 90px; text-align:center; }
.cta-band-inner{ border:1px solid var(--rule); padding:44px 32px; }
.cta-band h2{ font-family:'Source Serif 4',serif; font-size:22px; font-weight:600; margin:0 0 12px; }
.cta-band p{ font-size:14px; color:var(--ink-soft); margin:0 0 26px; }
.cta-buttons{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn{ font-size:13px; text-decoration:none; padding:12px 24px; border:1px solid var(--rule); color:var(--ink); }
.btn-primary{ background:var(--accent); color:#09090B; border-color:var(--accent); font-weight:600; }
.btn:hover{ border-color:var(--accent); }
.btn-primary:hover{ opacity:0.9; }

/* ---------- Footer ---------- */
footer{ max-width:640px; margin:0 auto; padding:30px 24px 80px; font-size:11px; color:var(--ink-soft); line-height:1.6; border-top:1px solid var(--rule); }
.social-row{ display:flex; justify-content:center; gap:16px; margin-bottom:18px; }
.social-icon{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; color:var(--ink-soft); transition:color 0.15s ease; }
.social-icon svg{ width:16px; height:16px; }
a.social-icon:hover{ color:var(--accent); }
.social-icon.disabled{ color:rgba(255,255,255,0.18); cursor:default; }

.legal-wrap{ max-width:640px; margin:0 auto; padding:70px 24px 90px; }
.legal-wrap h2{ font-family:'Source Serif 4',serif; font-size:19px; font-weight:600; margin:40px 0 14px; }
.legal-wrap h2:first-of-type{ margin-top:0; }
.legal-wrap p{ font-size:13.5px; color:var(--ink-soft); line-height:1.85; margin:0 0 16px; }
.legal-wrap a{ color:var(--accent); }
.legal-updated{ font-size:12px; color:var(--ink-soft); font-style:italic; margin-bottom:40px; }

/* ---------- Library ---------- */
.filter-bar{ max-width:900px; margin:0 auto; padding:0 24px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.filter-tab{ font-size:12px; letter-spacing:0.3px; color:var(--ink-soft); background:none; border:1px solid var(--rule); padding:8px 16px; cursor:pointer; font-family:'Inter',sans-serif; }
.filter-tab:hover{ color:var(--ink); border-color:var(--ink-soft); }
.filter-tab.active{ color:var(--bg); background:var(--accent); border-color:var(--accent); }

.library-grid{
  max-width:900px; margin:40px auto 0; padding:0 24px 90px;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:1px;
  background:var(--rule);
}
.library-card{
  background:var(--bg); padding:26px 24px; text-decoration:none; color:var(--ink);
  display:flex; flex-direction:column; gap:12px;
  transition:background 0.15s ease, transform 0.15s ease;
}
.library-card:hover{ background:var(--panel); transform:translateY(-3px); }
.library-cat{ font-size:10.5px; letter-spacing:1.5px; text-transform:uppercase; color:var(--accent); }
.library-title{ font-family:'Source Serif 4',serif; font-size:17px; font-weight:600; line-height:1.35; }
.library-excerpt{ font-size:13px; color:var(--ink-soft); line-height:1.6; flex-grow:1; }
.library-author{ font-size:12px; color:var(--ink-soft); font-style:italic; }
.library-meta{ font-size:11.5px; color:var(--ink-soft); border-top:1px solid var(--rule); padding-top:12px; display:flex; justify-content:space-between; }
.library-card.is-hidden{ display:none; }

.library-more{ max-width:900px; margin:0 auto; padding:0 24px 90px; text-align:center; }
.library-more-inner{ border:1px solid var(--rule); padding:28px; }
.library-more-inner p{ font-size:13.5px; color:var(--ink-soft); margin:0; }
.library-more-inner a{ color:var(--accent); text-decoration:none; }
.library-more-inner a:hover{ text-decoration:underline; }

@media (max-width:720px){
  .library-grid{ grid-template-columns:1fr; }
}

/* ---------- Entrance animation ---------- */
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}
.hero{ animation:fadeUp 0.55s ease-out both; }
.library-card{ animation:fadeUp 0.5s ease-out both; }
.library-card:nth-child(2){ animation-delay:0.06s; }
.library-card:nth-child(3){ animation-delay:0.12s; }
.library-card:nth-child(4){ animation-delay:0.18s; }
.library-card:nth-child(5){ animation-delay:0.24s; }
.library-card:nth-child(6){ animation-delay:0.3s; }
@media (prefers-reduced-motion: reduce){
  .hero, .library-card{ animation:none; }
}

/* ---------- Author drawer ---------- */

/* ---------- Media ---------- */
.media-embed{ max-width:640px; margin:0 auto; padding:0 24px; }
.media-embed-placeholder{
  border:1px dashed var(--rule); padding:60px 30px; text-align:center;
  font-size:13.5px; color:var(--ink-soft); line-height:1.7;
}
.media-embed iframe{ width:100%; aspect-ratio:16/9; border:none; display:block; }

/* ---------- Products ---------- */
.product-grid{ max-width:900px; margin:40px auto 90px; padding:0 24px; display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--rule); }
.product-card{ background:var(--bg); padding:0 0 24px; display:flex; flex-direction:column; gap:12px; text-decoration:none; color:inherit; transition:transform 0.2s ease, box-shadow 0.2s ease; position:relative; z-index:1; }
.product-card:hover{ transform:translateY(-4px); box-shadow:0 0 0 1px var(--accent), 0 12px 32px rgba(41,213,193,0.25); z-index:2; }
.product-visual{ width:100%; aspect-ratio:4/3; display:block; background:var(--panel); }
.product-card-body{ padding:16px 24px 0; display:flex; flex-direction:column; gap:10px; flex-grow:1; }
.product-status{ font-size:10.5px; letter-spacing:1.5px; text-transform:uppercase; color:var(--accent); }
.product-status.soon{ color:var(--ink-soft); }
.product-name{ font-family:'Source Serif 4',serif; font-size:18px; font-weight:600; }
.product-desc{ font-size:13px; color:var(--ink-soft); line-height:1.6; flex-grow:1; }
.product-price{ font-size:14px; color:var(--ink); font-weight:600; }
.product-cta{ font-size:12.5px; text-decoration:none; padding:10px 16px; text-align:center; border:1px solid var(--rule); color:var(--ink-soft); margin:0 24px; }
.product-cta.active{ background:var(--accent); color:#09090B; border-color:var(--accent); font-weight:600; }
@media (max-width:720px){ .product-grid{ grid-template-columns:1fr; } }

/* ---------- Team ---------- */
.team-grid{ max-width:760px; margin:40px auto 90px; padding:0 24px; display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--rule); }
.team-card{
  background:var(--bg); position:relative; overflow:hidden; height:280px; cursor:pointer;
}
.team-face{
  position:absolute; inset:0; padding:30px 28px; display:flex; flex-direction:column; gap:14px;
  transition:transform 0.35s cubic-bezier(.4,0,.2,1);
}
.team-front{ transform:translateY(0); }
.team-back{
  transform:translateY(100%); background:var(--panel); justify-content:flex-start; overflow-y:auto;
}
.team-card:hover .team-front, .team-card.active .team-front{ transform:translateY(-100%); }
.team-card:hover .team-back, .team-card.active .team-back{ transform:translateY(0); }
.team-avatar{
  width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:'Source Serif 4',serif; font-size:18px; font-weight:600; color:#09090B;
  background:linear-gradient(135deg, #29D5C1, #0F3D37); flex-shrink:0;
}
.team-name{ font-family:'Source Serif 4',serif; font-size:17px; font-weight:600; }
.team-role{ font-size:10.5px; letter-spacing:0.8px; text-transform:uppercase; color:var(--accent); margin-top:2px; }
.team-back .team-name{ font-size:16px; margin-bottom:2px; }
.team-back .team-role{ margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--rule); }
.team-desc{ font-size:13px; color:var(--ink); line-height:1.75; }
.team-desc + .team-desc{ margin-top:10px; }
.team-email{ font-size:12px; color:var(--accent); margin-top:14px; text-decoration:none; word-break:break-all; }
@media (max-width:640px){ .team-grid{ grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce){ .team-face{ transition:none; } }

/* ---------- About ---------- */
.narrative{ max-width:560px; margin:0 auto; padding:70px 24px 0; text-align:center; }
.narrative .section-label{ text-align:center; }
.narrative p{ font-size:15px; color:var(--ink); line-height:1.85; margin:0 0 20px; }
.narrative p:last-child{ margin-bottom:0; }
.pull-quote{ max-width:640px; margin:80px auto; padding:0 24px; text-align:center; }
.pull-quote p{
  font-family:'Source Serif 4',serif; font-size:26px; font-weight:600; line-height:1.4;
  color:var(--ink); margin:0;
}
.pull-quote p .accent{ color:var(--accent); }
.pull-rule{ width:40px; height:2px; background:var(--accent); margin:0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid{ max-width:900px; margin:50px auto 60px; padding:0 24px; display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--rule); }
.contact-card{ background:var(--bg); padding:30px 28px; display:flex; flex-direction:column; gap:10px; }
.contact-label{ font-size:10.5px; letter-spacing:1.5px; text-transform:uppercase; color:var(--accent); }
.contact-title{ font-family:'Source Serif 4',serif; font-size:18px; font-weight:600; }
.contact-desc{ font-size:13px; color:var(--ink-soft); line-height:1.65; flex-grow:1; }
.contact-link{ font-size:13px; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--rule); padding-bottom:2px; align-self:flex-start; }
.contact-link:hover{ color:var(--accent); border-color:var(--accent); }
@media (max-width:720px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-form-wrap{ max-width:520px; margin:0 auto 90px; padding:0 24px; }
.contact-form{ display:flex; flex-direction:column; gap:16px; }
.contact-form label{ font-size:11px; letter-spacing:0.5px; text-transform:uppercase; color:var(--ink-soft); display:block; margin-bottom:6px; }
.contact-form input, .contact-form textarea{
  width:100%; background:var(--panel); border:1px solid var(--rule); color:var(--ink);
  font-family:'Inter',sans-serif; font-size:13.5px; padding:12px 14px; box-sizing:border-box;
}
.contact-form input:focus, .contact-form textarea:focus{ outline:none; border-color:var(--accent); }
.contact-form textarea{ min-height:120px; resize:vertical; }
.contact-form button{
  font-size:13px; font-weight:600; background:var(--accent); color:#09090B; border:none;
  padding:13px 24px; cursor:pointer; align-self:flex-start;
}
.contact-form button:hover{ opacity:0.9; }
.contact-form-note{ font-size:11.5px; color:var(--ink-soft); margin-top:4px; }
