@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --bg: #f5efe1;
  --bg-soft: #fffaf2;
  --surface: rgba(255, 250, 242, 0.9);
  --surface-strong: #ffffff;
  --ink: #102033;
  --ink-soft: #4c5f73;
  --line: rgba(16, 32, 51, 0.12);
  --brand: #0d1b2a;
  --accent: #eb6b34;
  --accent-soft: #ffe1cf;
  --mint: #d6f4ea;
  --success: #2e8b57;
  --warning: #c87f1d;
  --danger: #b53c2f;
  --shadow: 0 24px 60px rgba(13, 27, 42, 0.1);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(235, 107, 52, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(46, 139, 87, 0.1), transparent 25%),
    linear-gradient(180deg, #f8f1e4 0%, #fdf8f1 35%, #f5efe1 100%);
  font-family: 'Manrope', sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(253, 248, 241, 0.82);
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
}

.header-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #17314f);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
}

.brand strong,
h1,
h2,
h3,
h4 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.main-nav a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--brand);
  background: rgba(13, 27, 42, 0.06);
}

.nav-button,
.button-primary,
.button-secondary,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-button,
.button-secondary {
  background: rgba(13, 27, 42, 0.08);
  color: var(--brand);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ff8f59);
  color: #fff;
  box-shadow: 0 18px 32px rgba(235, 107, 52, 0.25);
}

.button-danger {
  background: #ffe2dd;
  color: var(--danger);
}

.button-primary:hover,
.button-secondary:hover,
.button-danger:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.hero-section,
.page-hero {
  padding: 5rem 0 2rem;
}

.hero-grid,
.tool-hero-grid,
.layout-two,
.article-grid,
.editor-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.tool-hero-grid,
.layout-two,
.article-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.editor-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.hero-section h1,
.page-hero h1,
.article-title {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.tool-hero h1,
.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.hero-copy,
.page-hero p,
.article-dek {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 64ch;
}

.eyebrow,
.panel-label,
.ad-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-actions,
.client-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.stats-row,
.chip-row,
.monetization-grid,
.field-grid,
.result-grid {
  display: grid;
  gap: 1rem;
}

.stats-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.75rem;
}

.stat-card,
.hero-panel,
.feature-card,
.tool-card,
.blog-card,
.group-card,
.group-block,
.content-panel,
.ad-card,
.ad-demo,
.sidebar-card,
.auth-card,
.tool-form,
.client-tool-panel,
.tool-result,
.status-card,
.admin-table-wrapper {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.stat-card,
.feature-card,
.tool-card,
.blog-card,
.ad-card,
.ad-demo,
.sidebar-card,
.status-card {
  padding: 1.4rem;
}

.tool-form,
.client-tool-panel,
.content-panel,
.auth-card,
.admin-table-wrapper {
  padding: 1.8rem;
}

.hero-panel {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.97), rgba(13, 27, 42, 0.88)),
    linear-gradient(135deg, rgba(235, 107, 52, 0.3), rgba(46, 139, 87, 0.2));
  color: #fff;
}

.hero-panel.compact {
  padding: 1.3rem 1.5rem;
}

.hero-panel .panel-label {
  color: #ffd8c5;
}

.feature-stack,
.stacked-groups,
.faq-list,
.sidebar-stack,
.ad-stack,
.stack-form,
.simple-link-list,
.result-sections,
.check-list,
.category-list {
  display: grid;
  gap: 1rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.feature-card h3,
.tool-card h3,
.blog-card h3,
.group-card h3 {
  margin: 0 0 0.5rem;
}

.section {
  padding: 2rem 0 4rem;
}

.band-section {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(16, 32, 51, 0.06);
  border-bottom: 1px solid rgba(16, 32, 51, 0.06);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-card-top,
.meta-row,
.group-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tool-badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9f3d11;
  font-weight: 800;
  font-size: 0.83rem;
}

.pill.published {
  background: var(--mint);
  color: #25684d;
}

.pill.draft {
  background: #f6ebc8;
  color: #8b6800;
}

.tool-category,
.meta-row span:last-child {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.mini-points,
.bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.06);
  color: var(--brand);
  font-weight: 700;
}

.chip.muted {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.group-card-head span,
.form-note,
.ad-card small,
.ad-demo p {
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--accent);
}

.ad-card,
.ad-demo {
  min-height: 140px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.98)),
    linear-gradient(135deg, rgba(235, 107, 52, 0.1), rgba(46, 139, 87, 0.08));
  border-style: dashed;
}

.monetization-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-layout {
  align-items: start;
}

.dropzone {
  position: relative;
  min-height: 230px;
  border: 2px dashed rgba(13, 27, 42, 0.18);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(214, 244, 234, 0.7), rgba(255, 225, 207, 0.65));
  overflow: hidden;
}

.dropzone.is-active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-copy {
  min-height: 230px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.5rem;
}

.field,
.checkbox-field {
  display: grid;
  gap: 0.5rem;
}

.field span {
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

textarea {
  resize: vertical;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-field input {
  width: auto;
}

.tool-result {
  margin-top: 1.2rem;
  padding: 1.5rem;
  display: none;
}

.tool-result.is-visible {
  display: block;
}

.tool-result.is-loading::before {
  content: 'Processing your request...';
  display: block;
  font-weight: 800;
  color: var(--accent);
}

.result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.result-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(13, 27, 42, 0.05);
}

.result-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.result-card strong {
  display: block;
  margin-top: 0.35rem;
  word-break: break-word;
}

.notice-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.notice-item {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff1de;
  color: #7f4a06;
}

.result-section {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.result-section h3 {
  margin: 0 0 0.8rem;
}

.key-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.kv-card,
.list-card,
.check-item {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(13, 27, 42, 0.04);
}

.kv-card span,
.list-card small {
  display: block;
  color: var(--ink-soft);
}

.result-list {
  display: grid;
  gap: 0.75rem;
}

.list-card strong {
  display: block;
  margin-bottom: 0.3rem;
  white-space: pre-wrap;
}

.badge-note {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(235, 107, 52, 0.12);
  color: #8f3d18;
  font-size: 0.78rem;
  font-weight: 800;
}

.check-item {
  border-left: 4px solid transparent;
}

.check-item.pass {
  border-left-color: var(--success);
}

.check-item.warn {
  border-left-color: var(--warning);
}

.check-item.fail {
  border-left-color: var(--danger);
}

.download-list,
.simple-link-list,
.category-list {
  display: grid;
  gap: 0.8rem;
}

.download-link,
.simple-link-list a,
.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(13, 27, 42, 0.05);
  font-weight: 700;
}

.category-list a.active {
  background: var(--accent-soft);
  color: #8f3d18;
}

.content-panel p,
.article-body p,
.text-section p {
  color: var(--ink-soft);
}

.faq-item {
  padding: 1.2rem 1.3rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.faq-item summary {
  font-weight: 800;
  cursor: pointer;
}

.article-shell {
  padding: 3rem 0 4rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 2rem;
}

.article-body ul,
.article-body ol {
  color: var(--ink-soft);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid a {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.footer-bottom {
  padding: 1rem 0 2rem;
  color: var(--ink-soft);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table thead {
  background: rgba(13, 27, 42, 0.04);
}

.empty-state {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-card.success {
  background: rgba(214, 244, 234, 0.75);
}

.status-card.error {
  background: rgba(255, 226, 221, 0.82);
}

@media (max-width: 1100px) {
  .hero-grid,
  .tool-hero-grid,
  .layout-two,
  .article-grid,
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .four-up,
  .stats-row,
  .monetization-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-shell,
  .section-head,
  .hero-actions,
  .client-actions,
  .editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .card-grid,
  .four-up,
  .stats-row,
  .monetization-grid,
  .field-grid,
  .key-value-grid,
  .result-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .page-hero {
    padding-top: 3.5rem;
  }

  .tool-form,
  .client-tool-panel,
  .content-panel,
  .auth-card,
  .admin-table-wrapper {
    padding: 1.2rem;
  }
}
