/* ============================================================
   Tibeb Docs – Shared Brand Styles
   Dark theme built from the Tibeb Flutter palette
   ============================================================ */
:root {
  --tibeb-ink: #0A0B0E;
  --tibeb-charcoal: #111826;
  --tibeb-slate: #1E293B;
  --tibeb-wisdom: #D4A843;
  --tibeb-wisdom-light: #F5DFA0;
  --tibeb-wisdom-dark: #9C7B2F;
  --tibeb-blue: #4C7DFF;
  --tibeb-paper: #E8E6E3;
  --tibeb-ash: #94A3B8;
  --tibeb-steel: #475569;
  --tibeb-error: #FF5A5F;

  --border-golden: rgba(212, 168, 67, 0.25);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  background-color: var(--tibeb-ink);
  color: var(--tibeb-paper);
  min-height: 100vh;
  padding: 2rem 1.5rem;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

.text-wisdom {
  color: var(--tibeb-wisdom);
}

/* Brand header */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-golden);
}

.brand-logo-sm {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

.brand-link {
  display: inline-block;
  border-bottom: none !important;
}

.brand-link:hover {
  border-bottom-color: transparent !important;
}

.brand-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--tibeb-wisdom);
  letter-spacing: -0.3px;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tibeb-wisdom);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tibeb-wisdom-light);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--tibeb-wisdom);
  padding-left: 0.85rem;
}

h3 {
  font-size: 1.15rem;
  color: var(--tibeb-wisdom);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--tibeb-paper);
}

.muted {
  color: var(--tibeb-ash);
  font-size: 0.95rem;
}

ul,
ol {
  margin: 0.5rem 0 1.2rem 1.5rem;
  color: var(--tibeb-paper);
}

li {
  margin-bottom: 0.4rem;
}

hr {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin: 2.2rem 0;
}

a {
  color: var(--tibeb-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: var(--tibeb-blue);
}

code {
  background: var(--tibeb-slate);
  color: var(--tibeb-paper);
  padding: 0.2em 0.45em;
  border-radius: 5px;
  font-size: 0.92em;
}

strong {
  color: var(--tibeb-wisdom-light);
}

.contact-email {
  color: var(--tibeb-blue);
  font-weight: 500;
}

/* Buttons & links */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--tibeb-wisdom);
  color: var(--tibeb-ink);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  transition: background 0.2s;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn:hover {
  background: var(--tibeb-wisdom-light);
  border-bottom-color: transparent;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--tibeb-wisdom);
  color: var(--tibeb-wisdom);
}

.btn-outline:hover {
  background: rgba(212, 168, 67, 0.1);
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1.5rem;
}

/* Hero specific */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: radial-gradient(circle at center, rgba(212, 168, 67, 0.08) 0%, transparent 60%);
  border-radius: 24px;
  margin-bottom: 2rem;
}

.brand-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.brand-logo-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.25);
  transition: transform 0.3s;
}

.brand-logo-lg:hover {
  transform: scale(1.05) rotate(5deg);
}

/* Screenshots Showcase */
.screenshots-showcase {
  margin-top: 3.5rem;
}

.screenshots-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--tibeb-wisdom) rgba(30, 41, 59, 0.25);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.screenshots-grid::-webkit-scrollbar {
  height: 6px;
}

.screenshots-grid::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.25);
  border-radius: 3px;
}

.screenshots-grid::-webkit-scrollbar-thumb {
  background: var(--tibeb-wisdom);
  border-radius: 3px;
}

.screenshot-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
  text-align: center;
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 16px;
  padding: 0.75rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.screenshot-item img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.screenshot-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tibeb-wisdom-light);
  display: block;
}

.brand-title {
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--tibeb-wisdom-light), var(--tibeb-wisdom));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 1.2rem;
  color: var(--tibeb-ash);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--tibeb-paper);
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.features ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .features ul {
    grid-template-columns: 1fr;
  }
}

.features li {
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 0;
  padding-left: 1.75rem;
  border-left: 1px solid rgba(212, 168, 67, 0.1);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.features li:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.features strong {
  display: block;
  font-size: 1.25rem;
  color: var(--tibeb-wisdom-light);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.divider {
  color: var(--tibeb-steel);
}

.footer-copy {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--tibeb-ash);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.7rem;
  }
}