/* ==========================================================================
   DORAEMON HOSTING — Public Commercial Hosting Website Stylesheet
   Matches the dark/light Zinc & Indigo design system in css/tokens.css
   ========================================================================== */

.pub-nav {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(9, 9, 11, 0.84); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .pub-nav { background: rgba(255, 255, 255, 0.9); }

.pub-nav-inner {
  max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pub-brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em;
}
.pub-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pub-brand span { color: var(--accent-fg); }

.pub-links { display: none; align-items: center; gap: 6px; }
@media (min-width: 900px) { .pub-links { display: flex; } }
.pub-link {
  padding: 6px 11px; border-radius: var(--radius-xs); text-decoration: none;
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: color 0.14s ease, background 0.14s ease;
}
.pub-link:hover, .pub-link.active { color: var(--text); background: var(--surface-2); }

.pub-actions { display: flex; align-items: center; gap: 8px; }
.pub-mobile-menu {
  display: none; padding: 12px 18px 18px; border-bottom: 1px solid var(--border);
  background: var(--bg-subtle); flex-direction: column; gap: 4px;
}
.pub-mobile-menu.open { display: flex; }
@media (min-width: 900px) { .pub-mobile-menu, #pub-menu-btn { display: none !important; } }

.pub-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.pub-section { padding: 68px 0; }
.pub-section-sm { padding: 44px 0; }
.pub-section-border { border-top: 1px solid var(--border); }

/* Hero */
.pub-hero {
  padding: 72px 0 64px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 75% 55% at 50% -10%, rgba(99, 102, 241, 0.18), transparent 68%);
}
.pub-hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 920px) { .pub-hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.pub-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px;
  border-radius: 99px; border: 1px solid rgba(99, 102, 241, 0.3);
  background: var(--accent-soft); color: var(--accent-fg);
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.pub-h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.03em; color: var(--text); margin-bottom: 16px;
}
.pub-h1 span { color: var(--accent-fg); }
.pub-lead { font-size: 16px; color: var(--text-2); line-height: 1.65; max-width: 580px; margin-bottom: 26px; }
.pub-cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Hero Terminal Showcase Card */
.pub-showcase {
  border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface);
  overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
html[data-theme="light"] .pub-showcase { box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1); }
.pub-showcase-bar {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  background: var(--bg-subtle); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11.5px; color: var(--text-2);
}
.pub-dots { display: flex; gap: 6px; }
.pub-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.pub-showcase-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pub-stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pub-mini-stat { padding: 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); }
.pub-mini-stat small { display: block; font-size: 11px; color: var(--text-3); }
.pub-mini-stat strong { display: block; font-size: 14px; font-family: var(--mono); margin-top: 2px; }

/* Section Headers */
.pub-sec-head { max-width: 660px; margin-bottom: 34px; }
.pub-h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.18; margin-bottom: 10px; }
.pub-sub { font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* Feature / Card Grids */
.pub-grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .pub-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pub-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.pub-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 820px) { .pub-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.pub-card {
  padding: 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pub-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pub-card-ic {
  width: 38px; height: 38px; border-radius: 9px; background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.pub-card-ic .ic { filter: invert(53%) sepia(85%) saturate(2100%) hue-rotate(214deg) brightness(102%) contrast(98%) !important; }
.pub-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.pub-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

/* Comparison Table */
.pub-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.pub-table { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: left; }
.pub-table th, .pub-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pub-table th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); background: var(--bg-subtle); }
.pub-table tr:last-child td { border-bottom: none; }

/* Docs & Legal Layout */
.pub-doc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .pub-doc-grid { grid-template-columns: 240px 1fr; } }
.pub-doc-nav { position: sticky; top: 82px; height: fit-content; display: flex; flex-direction: column; gap: 4px; }
.pub-doc-link {
  padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text-2);
  font-size: 13px; font-weight: 500;
}
.pub-doc-link:hover { background: var(--surface-2); color: var(--text); }
.pub-prose h2 { font-size: 20px; font-weight: 700; margin: 22px 0 8px; }
.pub-prose h2:first-child { margin-top: 0; }
.pub-prose p, .pub-prose li { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.pub-prose ul { padding-left: 20px; margin-bottom: 12px; }
.pub-prose code { font-family: var(--mono); font-size: 12.5px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--text); }

/* Footer */
.pub-footer {
  border-top: 1px solid var(--border); background: var(--bg-subtle); padding: 48px 0 32px;
}
.pub-footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 32px; }
@media (min-width: 820px) { .pub-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.pub-footer h4 { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin-bottom: 12px; }
.pub-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pub-footer a { text-decoration: none; color: var(--text-2); font-size: 13.5px; }
.pub-footer a:hover { color: var(--text); }
.pub-footer-bot {
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-3);
}

/* Scrolled Glass Navbar & Ambient Hero Lighting */
.pub-nav { transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.pub-nav.is-scrolled {
  background: var(--glass-bg);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 8px 28px rgba(2, 6, 18, 0.35);
}
.pub-hero {
  background:
    radial-gradient(ellipse 65% 48% at 20% 0%, rgba(57, 168, 255, 0.14), transparent 65%),
    radial-gradient(ellipse 55% 42% at 85% 15%, rgba(66, 213, 232, 0.10), transparent 65%),
    var(--bg);
}
.pub-brand-hero-title {
  font-size: clamp(36px, 5.8vw, 60px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--text);
  text-shadow: 0 0 34px rgba(57, 168, 255, 0.28);
  margin-bottom: 12px;
}
.pub-brand-hero-title span {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .pub-brand-hero-title { text-shadow: none; }
.pub-card:hover {
  border-color: rgba(57, 168, 255, 0.35);
  box-shadow: var(--glow-1);
}
