:root {
  --bg: #060914;
  --bg-soft: #0d1426;
  --card: rgba(15, 23, 42, 0.76);
  --card-solid: #111827;
  --text: #e5e7eb;
  --text-soft: #94a3b8;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.18);

  --primary: #22c55e;
  --secondary: #38bdf8;
  --accent: #8b5cf6;
  --warning: #f59e0b;
  --danger: #ef4444;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 16px 45px rgba(0, 0, 0, 0.25);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --container: 1160px;
  --header: 76px;
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.13);

  --shadow: 0 24px 80px rgba(15, 23, 42, 0.13);
  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.17), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(56, 189, 248, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.14), transparent 34%),
    var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section-padding {
  padding: 105px 0;
}

.alt-section {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(148, 163, 184, 0.06),
    transparent
  );
}

.center {
  text-align: center;
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header);
  background: rgba(6, 9, 20, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.78);
}

.navbar {
  width: min(100% - 40px, var(--container));
  height: var(--header);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
}

.logo-icon {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #03110a;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.32);
}

.nav-links {
  margin-left: auto;
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 800;
  font-size: 0.94rem;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
}

.nav-links .nav-cta {
  color: #03110a;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
  transition: 0.25s ease;
}

.theme-toggle {
  width: 43px;
  height: 43px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  padding: 10px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  padding: 115px 0 90px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: 40px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 65%);
  animation: float 8s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
}

.hero h1 {
  margin-top: 16px;
  max-width: 780px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text {
  margin-top: 26px;
  max-width: 680px;
  color: var(--text-soft);
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 900;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  border-color: transparent;
  color: #03110a;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.24);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.15);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-badges span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-soft);
  font-weight: 800;
  font-size: 0.88rem;
}

.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 40%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

html[data-theme="light"] .terminal {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8)),
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.13), transparent 40%);
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.terminal-top span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.terminal-top span:nth-child(1) {
  background: #ef4444;
}

.terminal-top span:nth-child(2) {
  background: #f59e0b;
}

.terminal-top span:nth-child(3) {
  background: #22c55e;
}

.terminal-body {
  padding: 28px;
  font-family: Consolas, Monaco, monospace;
  color: var(--text-soft);
  min-height: 320px;
}

.terminal-body p {
  margin-bottom: 12px;
}

.terminal-body span {
  color: var(--primary);
  font-weight: 900;
}

/* Section Heading */

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-heading p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-soft);
}

/* Search */

.search-wrap {
  max-width: 760px;
  margin: 42px auto 0;
}

.search-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.search-wrap input:focus {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.category-tabs {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.category-btn {
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.08);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.category-btn:hover,
.category-btn.active {
  color: #03110a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Cards */

.tools-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.tool-card,
.feature-card,
.contact-card {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.tool-card,
.feature-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-md);
  transition: 0.25s ease;
}

.tool-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 42%);
  opacity: 0;
  transition: 0.25s ease;
}

.tool-card:hover,
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 197, 94, 0.34);
}

.tool-card:hover::before,
.feature-card:hover::before {
  opacity: 1;
}

.tool-card > *,
.feature-card > * {
  position: relative;
}

.tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.1);
  font-size: 1.55rem;
  margin-bottom: 20px;
}

.tool-card h3,
.feature-card h3 {
  font-size: 1.16rem;
  line-height: 1.25;
}

.tool-card p,
.feature-card p {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.tool-open {
  margin-top: 22px;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
  font-weight: 900;
  transition: 0.25s ease;
}

.tool-open:hover {
  color: #03110a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.tool-card.hide {
  display: none;
}

.empty-message {
  display: none;
  text-align: center;
  margin-top: 35px;
  color: var(--text-soft);
  font-weight: 800;
}

/* FAQ */

.faq-list {
  max-width: 850px;
  margin: 42px auto 0;
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin-top: 12px;
  color: var(--text-soft);
}

/* Contact */

.contact-card {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(34px, 6vw, 64px);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-card h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.contact-card p:not(.eyebrow) {
  max-width: 650px;
  margin: 16px auto 0;
  color: var(--text-soft);
}

.contact-actions {
  justify-content: center;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.modal-box {
  position: relative;
  width: min(100% - 32px, 850px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  margin: 20px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-solid);
  box-shadow: var(--shadow);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid var(--border);
  background: var(--card-solid);
}

.modal-header h2 {
  margin-top: 8px;
  line-height: 1.1;
}

.modal-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  font-size: 1.7rem;
}

.modal-content {
  padding: 26px;
}

.tool-form {
  display: grid;
  gap: 16px;
}

.tool-form label {
  font-weight: 900;
}

.tool-form textarea,
.tool-form input,
.tool-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.tool-form textarea {
  min-height: 150px;
  resize: vertical;
}

.tool-form textarea:focus,
.tool-form input:focus {
  border-color: rgba(34, 197, 94, 0.5);
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-row button,
.copy-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  font-weight: 900;
}

.tool-row button.primary,
.copy-btn.primary {
  border-color: transparent;
  color: #03110a;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.result-box {
  padding: 16px;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-soft);
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-soft);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.92rem;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-25px) scale(1.06);
  }
}

/* Responsive */

@media (max-width: 1080px) {
  .tools-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 650px;
  }
}

@media (max-width: 820px) {
  :root {
    --header: 70px;
  }

  .section-padding {
    padding: 82px 0;
  }

  .nav-toggle {
    display: block;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .nav-links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: calc(var(--header) + 12px);
    display: grid;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--card-solid);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    justify-content: center;
  }

  .tools-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container,
  .navbar {
    width: min(100% - 28px, var(--container));
  }

  .tools-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 82px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .modal-box {
    margin-top: 10px;
    max-height: calc(100vh - 20px);
  }
}
.lookup-grid {
  display: grid;
  gap: 14px;
}

.lookup-note {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-soft);
  font-size: 0.94rem;
}

.link-list {
  display: grid;
  gap: 10px;
}

.lookup-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  font-weight: 900;
  transition: 0.25s ease;
}

.lookup-link:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
}

.lookup-link span {
  color: var(--primary);
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

.record-table th,
.record-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.record-table th {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
}

.record-table td {
  color: var(--text-soft);
  word-break: break-word;
}

.record-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #03110a;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 0.8rem;
  font-weight: 900;
}

.small-muted {
  color: var(--muted);
  font-size: 0.88rem;
}
/* Extra Network/Security Tools */

.tool-warning {
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-soft);
  font-size: 0.94rem;
}

.tool-success {
  padding: 14px 16px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.08);
  color: var(--text-soft);
  font-size: 0.94rem;
}

.tool-danger {
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--text-soft);
  font-size: 0.94rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.permission-grid {
  display: grid;
  grid-template-columns: 90px repeat(3, 1fr);
  gap: 10px;
  align-items: center;
}

.permission-grid strong {
  color: var(--text);
}

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 700;
}

.permission-grid input {
  width: auto;
  min-height: auto;
}

.lookup-links {
  display: grid;
  gap: 10px;
}

.lookup-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  font-weight: 900;
  transition: 0.25s ease;
}

.lookup-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
}

.lookup-links span {
  color: var(--primary);
}

.port-list {
  display: grid;
  gap: 10px;
}

.port-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
}

.port-item strong {
  color: var(--primary);
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-soft);
  font-weight: 700;
}

.checklist input {
  margin-top: 5px;
  width: auto;
  min-height: auto;
}

@media (max-width: 620px) {
  .mini-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }
}