/* =================================================================================================
   CSS Reset & Base Styles
   ================================================================================================= */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2d5f3f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e3f2a;
}

/* =================================================================================================
   Layout & Container
   ================================================================================================= */

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

.section {
  padding: 60px 0;
  scroll-margin-top: 80px; /* Offset for sticky header when navigating to anchors */
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.section-intro {
  font-size: 1.125rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #4a4a4a;
}

/* =================================================================================================
   Header & Navigation
   ================================================================================================= */

.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d5f3f;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #4a4a4a;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #2d5f3f;
}

.nav-link-login {
  padding: 8px 20px;
  background: #2d5f3f;
  color: #ffffff;
  border-radius: 5px;
}

.nav-link-login:hover {
  background: #1e3f2a;
  color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #2d5f3f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* =================================================================================================
   Hero Section
   ================================================================================================= */

.hero {
  background: linear-gradient(135deg, #f8fdf9 0%, #e8f5eb 100%);
  padding: 80px 0 60px;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4a4a4a;
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* =================================================================================================
   Buttons
   ================================================================================================= */

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #2d5f3f;
  color: #ffffff;
  border-color: #2d5f3f;
}

.btn-primary:hover {
  background: #1e3f2a;
  border-color: #1e3f2a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #2d5f3f;
  border-color: #2d5f3f;
}

.btn-secondary:hover {
  background: #2d5f3f;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 95, 63, 0.2);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* =================================================================================================
   Problem Section
   ================================================================================================= */

.section-problem {
  background: #ffffff;
}

.why-callout {
  max-width: 900px;
  margin: 50px auto 0;
  padding: 30px 35px;
  background: #fff9e6;
  border-left: 5px solid #f4b942;
  border-radius: 6px;
}

.why-callout h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.why-callout p {
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 12px;
}

.why-callout p:last-child {
  margin-bottom: 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.problem-item {
  padding: 30px;
  background: #f8fdf9;
  border-radius: 8px;
  border-left: 4px solid #2d5f3f;
}

.problem-item h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.problem-item p {
  color: #4a4a4a;
  line-height: 1.7;
}

/* =================================================================================================
   Solution Section
   ================================================================================================= */

.section-solution {
  background: #f9f9f9;
}

.solution-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tier {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tier h3 {
  font-size: 1.75rem;
  color: #2d5f3f;
  margin-bottom: 15px;
}

.tier p {
  color: #4a4a4a;
  margin-bottom: 20px;
}

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

.tier ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: #4a4a4a;
}

.tier ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2d5f3f;
  font-weight: bold;
  font-size: 1.2rem;
}

.tier-enterprise {
  border: 2px solid #2d5f3f;
}

.coming-soon-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d5f3f;
  background: #e8f5eb;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =================================================================================================
   Features Section
   ================================================================================================= */

.section-features {
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.feature {
  padding: 25px;
}

.feature h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.feature p {
  color: #4a4a4a;
  line-height: 1.7;
}

/* =================================================================================================
   How It Works Section
   ================================================================================================= */

.section-how-it-works {
  background: #f9f9f9;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.step {
  text-align: center;
  padding: 10px 20px;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2d5f3f;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.step p {
  color: #4a4a4a;
  line-height: 1.7;
  font-size: 0.975rem;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* =================================================================================================
   Screenshots Section
   ================================================================================================= */

.section-screenshots {
  background: #f8fdf9;
}

.screenshot-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 70px;
  align-items: center;
  margin-top: 70px;
}

.screenshot-row-reverse {
  grid-template-columns: 1.6fr 1fr;
}

.screenshot-row-reverse .screenshot-text {
  order: 2;
}

.screenshot-row-reverse .screenshot-frame {
  order: 1;
}

.screenshot-text h3 {
  font-size: 1.6rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.screenshot-text p {
  color: #4a4a4a;
  font-size: 1.05rem;
  line-height: 1.8;
}

.screenshot-frame {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.screenshot-bar {
  background: #f0f0f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e5e5e5;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.screenshot-frame img {
  width: 100%;
  display: block;
}

/* =================================================================================================
   Demo Section
   ================================================================================================= */

.section-demo {
  background: linear-gradient(135deg, #2d5f3f 0%, #1e3f2a 100%);
  color: #ffffff;
}

.section-demo .section-title {
  color: #ffffff;
}

.demo-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Match container margins on smaller screens */
@media (max-width: 1000px) {
  .demo-content {
    max-width: none;
    padding: 0 25px;
  }
}

.demo-text h3 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.demo-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
}

.demo-text ul {
  list-style: none;
  padding: 20px 0;
  margin-bottom: 25px;
}

.demo-text ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
}

.demo-text ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.demo-text .btn-primary {
  background: #ffffff;
  color: #2d5f3f;
  border-color: #ffffff;
}

.demo-text .btn-primary:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #1e3f2a;
}

.demo-note {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* =================================================================================================
   Signup Section
   ================================================================================================= */

.section-signup {
  background: #f8fdf9;
}

.signup-form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2d5f3f;
}

.form-group select {
  cursor: pointer;
  background-color: #ffffff;
}

.signup-form .btn-large {
  width: 100%;
  margin-top: 10px;
}

.form-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

.form-status {
  text-align: center;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  display: none;
}

.form-status:not(:empty) {
  display: block;
}

.form-status-error {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.form-status-success {
  background: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

.signup-success {
  max-width: 600px;
  margin: 0 auto;
  background: #e8f5eb;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #2d5f3f;
}

.signup-success h3 {
  font-size: 2rem;
  color: #2d5f3f;
  margin-bottom: 15px;
}

.signup-success p {
  font-size: 1.1rem;
  color: #4a4a4a;
  line-height: 1.7;
}

/* =================================================================================================
   Footer
   ================================================================================================= */

.footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

/* Footer logo removed - needs treatment for dark background */
/* .footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
} */

.footer-brand p {
  color: #d0d0d0;
  line-height: 1.7;
}

.footer-brand a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-brand a:hover {
  color: #e8e8e8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 1.1rem;
}

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

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

.footer-section a {
  color: #b0b0b0;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #c0c0c0;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #e8e8e8;
}

/* =================================================================================================
   Responsive Design
   ================================================================================================= */

/* Desktop: Ensure hamburger is hidden and nav is visible */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-link {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    gap: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 15px 10px;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-link-login {
    margin-top: 10px;
    text-align: center;
    border-bottom: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .signup-form {
    padding: 30px 20px;
  }

  .solution-tiers,
  .features-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-row,
  .screenshot-row-reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
  }

  .screenshot-row-reverse .screenshot-text,
  .screenshot-row-reverse .screenshot-frame {
    order: unset;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 50px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }
}

/* =================================================================================================
   Tools Subnav
   ================================================================================================= */

.subnav {
  background: #2d5f3f;
  position: sticky;
  top: 71px; /* sits flush below the main sticky header */
  z-index: 99;
}

.subnav-links {
  display: flex;
}

.subnav-link {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 22px;
  transition: color 0.2s ease, background 0.2s ease;
}

.subnav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.subnav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
}

.subnav-label-short {
  display: none;
}

@media (max-width: 774px) {
  .subnav-label-full {
    display: none;
  }
  .subnav-label-short {
    display: inline;
  }
}

/* Tools content panels */

.tools-panel {
  display: none;
  min-height: 500px;
  padding: 60px 0;
}

.tools-panel.active {
  display: block;
}

/* Tool layout: two-column */
.tool-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.tool-main {
  flex: 1;
  min-width: 0;
}

.tool-sidebar {
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .tool-layout {
    flex-direction: column;
  }
  .tool-sidebar {
    width: 100%;
  }
}

/* Tool cards */
.tool-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tool-sidebar-card {
  background: #f8fdf9;
  border: 1px solid #dce8de;
  border-radius: 8px;
  padding: 24px;
}

.tool-sidebar-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2d5f3f;
  margin-bottom: 10px;
  margin-top: 20px;
}

.tool-sidebar-card h3:first-child {
  margin-top: 0;
}

.tool-sidebar-card p,
.tool-sidebar-card li {
  font-size: 0.875rem;
  color: #4a4a4a;
  line-height: 1.7;
}

.tool-sidebar-card ul {
  padding-left: 18px;
  margin: 0;
}

/* Tool form */
.tool-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.tool-form input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.tool-form input[type="text"]:focus {
  outline: none;
  border-color: #2d5f3f;
  box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
}

.tool-form input[type="text"].is-invalid {
  border-color: #dc3545;
}

.tool-form .field-hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 6px;
}

.tool-form .field-error {
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 6px;
  display: none;
}

.tool-form .field-error.visible {
  display: block;
}

.tool-form .btn {
  margin-top: 16px;
}

/* Tool loading spinner */
.tool-loading {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: #666;
  font-size: 0.9rem;
}

.tool-loading.visible {
  display: flex;
}

.tool-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #e5e5e5;
  border-top-color: #2d5f3f;
  border-radius: 50%;
  animation: tool-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes tool-spin {
  to { transform: rotate(360deg); }
}

/* Tool results */
.tool-results {
  margin-top: 28px;
  border-top: 1px solid #e5e5e5;
  padding-top: 24px;
  display: none;
}

.tool-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tool-results-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
}

.tool-results-meta {
  font-size: 0.8rem;
  color: #666;
}

/* Result table */
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.result-table td {
  padding: 8px 0;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0;
}

.result-table td:first-child {
  font-weight: 600;
  color: #4a4a4a;
  width: 120px;
  padding-right: 12px;
  white-space: nowrap;
}

.result-table td .mono {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  font-size: 0.875rem;
}

/* Hostname result items */
.hostname-item {
  background: #e8f5eb;
  border: 1px solid #b8dfc0;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  font-size: 0.875rem;
  color: #1a1a1a;
}

.hostname-item a {
  color: #2d5f3f;
  text-decoration: none;
}

.hostname-item a:hover {
  text-decoration: underline;
}

/* Lookup history tables */
.lookup-history {
  margin-top: 24px;
}

.lookup-history-intro {
  font-size: 0.8125rem;
  color: #4a4a4a;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.lookup-history-tables {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lookup-history-block h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a4a4a;
  margin: 0 0 8px 0;
}

.lookup-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.lookup-history-table th {
  text-align: left;
  padding: 5px 8px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #6b6b6b;
  border-bottom: 2px solid #e5e5e5;
}

.lookup-history-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}

.lookup-history-table td:first-child {
  width: 28%;
}

.lookup-history-table td:nth-child(3) {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #4a4a4a;
  font-size: 0.75rem;
  width: 18%;
}

.lookup-history-table td a {
  color: #2d5f3f;
  text-decoration: none;
  cursor: pointer;
}

.lookup-history-table td a:hover {
  text-decoration: underline;
}

/* Whois fields */
.whois-field {
  padding: 10px 14px;
  background: #f8f9fa;
  border-left: 3px solid #2d5f3f;
  margin-bottom: 10px;
  border-radius: 3px;
}

.whois-field-label {
  font-weight: 600;
  color: #4a4a4a;
  font-size: 0.8rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.whois-field-value {
  color: #1a1a1a;
  font-size: 0.875rem;
}

.whois-field-value code {
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  font-size: 0.8rem;
}

/* Tool alerts */
.tool-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.tool-alert-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #664d03;
}

.tool-alert-info {
  background: #e8f5eb;
  border: 1px solid #b8dfc0;
  color: #1a4a27;
}

.tool-note {
  background: #cff4fc;
  border: 1px solid #86cfda;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #055160;
  margin-top: 16px;
}

/* Badges */
.tool-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tool-badge-cached {
  background: #e9ecef;
  color: #495057;
}

.tool-badge-fresh {
  background: #d1e7dd;
  color: #0f5132;
}

/* Refresh link */
.tool-refresh-link {
  color: #2d5f3f;
  text-decoration: none;
  font-size: 0.8rem;
  margin-left: 8px;
}

.tool-refresh-link:hover {
  text-decoration: underline;
}

/* Tool panel heading */
.tool-heading {
  margin-bottom: 32px;
}

.tool-heading h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.tool-heading p {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

/* =================================================================================================
   Login Page
   ================================================================================================= */

.section-login {
  background: linear-gradient(135deg, #f8fdf9 0%, #e8f5eb 100%);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.login-container {
  max-width: 460px;
  margin: 0 auto;
  background: #ffffff;
  padding: 50px 45px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-header h1 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.login-header p {
  color: #666;
  font-size: 1rem;
}

.login-form {
  margin-bottom: 25px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #4a4a4a;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.forgot-link {
  color: #2d5f3f;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-form .btn-large {
  width: 100%;
}

.login-footer {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #e5e5e5;
}

.login-footer p {
  color: #666;
  font-size: 0.95rem;
}

.login-footer a {
  color: #2d5f3f;
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* =================================================================================================
   About & Legal Pages
   ================================================================================================= */

.section-about,
.section-legal {
  background: #ffffff;
  padding: 60px 0 50px;
}

.about-content,
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p,
.legal-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #4a4a4a;
}

.legal-content h3 {
  font-size: 1.5rem;
  color: #2d5f3f;
  margin-top: 40px;
  margin-bottom: 15px;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content ul {
  margin-bottom: 20px;
  margin-left: 20px;
}

.legal-content ul li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: #4a4a4a;
}

.legal-content a {
  color: #2d5f3f;
  text-decoration: underline;
}

.legal-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e5e5e5;
  font-weight: 600;
  color: #1a1a1a;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* =================================================================================================
   Utility Classes
   ================================================================================================= */

.anchor {
  display: block;
  position: relative;
  visibility: hidden;
  scroll-margin-top: 80px; /* Offset for sticky header */
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =================================================================================================
   FAQ / Reference Section (tools pages)
   ================================================================================================= */

.section-faq {
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.faq-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2d5f3f;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.faq-answer p {
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: #1a1a1a;
}

.faq-answer code {
  background: #f0f4f1;
  color: #1e3f2a;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  font-size: 0.875em;
}

.faq-answer pre {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 12px 0 14px;
  color: #1a1a1a;
}

/* =================================================================================================
   Related Tools Section (tool pages)
   ================================================================================================= */

.section-related-tools {
  background: #f9f9f9;
  border-top: 1px solid #e5e5e5;
  padding: 48px 0;
}

.section-related-tools h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-tools-grid a {
  display: block;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.related-tools-grid a:hover {
  border-color: #2d5f3f;
  box-shadow: 0 4px 12px rgba(45, 95, 63, 0.15);
  transform: translateY(-2px);
  color: inherit;
}

.related-tools-grid a strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d5f3f;
  margin-bottom: 4px;
}

.related-tools-grid a span {
  display: block;
  font-size: 0.825rem;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .related-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .related-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================================================================
   Launch / Early Access Offer Styles
   ================================================================================================= */

/* Small pill above hero H1 */
.launch-pill {
  display: inline-block;
  background: #fff8e6;
  color: #7a5500;
  border: 1px solid #e8c84a;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

/* Badge used on tier card headings */
.launch-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #7a5500;
  background: #fff8e6;
  border: 1px solid #e8c84a;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 10px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Upgrade reveal: old text struckthrough, new text below */
.tier ul li.tier-upgrade {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.upgrade-old {
  text-decoration: line-through;
  color: #aaa;
  font-size: 0.88em;
}

.upgrade-new {
  font-weight: 700;
  color: #2d5f3f;
}

/* Small inline bonus badge */
.bonus-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #2d5f3f;
  background: #e8f5eb;
  border: 1px solid #b8dfc0;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Footer note inside launch tier card */
.tier-launch-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #c8e0ce;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d5f3f;
  text-align: center;
  font-style: italic;
  margin-bottom: 0;
}

/* Visually de-emphasised paid tier during launch */
.tier.tier-dimmed {
  opacity: 0.65;
  box-shadow: none;
  border: 1px solid #e5e5e5;
}

.tier.tier-dimmed h3 {
  color: #777;
}

.tier.tier-dimmed p {
  font-size: 0.925rem;
}

/* =================================================================================================
   Blog Post Styles
   ================================================================================================= */

.blog-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2d5f3f;
  margin-bottom: 16px;
}

.blog-label a {
  color: inherit;
  text-decoration: none;
}

.blog-label a:hover {
  text-decoration: underline;
}

.blog-meta {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.blog-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 2rem;
  max-width: 800px;
}

.section-blog-post h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.3;
  max-width: 800px;
}

.section-blog-post p {
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 800px;
}

.section-blog-post p:last-child {
  margin-bottom: 0;
}

.section-blog-post strong {
  color: #1a1a1a;
}

.section-blog-post code {
  background: #f0f4f1;
  color: #1e3f2a;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  font-size: 0.875em;
}

.section-blog-post hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2.5rem 0;
  max-width: 800px;
}

.blog-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
  font-style: italic;
  max-width: 800px;
}

.section-blog-post figure {
  margin: 2rem 0;
  max-width: 800px;
}

.section-blog-post figure img {
  width: 100%;
  height: auto;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: block;
}

.section-blog-post figcaption {
  font-size: 0.83rem;
  color: #6c757d;
  margin-top: 8px;
  line-height: 1.5;
}

.section-blog-post pre {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 12px 0 14px;
  color: #1a1a1a;
  max-width: 800px;
}

.section-blog-post pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Blog index listing */
.blog-listing {
  margin-top: 2rem;
}

.blog-card {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border, #dee2e6);
}

.blog-card:last-child {
  border-bottom: none;
}

.blog-card h2 {
  margin-bottom: 0.25rem;
}

.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover {
  text-decoration: underline;
}

/* =================================================================================================
   Traceroute Tool
   ================================================================================================= */

.traceroute-status {
  font-size: 0.875rem;
  color: #555;
  font-style: italic;
  margin: 12px 0 10px;
}

.traceroute-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.traceroute-badge-aws {
  display: inline-block;
  background: #f0a030;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
  line-height: 1.4;
}
