:root {
  --bg: #e8e0d1;
  --bg-deep: #d8ccb6;
  --surface: #f4ede0;
  --surface-2: #ebe1cf;
  --text: #1d242d;
  --muted: #5d665f;
  --brand: #0d6f6d;
  --brand-strong: #0a5250;
  --accent: #28b2a5;
  --border: #c6b59a;
  --border-strong: #a99374;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(71, 48, 21, 0.1);
  --shadow-hover: 0 20px 44px rgba(44, 24, 5, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Noto Sans", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(255, 255, 255, 0.45),
      transparent 46%
    ),
    radial-gradient(
      circle at 100% 12%,
      rgba(40, 178, 165, 0.14),
      transparent 34%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border-strong);
  background: rgba(244, 237, 224, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(59, 37, 12, 0.11);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  inline-size: 2rem;
  block-size: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d6f6d, #1f7fa7);
  box-shadow: 0 8px 16px rgba(13, 111, 109, 0.3);
  color: #fff;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: lowercase;
}

.brand-text {
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.08rem;
}

.brand-core {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.24rem;
  letter-spacing: 0.02em;
  color: #1c2830;
  font-weight: 700;
}

.brand-domain {
  font-size: 0.94rem;
  color: #2c6b7a;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.38);
  color: var(--text);
  font-weight: 700;
  gap: 0.35rem;
}

.main-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.main-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover {
  background: rgba(13, 111, 109, 0.12);
  border-color: rgba(13, 111, 109, 0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: static;
  margin-left: 0.75rem;
}

.breadcrumbs {
  padding-top: 0.95rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  color: #5f6d65;
  font-size: 0.94rem;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.45rem;
}

.breadcrumbs li:last-child::after {
  content: "";
}

.site-main {
  padding: 1.2rem 0 2.8rem;
}

.hero,
.page-intro,
.category-block,
.tool-page,
.legal-page,
.future-wall,
.categories-hub,
.image-credit-note {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.hero {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.hero-copy-block h1 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.eyebrow {
  margin-top: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
}

.hero-copy {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0.9rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-pills span {
  background: rgba(13, 111, 109, 0.12);
  border: 1px solid rgba(13, 111, 109, 0.3);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.hero-visual img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-block-size: 520px;
  object-fit: cover;
}

.visual-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: rgba(13, 111, 109, 0.74);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.88rem;
}

.future-wall {
  display: grid;
  gap: 0.8rem;
}

.future-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.32);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.future-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.future-card img {
  display: block;
  inline-size: 100%;
  block-size: 200px;
  object-fit: cover;
}

.future-card p {
  margin: 0;
  padding: 0.75rem;
  font-weight: 600;
}

.categories-hub h2 {
  margin-top: 0;
}

.category-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.category-hub-card {
  display: grid;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.category-hub-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.hub-icon {
  font-size: 1.1rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.section-head a {
  border: 1px solid rgba(13, 111, 109, 0.35);
  background: rgba(13, 111, 109, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.68rem;
  font-weight: 700;
}

.section-head a:hover {
  text-decoration: none;
  background: rgba(13, 111, 109, 0.22);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
}

.tool-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.36);
  padding: 0.86rem;
  transform-style: preserve-3d;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.tool-card-glow {
  position: absolute;
  inset: -30% -20% auto;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(79, 204, 183, 0.36) 0%,
    rgba(79, 204, 183, 0) 72%
  );
  transform: translate3d(calc(var(--mx, 50) * 1% - 50%), -50%, 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.tool-card:hover .tool-card-glow,
.tool-card:focus-within .tool-card-glow,
.tool-card.is-tilting .tool-card-glow {
  opacity: 1;
}

.tool-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.tool-card h3 a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}

.tool-icon {
  font-size: 1.1rem;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  font-weight: 700;
}

.tool-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.tool-card-meta span {
  border: 1px solid rgba(13, 111, 109, 0.26);
  background: rgba(13, 111, 109, 0.1);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.tool-card-cta::after {
  content: "→";
  margin-left: 0.32rem;
  transition: transform 160ms ease;
}

.tool-card:hover .tool-card-cta::after {
  transform: translateX(3px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  padding: 0.66rem 1rem;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(145deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 111, 109, 0.33);
}

.btn-primary:hover {
  text-decoration: none;
  background: linear-gradient(145deg, var(--brand-strong), #17897f);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
}

.search-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.search-form input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  background: rgba(255, 255, 255, 0.45);
}

.search-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 111, 109, 0.14);
}

.tool-header h1 {
  margin-top: 0;
}

.privacy-note {
  border-left: 3px solid rgba(13, 111, 109, 0.36);
  padding-left: 0.65rem;
  color: #36493f;
}

.tool-workbench {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.37);
  padding: 0.95rem;
}

.tool-seo-block {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
  padding: 0.95rem;
}

.tool-seo-block h2 {
  margin-top: 0;
}

.tool-controls {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  padding: 0.7rem;
  border: 1px solid rgba(13, 111, 109, 0.22);
  border-radius: 10px;
  background: rgba(13, 111, 109, 0.06);
}

.tool-controls label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.93rem;
  font-weight: 600;
}

.tool-controls input,
.tool-controls select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.48rem 0.56rem;
  background: rgba(255, 255, 255, 0.72);
}

.tool-controls .control-row {
  display: grid;
  gap: 0.55rem;
}

.drop-zone {
  border: 2px dashed rgba(13, 111, 109, 0.52);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
  padding: 1rem;
  text-align: center;
  margin-bottom: 0.65rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.drop-zone.dragover {
  border-color: var(--brand-strong);
  background: rgba(40, 178, 165, 0.17);
  transform: scale(1.005);
}

.drop-zone input[type="file"] {
  position: absolute;
  opacity: 0;
  inline-size: 1px;
  block-size: 1px;
}

.hint,
.status-text {
  color: var(--muted);
}

.file-list {
  margin-top: 0.7rem;
  margin-bottom: 0.8rem;
}

.hidden {
  display: none;
}

.faq-section details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.41);
  padding: 0.7rem;
  margin-bottom: 0.6rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.faq-section details[open] {
  border-color: var(--border-strong);
  box-shadow: 0 8px 20px rgba(49, 31, 12, 0.12);
}

.site-footer {
  border-top: 1px solid var(--border-strong);
  background: rgba(244, 237, 224, 0.95);
  box-shadow: inset 0 10px 18px rgba(57, 36, 12, 0.07);
}

.footer-grid {
  padding: 1.6rem 0 1rem;
  display: grid;
  gap: 1rem;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  width: fit-content;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 0.72rem 0 1.1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.93rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(11px);
  transition:
    opacity 380ms ease,
    transform 460ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.image-credit-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.image-credit-note h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.2rem;
  }

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

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

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

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

  .js-ready .main-nav {
    display: none;
    position: absolute;
    inset: calc(100% + 8px) 1rem auto 1rem;
    background: #f2e8d8;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    padding: 0.5rem;
    flex-direction: column;
    margin-left: 0;
  }

  .js-ready .main-nav.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
