/* Homepage-only presentation. Shared navigation and tool-page styles remain untouched. */

html[data-page="home"] .homepage-hero {
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  padding: clamp(36px, 4.5vh, 48px) 0 clamp(56px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

html[data-page="home"] .homepage-hero-logo {
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto 10px;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 16px);
  color: var(--primary);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: .1em;
  white-space: nowrap;
}

html[data-page="home"] .homepage-hero-logo::before {
  width: clamp(18px, 1.8vw, 24px);
  height: clamp(18px, 1.8vw, 24px);
  box-shadow: 0 0 14px rgba(0,229,255,.42);
  animation: none;
}

html[data-page="home"] .homepage-hero-logo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 8px;
  border-radius: 4px;
}

html[data-page="home"] .homepage-hero-promise {
  max-width: min(100%, 900px);
  margin: 0 auto;
  background: none;
  color: #ffffff;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

html[data-page="home"] .homepage-phishing-feature {
  width: min(100%, 900px);
  margin: 0 auto;
  margin-top: clamp(40px, 6vh, 64px);
}

html[data-page="home"] .homepage-toolkit-message {
  max-width: min(100%, 72ch);
  margin: 0 auto 8px;
  color: #b8cad8;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
}

html[data-page="home"] .homepage-toolkit-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(0,229,255,.5);
  text-decoration-thickness: .08em;
  text-underline-offset: .14em;
  transition: color .18s, text-decoration-color .18s;
}

html[data-page="home"] .homepage-toolkit-link:hover {
  color: #ffffff;
  text-decoration-color: var(--primary);
}

html[data-page="home"] .homepage-toolkit-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 3px;
}

html[data-page="home"] .homepage-phishing-box {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-page="home"] .homepage-analyzer-title {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto 8px;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: center;
  overflow-wrap: break-word;
  white-space: normal;
}

html[data-page="home"] .homepage-analyzer-name {
  color: #ffffff;
  font-weight: 800;
}

html[data-page="home"] .homepage-analyzer-description {
  color: var(--primary);
  font-weight: 500;
  font-style: normal;
}

html[data-page="home"] .homepage-phishing-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-page="home"] .homepage-phishing-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 86px;
  max-height: 220px;
  margin: 0;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid var(--control-border);
  border-radius: 10px;
  outline: 0;
  background: rgba(4,10,20,.86);
  color: var(--text);
  font: inherit;
  font-size: .98rem;
  line-height: 1.45;
  transition: border-color .18s, box-shadow .18s;
}

html[data-page="home"] .homepage-phishing-input::placeholder {
  color: #8ca0b2;
  opacity: 1;
}

html[data-page="home"] .homepage-phishing-input:focus-visible {
  border-color: rgba(0,229,255,.72);
  box-shadow: 0 0 0 3px rgba(0,229,255,.12);
}

html[data-page="home"] .homepage-phishing-cta {
  display: inline-flex;
  min-width: 150px;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 10px 22px;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,229,255,.72);
  border-radius: 10px;
  background: #0a7182;
  color: #ffffff;
  font: inherit;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  transition: background .18s, border-color .18s, transform .15s;
}

html[data-page="home"] .homepage-phishing-cta:hover {
  border-color: var(--primary);
  background: #087f91;
  transform: translateY(-1px);
}

html[data-page="home"] .homepage-phishing-cta:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

html[data-page="home"] .homepage-privacy-notice {
  max-width: 68ch;
  margin: 8px auto 0;
  color: #8ea3b5;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Homepage-only primary nav CTA. Tool-page navigation is intentionally untouched. */
html[data-page="home"] #mainNav .nav-cta {
  min-height: 48px;
  padding: 11px 20px !important;
  border-color: rgba(0,229,255,.78);
  background: linear-gradient(135deg, #0a7182, #075b68) !important;
  color: #ffffff !important;
  font-size: 1.18rem;
  font-weight: 850;
  box-shadow: 0 6px 18px rgba(0,0,0,.24), 0 0 18px rgba(0,229,255,.11);
}

html[data-page="home"] #mainNav .nav-cta:hover {
  background: linear-gradient(135deg, #087f91, #076878) !important;
  color: #ffffff !important;
}

html[data-page="home"] .homepage-how-it-works {
  padding: 44px 0 52px;
  border-top: 1px solid var(--border);
}

html[data-page="home"] .homepage-section-title {
  color: #ffffff;
  font-size: clamp(1.65rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
}

html[data-page="home"] .homepage-how-it-works > .homepage-section-title {
  margin-bottom: 28px;
  text-align: center;
}

html[data-page="home"] .homepage-how-it-works .steps {
  width: 100%;
  max-width: 1080px;
  gap: 48px;
}

html[data-page="home"] .homepage-how-it-works .step-num {
  color: #ffffff;
  font-size: 1.4rem;
}

html[data-page="home"] .homepage-how-it-works .step p {
  margin-top: 6px;
  color: #b8cad8;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.55;
}

html[data-page="home"] .homepage-content-section {
  padding: 0 0 52px;
}

html[data-page="home"] .homepage-section-container {
  width: min(calc(100% - 48px), 760px);
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 0;
}

html[data-page="home"] .homepage-content-section .homepage-section-title {
  margin-bottom: 1rem;
  padding-left: 0;
  border-left: 0;
  text-align: center;
}

html[data-page="home"] .homepage-content-section p {
  width: 100%;
  max-width: 72ch;
  margin: 0 auto .8rem;
  color: #a9bdcc;
  font-size: 1.08rem;
  line-height: 1.85;
  text-align: left;
}

html[data-page="home"] .homepage-faq .faq-item {
  width: 100%;
  padding: .9rem 0;
  text-align: left;
}

html[data-page="home"] .homepage-faq .faq-item strong {
  color: #e8eef5;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

html[data-page="home"] .homepage-faq .faq-item p {
  max-width: 72ch;
  margin-top: 6px;
  color: #a9bdcc;
  font-size: 1.02rem;
  line-height: 1.75;
}

html[data-page="home"] .homepage-tools-section {
  padding: 40px 0 40px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}

html[data-page="home"] .homepage-tools-section .tool-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

html[data-page="home"] .homepage-tools-section .tool-card p {
  font-size: .95rem;
  line-height: 1.6;
}

html[data-page="home"] .homepage-tools-section .tool-btn {
  font-size: 1rem;
  background: #0A7182;
  color: #ffffff;
  text-decoration: none;
  border-color: rgba(0,229,255,.28);
  text-shadow: none;
  box-shadow: none;
}

html[data-page="home"] .homepage-tools-section .tool-card {
  padding: 20px 18px;
}

html[data-page="home"] .homepage-tools-section .tool-card::before {
  display: none;
}

html[data-page="home"] .homepage-tools-section .tool-card::after {
  background: var(--primary);
  transition: opacity .2s;
}

html[data-page="home"] .homepage-tools-section .tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,229,255,.3);
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
}

html[data-page="home"] .homepage-tools-section .tool-card:hover::after {
  opacity: .35;
}

html[data-page="home"] .homepage-tools-section .tool-icon-wrap {
  background: rgba(0,229,255,.09);
  border-color: rgba(0,229,255,.16);
}

html[data-page="home"] .homepage-tools-section .tool-card:hover .tool-icon-wrap {
  box-shadow: 0 0 10px rgba(0,229,255,.12);
}

html[data-page="home"] .homepage-tools-section .tool-btn:hover {
  background: #0B7889;
  color: #ffffff;
  border-color: rgba(0,229,255,.4);
  box-shadow: none;
  transform: translateY(-1px);
}

html[data-page="home"] .homepage-tools-section .tools-grid > a:focus-visible,
html[data-page="home"] .homepage-tools-section .tool-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

html[data-page="home"] .homepage-footer {
  margin-top: 0;
  padding: 30px 0;
}

html[data-page="home"] .homepage-footer .footer-inner {
  gap: 18px;
}

html[data-page="home"] .homepage-footer .footer-logo {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

html[data-page="home"] .homepage-footer .footer-legal,
html[data-page="home"] .homepage-footer .footer-links {
  gap: 5px;
}

html[data-page="home"] .homepage-footer .footer-legal-head {
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}

html[data-page="home"] .homepage-footer .footer-legal a,
html[data-page="home"] .homepage-footer .footer-links a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.65;
}

html[data-page="home"] .homepage-footer .footer-copy {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.6;
}

@media (min-width: 681px) {
  html[data-page="home"] .homepage-how-it-works {
    position: relative;
    left: 50%;
    width: min(1080px, calc(100vw - 48px));
    transform: translateX(-50%);
  }
}

@media (min-width: 960px) {
  html[data-page="home"] .homepage-tools-section .tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 680px) {

  html[data-page="home"] #mainNav .nav-cta {
    width: 100%;
    min-height: 48px;
    margin: 5px 0 0;
    padding: 13px 18px !important;
    font-size: 1.16rem;
  }

  html[data-page="home"] .homepage-how-it-works {
    padding: 40px 0 44px;
  }

  html[data-page="home"] .homepage-how-it-works .steps {
    gap: 30px;
  }

  html[data-page="home"] .homepage-content-section {
    padding-bottom: 44px;
  }

  html[data-page="home"] .homepage-content-section p,
  html[data-page="home"] .homepage-faq .faq-item p {
    font-size: 1rem;
  }

  html[data-page="home"] .homepage-tools-section {
    padding: 36px 0 32px;
  }

  html[data-page="home"] .homepage-tools-section .tool-card {
    padding: 16px 14px;
  }

  html[data-page="home"] .homepage-tools-section .tool-card h3 {
    font-size: 1rem;
  }

  html[data-page="home"] .homepage-footer .footer-inner {
    gap: 14px;
  }
}

@media (max-width: 840px) {
  html[data-page="home"] .homepage-phishing-feature {
    margin-top: 32px;
  }

  html[data-page="home"] .homepage-hero {
    min-height: 0;
    padding: 28px 0 36px;
    justify-content: flex-start;
  }

  html[data-page="home"] .homepage-hero-logo {
    gap: 9px;
    margin-bottom: 10px;
    font-size: clamp(2.35rem, 8vw, 2.9rem);
    letter-spacing: .07em;
  }

  html[data-page="home"] .homepage-hero-logo::before {
    width: clamp(18px, 5.5vw, 22px);
    height: clamp(18px, 5.5vw, 22px);
  }

  html[data-page="home"] .homepage-toolkit-message {
    max-width: 350px;
    margin-bottom: 8px;
    font-size: clamp(1.02rem, 3.5vw, 1.18rem);
    line-height: 1.4;
  }

  html[data-page="home"] .homepage-hero-promise {
    max-width: 620px;
    margin-bottom: 0;
    font-size: clamp(1.55rem, 5vw, 1.95rem);
    line-height: 1.18;
  }

  html[data-page="home"] .homepage-analyzer-title {
    max-width: 620px;
    margin-bottom: 8px;
    font-size: clamp(.98rem, 4.2vw, 1.15rem);
    line-height: 1.3;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  html[data-page="home"] .homepage-analyzer-title {
    max-width: 350px;
  }

  html[data-page="home"] .homepage-phishing-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-page="home"] .homepage-phishing-input {
    min-height: 86px;
    padding: 12px;
    font-size: .95rem;
  }

  html[data-page="home"] .homepage-phishing-cta {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  html[data-page="home"] .homepage-privacy-notice {
    margin-top: 8px;
    font-size: .82rem;
  }
}

@media (max-width: 420px) {
  html[data-page="home"] .homepage-tools-section .tools-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  html[data-page="home"] .homepage-tools-section .tool-card p {
    display: block;
    margin-bottom: 12px;
    font-size: .95rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-page="home"] .homepage-tools-section .tool-card,
  html[data-page="home"] .homepage-tools-section .tool-card::before,
  html[data-page="home"] .homepage-tools-section .tool-card::after,
  html[data-page="home"] .homepage-tools-section .tool-btn {
    transition: none;
  }
}
