@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg-deep: #0a1412;
  --bg-main: #0f1f1c;
  --bg-soft: #152926;
  --bg-card: #1a322e;
  --bg-card-hover: #1f3b36;
  --bg-input: #122420;

  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-glow: #2dd4bf;
  --coral: #f4a261;
  --coral-hot: #e76f51;
  --gold: #d4a017;

  --text: #ecfdf5;
  --text-body: #b8d4cc;
  --muted: #7f9e96;

  --border: rgba(45, 212, 191, 0.12);
  --border-strong: rgba(45, 212, 191, 0.22);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);

  --radius: 16px;
  --radius-sm: 10px;

  --container-max: min(100%, calc(100vw - clamp(1.25rem, 4vw, 3rem)));
  --container-article: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--text-body);
  line-height: 1.65;
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.14) 0%, transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(231, 111, 81, 0.1) 0%, transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(13, 148, 136, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #0a1412 0%, var(--bg-main) 40%, #0d1a18 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: -1;
}

a {
  color: var(--teal-glow);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--coral);
}

.container {
  width: var(--container-max);
  margin: 0 auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.9rem 0;
  background: linear-gradient(
    180deg,
    rgba(18, 38, 34, 0.97) 0%,
    rgba(10, 20, 18, 0.92) 100%
  );
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  transition: padding 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--teal-glow) 18%,
    var(--coral) 50%,
    var(--gold) 82%,
    transparent
  );
  opacity: 0.85;
  pointer-events: none;
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.35), transparent);
  pointer-events: none;
}

.header-scrolled {
  padding: 0.55rem 0;
  background: rgba(10, 20, 18, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  min-height: 3.25rem;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  transition: background 0.2s ease;
  z-index: 0;
}

.logo:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.12);
}

.logo:hover::before {
  background: rgba(20, 184, 166, 0.08);
}

.logo-img {
  position: relative;
  z-index: 1;
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(20, 184, 166, 0.4));
  transition: transform 0.25s ease;
}

.logo:hover .logo-img {
  transform: scale(1.04) rotate(-2deg);
}

.logo-text {
  position: relative;
  z-index: 1;
  background: linear-gradient(120deg, var(--teal-glow) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(8, 18, 16, 0.72);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  background: rgba(20, 184, 166, 0.14);
  color: var(--teal-glow);
  transform: translateY(-1px);
}

.nav a.active {
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.32) 0%,
    rgba(45, 212, 191, 0.14) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(45, 212, 191, 0.35),
    0 4px 14px rgba(20, 184, 166, 0.18);
}

.nav a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--teal-glow);
  outline-offset: 2px;
}

.hero {
  text-align: center;
  padding: 2.75rem 0 1.75rem;
  background: linear-gradient(180deg, rgba(26, 50, 46, 0.55) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-glow);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid var(--border-strong);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.85rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub,
.page-hero p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 auto;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.page-hero {
  padding: 2.25rem 0 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 50, 46, 0.7), rgba(15, 31, 28, 0.4));
}

.tool-card,
.content-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.tool-card::before,
.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-glow), var(--coral), var(--gold));
}

.tool-head {
  margin-bottom: 1.15rem;
}

.tool-head h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.tool-head p {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
  color: #5f7a74;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal-glow);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

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

.btn-primary,
.btn-secondary,
.copy-btn,
.copy-all {
  border: none;
  cursor: pointer;
  font: inherit;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.btn-primary {
  margin-top: 0.35rem;
  padding: 0.95rem 1.15rem;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-glow) 60%, var(--coral-hot) 130%);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-secondary,
.copy-all {
  background: var(--bg-soft);
  color: var(--teal-glow);
  border: 1px solid var(--border-strong);
  padding: 0.52rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-secondary:hover,
.copy-all:hover,
.copy-btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.results {
  margin-top: 2rem;
}

.results.hidden {
  display: none;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-strong);
}

.results-header h2 {
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.result-block {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  margin-bottom: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.block-title h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--teal-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.block-title h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--teal-glow));
}

.result-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.result-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal-glow);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.85rem;
}

.result-text {
  flex: 1;
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.55;
}

.copy-btn {
  flex-shrink: 0;
  background: var(--bg-soft);
  color: var(--teal-glow);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.75rem 0 2rem;
}

.features article {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.features article:hover {
  transform: translateY(-4px);
  border-color: var(--teal-glow);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid var(--border-strong);
}

.features h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.features p {
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1600px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.blog-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1200px) {
  .blog-card-image {
    height: 200px;
  }
}

.blog-card-body {
  padding: 1.15rem;
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  margin-bottom: 1.25rem;
  display: block;
}

.image-credit {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -0.75rem 0 1.25rem;
}

.image-credit a {
  color: var(--muted);
  font-weight: 500;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-glow);
  box-shadow: var(--shadow-lg);
}

.blog-card h2 {
  font-size: 1.06rem;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

.blog-meta {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--teal-glow);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid var(--border);
}

.article {
  width: 100%;
  max-width: none;
  margin: 1.5rem auto 2.5rem;
}

.article h1 {
  color: var(--text);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.article h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 1.6rem 0 0.65rem;
}

.article p,
.article li {
  margin-bottom: 0.85rem;
}

.article ul {
  padding-left: 1.25rem;
}

.content-card h2 {
  font-size: 1.12rem;
  color: var(--text);
  margin: 1.3rem 0 0.55rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  margin-bottom: 0.75rem;
}

.content-card ul {
  padding-left: 1.25rem;
}

.contact-form label {
  margin-bottom: 0.85rem;
}

.footer {
  margin-top: 2.5rem;
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--border-strong);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-body);
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-glow));
  color: var(--bg-deep);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 100;
  font-weight: 700;
  font-size: 0.88rem;
}

.toast.hidden {
  display: none;
}

main.container {
  padding-bottom: 1rem;
}

.seo-section,
.faq-section {
  margin: 2.5rem 0 1rem;
}

.seo-section h2,
.faq-section h2 {
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.seo-section h3,
.faq-section h3 {
  font-size: 1.05rem;
  color: var(--teal-glow);
  margin: 1.25rem 0 0.5rem;
}

.seo-section p,
.faq-section p {
  color: var(--text-body);
  margin-bottom: 0.85rem;
}

.seo-section ul,
.faq-section ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.seo-section li,
.faq-section li {
  margin-bottom: 0.45rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
}

.contact-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}

.contact-box strong {
  color: var(--teal-glow);
}

.article-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  border-left: 4px solid var(--teal-glow);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

.content-overview {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.content-overview h2 {
  font-size: 1.12rem;
  margin: 0 0 0.65rem;
  color: var(--teal-glow);
}

.content-overview p:last-child,
.content-overview ul:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.article-table th,
.article-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-table th {
  background: rgba(20, 184, 166, 0.1);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.related-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-strong);
}

.related-links h2 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.related-links ul {
  list-style: none;
  padding: 0;
}

.related-links li {
  margin-bottom: 0.45rem;
}

.blog-intro {
  margin: 1.25rem 0 0.5rem;
  color: var(--muted);
  max-width: none;
}

@media (max-width: 720px) {
  .form-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 0.65rem 0;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }

  .logo {
    font-size: 1rem;
    padding: 0.2rem 0.55rem 0.2rem 0.2rem;
    flex-shrink: 0;
  }

  .logo-img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .nav {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.22rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex-shrink: 0;
    padding: 0.48rem 0.8rem;
    font-size: 0.8rem;
  }

  .result-list li {
    flex-direction: column;
  }

  .copy-btn {
    align-self: flex-end;
  }

  .tool-card,
  .content-card {
    padding: 1.15rem;
  }
}
