* {
  box-sizing: border-box;
}
/* Base */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #071c20;
  color: #e7fbf8;
}

.navbar {
  background: linear-gradient(135deg, #0d2c33 0%, #071c20 100%);
  border-bottom: 2px solid #22c7b8;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  width: 100%;
  margin: 0;
}

.navbar-container {
  max-width: 100%;
  margin: auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: block;
  margin-top: -1px;
  background: linear-gradient(135deg, #f7dd97 0%, #22c7b8 55%, #f4bd62 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(34, 199, 184, 0.22);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #c3e8e4;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c7b8 0%, #f4bd62 100%);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* Header */
h1 {
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #8cb7b3;
  margin-bottom: 25px;
}

/* Card */
.card {
  background: #0d2c33;
  padding: 20px;
  border-radius: 12px;
}

/* Textareas */
textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #041116;
  color: white;
  margin-bottom: 10px;
  resize: none;

  font-family: monospace;
}

/* Count */
#count {
  font-size: 13px;
  color: #8cb7b3;
  margin-bottom: 10px;
}

/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: #25545b;
  color: white;
  cursor: pointer;
  font-size: 13px;
}

button:hover {
  background: #18515c;
}

/* Footer */
.trust {
  font-size: 12px;
  color: #8cb7b3;
  margin-top: 10px;
}

/* SEO */
.seo-section {
  margin-top: 40px;
  border-top: 1px solid rgba(195,255,248,0.08);
  padding-top: 20px;
}

.seo-section h2 {
  margin-top: 20px;
}

.seo-section p {
  color: #c3e8e4;
}

.seo-section a {
  color: #8df7ec;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(141, 247, 236, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.seo-section a:hover,
.seo-section a:focus {
  color: #f4bd62;
  text-decoration-color: #f4bd62;
}

.seo-section ul {
  padding-left: 18px;
}

.seo-section li {
  margin-bottom: 6px;
}

/* Links */
.links {
  margin-top: 20px;
  text-align: center;
}

.links a {
  color: #22c7b8;
  text-decoration: none;
}

.footer {
  background: linear-gradient(135deg, #071c20 0%, #0d2c33 100%);
  border-top: 2px solid #22c7b8;
  padding: 60px 40px 20px 40px;
  margin-top: 80px;
  color: #c3e8e4;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #22c7b8 0%, #f4bd62 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section h4 {
  font-size: 15px;
  color: #c3e8e4;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.footer-section p {
  font-size: 14px;
  color: #8cb7b3;
  line-height: 1.6;
  margin: 0;
}

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

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #c3e8e4;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #22c7b8;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #25545b;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #5f8784;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }

  .navbar-container {
    position: relative;
    padding: 0 15px;
  }

  .logo-img {
    height: 34px;
    width: 34px;
  }

  .logo-text {
    font-size: 11px;
    letter-spacing: 1.6px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: linear-gradient(135deg, #0d2c33 0%, #071c20 100%);
    border: 1px solid #25545b;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  .nav-links a {
    width: 100%;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 6px;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    background: rgba(34, 199, 184, 0.12);
  }

  .nav-links a::after {
    display: none;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid #25545b;
    border-radius: 8px;
    background: rgba(7, 28, 32, 0.72);
    color: #c3e8e4;
    font: inherit;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle:hover,
  .menu-toggle:focus {
    background: rgba(34, 199, 184, 0.12);
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #c3e8e4;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .navbar.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .container {
    padding: 15px;
  }

  textarea {
    min-height: 120px;
  }

  button {
    flex: 1 1 45%;
    font-size: 12px;
  }

  .footer {
    padding: 40px 20px 15px 20px;
  }

  .footer-content {
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-section h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 10px;
  }

  .logo-img {
    height: 30px;
    width: 30px;
  }

  .logo-text {
    font-size: 10px;
    letter-spacing: 1.3px;
  }

  .nav-links {
    left: 10px;
    right: 10px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .footer {
    padding: 30px 15px 10px 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-section h3 {
    font-size: 16px;
  }

  .footer-section h4 {
    font-size: 13px;
  }

  .footer-section p {
    font-size: 12px;
  }

  .footer-section a {
    font-size: 12px;
  }

  .footer-bottom p {
    font-size: 11px;
  }
}
