/* ════════════════════════════════════════════════════════════════
   Tahionic Soft v2 — Shared Stylesheet
   Derived from BioniX style.css. Same skeleton; only the colour
   tokens shift (teal → slate primary, amber CTA).
   ════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Primary slate/blue — matches BioniX */
  --primary-900: #0f2848;
  --primary-800: #1a365d;     /* BioniX --blue-900 */
  --primary-700: #2b6cb0;     /* BioniX --blue-700 */
  --primary-600: #3182ce;     /* BioniX --blue-600 */
  --primary-100: #ebf8ff;
  --primary-50:  #eff6ff;

  /* Amber accent (CTA) */
  --accent-700:  #b7530b;
  --accent-600:  #c05621;
  --accent-500:  #dd6b20;     /* primary CTA colour */
  --accent-400:  #ed8936;
  --accent-100:  #feebc8;

  /* Neutrals — same as BioniX */
  --gray-900: #1a202c;
  --gray-800: #2d3748;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-400: #a0aec0;
  --gray-300: #cbd5e0;
  --gray-200: #e2e8f0;
  --gray-100: #edf2f7;
  --gray-50:  #f7fafc;

  /* Status */
  --green-500: #38a169;
  --gold-500:  #d69e2e;

  /* Functional */
  --bg-body:     var(--gray-50);
  --bg-section:  #ffffff;
  --bg-alt:      var(--gray-100);
  --bg-dark:     var(--gray-900);
  --text-body:   var(--gray-800);
  --text-muted:  var(--gray-500);
  --link-color:  var(--primary-700);
  --hero-grad:   linear-gradient(135deg, var(--primary-800) 0%, var(--primary-700) 100%);

  /* Layout */
  --max-width:   1100px;
  --header-h:    64px;

  /* Type */
  --font-stack: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-stack);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}
.site-nav a:focus-visible,
.btn:focus-visible {
  outline-color: white;
}


/* ── Container ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }


/* ════════════════════════════════════════════════════════════════
   STICKY HEADER / NAV
   ════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
  background: rgba(26, 54, 93, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header.scrolled {
  background: rgba(26, 54, 93, 0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.site-logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent-500);
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(26, 54, 93, 0.97);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; text-align: center; padding: 12px 16px; }
}


/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--hero-grad);
  color: white;
  text-align: center;
  padding: 140px 24px 80px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.hero .subtitle {
  font-size: 1.3rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
}


/* ════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-decoration: none;
}
.btn-cta {
  background: var(--accent-500);
  color: white;
}
.btn-cta:hover { background: var(--accent-600); }
.btn-primary {
  background: #ffffff;
  color: var(--primary-800);
}
.btn-primary:hover { background: var(--primary-50); }
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}
.btn-secondary {
  background: transparent;
  color: var(--primary-700);
  border: 2px solid var(--primary-700);
}
.btn-secondary:hover {
  background: var(--primary-700);
  color: white;
  text-decoration: none;
}


/* Hero "group pill" buttons */
.group-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.group-pill:hover {
  background: rgba(255,255,255,0.22);
  text-decoration: none;
  color: white;
  transform: translateY(-1px);
}


/* ════════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════════ */
.section { padding: 72px 24px; }
.section-white  { background: var(--bg-section); }
.section-alt    { background: var(--bg-alt); }
.section-dark   { background: var(--bg-dark); color: white; }
.section-primary { background: var(--hero-grad); color: white; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 12px;
}
.section-dark .section-header h2,
.section-primary .section-header h2 { color: white; }
.section-header p {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto;
}


/* ════════════════════════════════════════════════════════════════
   GROUP GRID (5 categories on the homepage)
   ════════════════════════════════════════════════════════════════ */
.group-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 900px) { .group-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .group-grid { grid-template-columns: repeat(2, 1fr); } }

.group-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.group-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 54, 93, 0.12);
  border-color: var(--primary-800);
  text-decoration: none;
}
.group-card .gc-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}
.group-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 4px;
}
.group-card .gc-count {
  font-size: 0.85rem;
  color: var(--gray-500);
}


/* ════════════════════════════════════════════════════════════════
   PROMOTED TOOLS (4 cards) + AUTHOR SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.tools-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .tools-layout { grid-template-columns: 1fr; }
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  text-decoration: none;
}
.tool-card .tc-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--primary-50);
  color: var(--primary-800);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.tool-card.featured .tc-icon {
  background: var(--accent-100);
  color: var(--accent-700);
}
.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 4px;
}
.tool-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.45;
}
.tool-card .tc-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 8px;
}


/* Sidebar — From the same author */
.author-sidebar {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  align-self: start;
}
.author-sidebar h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.author-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.author-list li { margin-bottom: 14px; }
.author-list li:last-child { margin-bottom: 0; }
.author-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s, background 0.2s;
}
.author-list a:hover {
  border-color: var(--accent-500);
  background: #fff8f1;
  text-decoration: none;
}
.author-list .al-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-700);
  display: block;
}
.author-list .al-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: block;
  margin-top: 2px;
}


/* ════════════════════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════════════════════ */
.cta-section {
  text-align: center;
  padding: 80px 24px;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,0.85);
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-dark);
  color: var(--gray-400);
  padding: 56px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent-400);
  text-decoration: none;
}
.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--gray-800);
  font-size: 0.85rem;
}
.footer-bottom strong { color: white; }
.footer-bottom a { color: var(--accent-400); }


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero .subtitle { font-size: 1.1rem; }
  .section { padding: 56px 16px; }
  .section-header h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1rem; }
  .btn { padding: 12px 22px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
