/* WebSummoner marketing site — modern design system, RIADVICE brand.
   Works on top of Bootstrap 5.3 grid utilities. */

:root {
  --ws-brand: #1b355e;
  --ws-brand-dark: #122744;
  --ws-brand-light: #93b3e6;
  --ws-accent: #d9a45b;
  --ws-accent-hover: #c48f47;
  --ws-bg: #fafbfc;
  --ws-surface: #ffffff;
  --ws-border: #e2e8f0;
  --ws-text: #1a202c;
  --ws-text-muted: #64748b;
  --ws-radius: 12px;
  --ws-radius-sm: 8px;
  --ws-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --ws-shadow-lg: 0 4px 16px rgba(27,53,94,0.1);
  --ws-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
  font-family: 'Ubuntu', system-ui, -apple-system, sans-serif;
  color: var(--ws-text);
  background: var(--ws-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ws-brand); text-decoration: none; transition: var(--ws-transition); }
a:hover { color: var(--ws-accent); }

/* ===== HEADER ===== */
.header {
  background: var(--ws-surface);
  border-bottom: 1px solid var(--ws-border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--ws-shadow);
}
.header__logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.header__logo-image { height: 30px; width: auto; }
.header__logo-title {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ws-brand);
  letter-spacing: -0.02em;
}
.header__logo-title::before { content: "Web"; font-weight: 900; }
.header__links {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
  align-items: center;
}
.header__links a {
  color: var(--ws-text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.header__links a:hover {
  color: var(--ws-brand);
  border-bottom-color: var(--ws-accent);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--ws-brand) 0%, var(--ws-brand-dark) 60%, #0a1a30 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,91,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__heading-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 0.75rem;
}
.hero__heading-title .ws-web { font-weight: 900; color: var(--ws-brand-light); }
.hero__heading-description {
  font-size: 1.18rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.hero__cta { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border-radius: var(--ws-radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--ws-transition);
}
.hero__cta--primary {
  background: var(--ws-accent);
  color: var(--ws-brand-dark) !important;
  box-shadow: 0 2px 12px rgba(217,164,91,0.3);
}
.hero__cta--primary:hover {
  background: var(--ws-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(217,164,91,0.4);
}
.hero__cta--secondary {
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(4px);
}
.hero__cta--secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  color: #fff !important;
}
.hero .browsers {
    margin-top: 0;
    padding: 1.25rem 1.75rem;
    background: rgba(255,255,255,0.92);
    border-radius: var(--ws-radius);
    justify-content: center;
    gap: 2rem;
}
.hero .browsers li img { opacity: 0.85; }
.hero .browsers li img:hover { opacity: 1; transform: scale(1.1); }

/* ===== HERO CODE BLOCK ===== */
.hero-code {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--ws-radius);
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.hero-code__dots {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-code__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.hero-code__dots span:nth-child(1) { background: #ff5f57; }
.hero-code__dots span:nth-child(2) { background: #febc2e; }
.hero-code__dots span:nth-child(3) { background: #28c840; }
.hero-code pre {
    margin: 0;
    padding: 1.25rem 1.5rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    line-height: 1.7;
    overflow-x: auto;
}
.hero-code code { color: var(--ws-brand-light); }

/* ===== MAINTAINER SECTION ===== */
.maintainer-section { padding: 0; }
.maintainer-section .maintainer-banner { margin: 2.5rem 0; }

/* ===== BROWSER STRIP ===== */
.browsers {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  align-items: center;
}
.browsers li img { height: 32px; width: auto; opacity: 0.7; transition: var(--ws-transition); }
.browsers li img:hover { opacity: 1; transform: scale(1.08); }

/* ===== SECTIONS ===== */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--ws-surface); border-top: 1px solid var(--ws-border); border-bottom: 1px solid var(--ws-border); }
.section__title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--ws-brand);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section__title .ws-web { font-weight: 900; }
.section__subtitle {
  font-size: 1rem;
  color: var(--ws-text-muted);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== QUICK-NAV CARDS ===== */
.quicknav { padding: 3.5rem 0; }
.quicknav__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.quicknav__card {
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: var(--ws-transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quicknav__card:hover {
  border-color: var(--ws-brand-light);
  box-shadow: var(--ws-shadow-lg);
  transform: translateY(-2px);
  color: inherit;
}
.quicknav__card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ws-brand);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.quicknav__card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ws-text-muted);
  line-height: 1.55;
}

/* ===== FEATURES ===== */
.features { padding: 3.5rem 0; }
.features__feature {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--ws-radius);
  transition: var(--ws-transition);
}
.features__feature:hover { background: var(--ws-surface); box-shadow: var(--ws-shadow-lg); }
.features__feature img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  filter: hue-rotate(-15deg) saturate(0.8);
}
.features__feature-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ws-brand);
  margin-bottom: 0.35rem;
}
.features__feature-description {
  font-size: 0.88rem;
  color: var(--ws-text-muted);
  line-height: 1.5;
}
.features__divider {
  height: 3px;
  width: 80px;
  background: var(--ws-accent);
  border-radius: 2px;
  margin: 2.5rem auto 0;
}

/* ===== BROWSER TABLE ===== */
.browser-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.browser-table th, .browser-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--ws-border);
  text-align: left;
}
.browser-table th {
  background: #f0f3f8;
  color: var(--ws-brand);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.browser-table td { font-size: 0.92rem; color: var(--ws-text); }
.browser-table code {
  background: #f1f5f9;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--ws-brand);
}

/* ===== ECOSYSTEM PROJECTS ===== */
.projects { padding: 3.5rem 0; }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.projects__project {
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 1.75rem;
  transition: var(--ws-transition);
}
.projects__project:hover { box-shadow: var(--ws-shadow-lg); border-color: var(--ws-brand-light); }
.projects__project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ws-brand);
  margin-bottom: 0.5rem;
}
.projects__project-description {
  font-size: 0.88rem;
  color: var(--ws-text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.projects__project-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.projects__project-links a {
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== CONTENT PAGES ===== */
.article { padding: 3rem 0 4rem; max-width: 860px; margin: 0 auto; }
.article h1 {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--ws-brand);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.article h1 .ws-web { font-weight: 900; }
.article h2 {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ws-border);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ws-brand);
  scroll-margin-top: 6rem;
}
.article h3 { margin-top: 2rem; font-size: 1.2rem; font-weight: 500; color: var(--ws-brand); }
.article p, .article li { line-height: 1.75; font-size: 1rem; color: #333; }
.article code { background: #f1f5f9; padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; color: var(--ws-brand); }
.article pre {
  background: #f8fafc;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.88rem;
}
.article pre code { background: none; padding: 0; }
.article a { color: var(--ws-brand); border-bottom: 1px solid transparent; }
.article a:hover { border-bottom-color: var(--ws-accent); }

/* ===== TOC / PAGE-NAV ===== */
.toc {
  background: #f0f3f8;
  border: 1px solid #d5dce8;
  border-radius: var(--ws-radius-sm);
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0;
}
.toc ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.page-nav {
  display: flex;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ws-border);
  flex-wrap: wrap;
}

/* ===== MAINTAINER BANNER ===== */
.maintainer-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #f0f3f8;
  border: 1px solid #d5dce8;
  border-radius: var(--ws-radius);
  padding: 1.25rem 2rem;
  margin: 0 0 2.5rem;
}
.maintainer-banner img { flex-shrink: 0; }
.maintainer-banner p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: #333; }
.maintainer-banner a { font-weight: 500; }

/* ===== ARTICLES & VIDEO ===== */
.articles { padding: 3.5rem 0; }
.articles__video iframe {
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow-lg);
}
.articles__article {
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  padding: 1.25rem 1.5rem;
  transition: var(--ws-transition);
}
.articles__article:hover { box-shadow: var(--ws-shadow); }
.articles__article-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.articles__article-description { font-size: 0.85rem; color: var(--ws-text-muted); margin: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--ws-brand-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer a { color: var(--ws-brand-light); font-weight: 400; }
.footer a:hover { color: var(--ws-accent); }
.footer__left ul, .footer__right ul { list-style: none; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__separator { height: 1px; background: rgba(255,255,255,0.08); margin: 2rem 0 1.5rem; }
.footer__copyright { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer__copyright a { color: var(--ws-brand-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero__heading-title { font-size: 2.2rem; }
  .section { padding: 3rem 0; }
  .quicknav__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .header__links { display: none; }
}

/* ===== UTILITY ===== */
.text-brand { color: var(--ws-brand) !important; }
.text-accent { color: var(--ws-accent) !important; }
.bg-brand { background: var(--ws-brand) !important; }
.rounded { border-radius: var(--ws-radius) !important; }
.shadow-soft { box-shadow: var(--ws-shadow-lg) !important; }

/* ===== MOBILE MENU ===== */
.header__menu-button { cursor: pointer; color: var(--ws-brand); padding: 0.5rem; display: inline-flex; }
.header__menu-wrapper { display: none; }
.header__menu input:checked ~ .header__menu-wrapper {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ws-surface);
    border-bottom: 1px solid var(--ws-border);
    padding: 0 1.5rem;
    box-shadow: var(--ws-shadow-lg);
    z-index: 99;
}
.header__menu-container a {
    color: var(--ws-text);
    font-weight: 500;
    display: block;
    padding: 0.35rem 0;
}
