:root {
  --brand-a: #0f766e;
  --brand-b: #ea580c;
  --brand-c: #0891b2;
  --ink-900: #0b1b2b;
  --ink-700: #34495e;
  --ink-500: #60748a;
  --line: #d8e4ec;
  --paper: #f5f8fb;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 8px 24px rgba(8, 25, 36, 0.08);
  --shadow-md: 0 18px 44px rgba(8, 25, 36, 0.14);

  --spacing-xs: 0.35rem;
  --spacing-sm: 0.6rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.4rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.4rem;

  --gray-100: #eef4f8;
  --gray-500: #60748a;
  --gray-700: #334b62;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background:
    radial-gradient(1100px 500px at -20% -10%, rgba(8, 145, 178, 0.14), transparent),
    radial-gradient(900px 500px at 120% -15%, rgba(234, 88, 12, 0.14), transparent),
    var(--paper);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--spacing-md);
  line-height: 1.18;
  color: var(--ink-900);
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

h3 {
  font-size: clamp(1.12rem, 2.2vw, 1.4rem);
}

p {
  margin: 0 0 var(--spacing-md);
  color: var(--ink-700);
}

a {
  color: var(--brand-c);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: min(1220px, 92vw);
  margin-inline: auto;
}

.main-content {
  min-height: calc(100vh - 220px);
  padding-bottom: var(--spacing-2xl);
}

.section {
  padding-block: clamp(2rem, 5vw, 4.8rem);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header p {
  margin-inline: auto;
  max-width: 60ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(216, 228, 236, 0.9);
  background: rgba(245, 248, 251, 0.88);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--ink-900);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav > a,
.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  color: var(--ink-700);
  font: inherit;
  font-weight: 600;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.site-nav > a:hover,
.site-nav > a.active,
.nav-dropdown-toggle:hover,
.has-dropdown.open .nav-dropdown-toggle {
  color: var(--ink-900);
  background: var(--gray-100);
  text-decoration: none;
}

.has-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  min-width: 260px;
  max-height: min(62vh, 520px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.45rem;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  color: var(--ink-700);
}

.nav-dropdown a:hover {
  background: var(--gray-100);
  color: var(--ink-900);
  text-decoration: none;
}

.menu-emoji {
  width: 1.35rem;
  text-align: center;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  width: 42px;
  height: 38px;
  padding: 7px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-700);
  margin: 4px 0;
}

.admin-header-note {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #113c3a;
  color: #d6f5f0;
  font-weight: 700;
  font-size: var(--text-sm);
}

.site-notice {
  background: #fef3c7;
  color: #854d0e;
  border-bottom: 1px solid #f6dd95;
  text-align: center;
  font-weight: 700;
  padding: 0.66rem 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 999px;
  opacity: 0.2;
}

.shape-1 {
  width: 380px;
  height: 380px;
  background: #7dd3fc;
  top: -120px;
  left: -100px;
}

.shape-2 {
  width: 320px;
  height: 320px;
  background: #fdba74;
  bottom: -140px;
  right: -80px;
}

.shape-3 {
  width: 240px;
  height: 240px;
  background: #5eead4;
  top: 24%;
  right: 24%;
}

.hero-content-container {
  position: relative;
  z-index: 1;
  width: min(940px, 92vw);
  margin: 0 auto;
  text-align: center;
  padding: clamp(3.1rem, 8vw, 6rem) 0;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-subtitle {
  margin: 0 auto 1.4rem;
  max-width: 64ch;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.hero-trust {
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(115deg, var(--brand-a), var(--brand-b));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: var(--white);
  color: var(--ink-900);
  border: 1px solid var(--line);
}

.btn-small {
  padding: 0.52rem 0.86rem;
  font-size: var(--text-sm);
}

.btn-large,
.btn-lg {
  padding: 0.88rem 1.3rem;
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

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

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

.card,
.tool-card,
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card,
.tool-card {
  padding: 1rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.card-icon,
.tool-icon,
.file-upload-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #cffafe, #ffedd5);
}

.card-title {
  margin: 0;
}

.card-description {
  margin-top: 0.7rem;
  flex-grow: 1;
}

.card-footer {
  margin-top: 1rem;
}

.benefit-card {
  padding: 1rem;
}

.tools-category {
  margin-top: 1.5rem;
}

.category-title {
  margin-bottom: 0.9rem;
}

.bg-light {
  background: #edf4f9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.cta-section {
  background: linear-gradient(120deg, #0f766e, #155e75);
  color: #effdfb;
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 2rem 1rem;
}

.cta-section h2,
.cta-section p {
  color: #effdfb;
  margin-inline: auto;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.3rem 0.66rem;
  font-size: var(--text-xs);
  font-weight: 700;
}

.badge-primary {
  color: #0f766e;
  background: #ccfbf1;
}

.alert {
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #c7d7e1;
  background: #fff;
  color: var(--ink-900);
  padding: 0.7rem 0.82rem;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16);
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.file-upload {
  border: 2px dashed #9cc6d8;
  border-radius: var(--radius-md);
  background: #f0f9ff;
  cursor: pointer;
  text-align: center;
  padding: 1.6rem 1rem;
}

.file-upload.drag-over,
.file-upload:hover {
  border-color: #0891b2;
  background: #e0f2fe;
}

.file-upload-text {
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.file-upload-hint {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.prose {
  max-width: 72ch;
}

.prose p,
.prose li {
  color: var(--ink-700);
}

.seo-content article,
.prose article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.2rem;
  padding: 2rem 0 1.1rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #0f2430;
  color: #d9e5ec;
}

.site-footer h3,
.site-footer h4 {
  color: #f2fbff;
}

.site-footer p,
.site-footer li,
.site-footer small {
  color: #d0e1ea;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.34rem;
}

.site-footer a {
  color: #d8ecf5;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #22465b;
  padding: 0.9rem 0 1.2rem;
  text-align: center;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.py-12 {
  padding-block: 3rem;
}

.max-w-3xl {
  max-width: 768px;
}

.max-w-none {
  max-width: none;
}

.mx-auto {
  margin-inline: auto;
}

.px-4 {
  padding-inline: 1rem;
}

.is-admin-area .site-nav,
.is-admin-area .menu-toggle {
  display: none;
}

.admin-nav-wrap {
  margin-top: 1rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.admin-nav-link {
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  color: var(--gray-700);
}

.admin-nav-link:hover {
  text-decoration: none;
  background: var(--gray-100);
}

.admin-nav-link.is-active {
  background: linear-gradient(120deg, var(--brand-a), var(--brand-c));
  color: #fff;
}

.admin-nav-logout {
  margin-left: auto;
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.admin-dashboard {
  margin-top: 1.2rem;
}

.admin-head {
  margin-bottom: 1rem;
}

.admin-head p {
  margin: 0;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.admin-stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem;
}

.admin-stat-card .k {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-stat-card .v {
  margin-top: 0.4rem;
  font-size: 1.52rem;
  font-weight: 800;
  color: var(--ink-900);
}

.admin-stat-card .v span {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.admin-stat-card .v.is-danger {
  color: #b91c1c;
}

.admin-stat-card .v.is-ok {
  color: #15803d;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.admin-panel h3 {
  margin-bottom: 0.7rem;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.admin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--gray-100);
  border: 1px solid #d5e3ec;
}

.admin-action:hover {
  text-decoration: none;
  background: #deebf3;
}

.admin-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.admin-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--gray-100);
  border: 1px solid #d8e4ec;
  border-radius: 9px;
  padding: 0.5rem 0.6rem;
}

.admin-table-wrap {
  overflow: auto;
}

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

.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid #e4edf3;
  padding: 0.58rem 0.45rem;
  font-size: var(--text-sm);
}

.admin-table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 0.03em;
}

@media (max-width: 1080px) {
  .grid-4,
  .tools-grid,
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #f8fbfe;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 4vw 0.9rem;
    gap: 0.28rem;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-dropdown {
    position: static;
    display: none;
    max-height: 280px;
    margin-top: 0.35rem;
  }

  .has-dropdown.open .nav-dropdown {
    display: block;
  }

  .grid-4,
  .tools-grid,
  .benefits-grid,
  .grid-3,
  .grid-2,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid,
  .admin-grid-2,
  .admin-quick-grid {
    grid-template-columns: 1fr;
  }

  .admin-nav-logout {
    margin-left: 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
