/* ════════════════════════════════════════════════════
   ENGINEER'S TOOLBOX V2 — Simplified, no animations
   Premium engineering SaaS · blueprint accents
   ════════════════════════════════════════════════════ */

/* ═══ DISABLE REVEAL ANIMATIONS on this page ═══ */
.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ═══ NAV LOGIN BUTTON ═══ */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
  white-space: nowrap;
}
.nav-login-btn:hover {
  background: var(--accent);
  color: #fff;
}
.nav-login-btn svg { flex-shrink: 0; }
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 900px) {
  .nav-right-group { display: none; }
}

/* ═══ LOGIN MODAL ═══ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.login-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.login-modal {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s ease;
}
.login-overlay.is-open .login-modal {
  transform: translateY(0);
}

.login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  cursor: pointer;
  border: none;
  transition: background .2s ease, color .2s ease;
}
.login-close:hover {
  background: var(--line);
  color: var(--ink);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.login-logo .brand-mark {
  width: 48px;
  height: 34px;
  display: inline-block;
  background-image: url("sf-bm-logo-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.login-header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 6px;
}
.login-header p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.login-body {}

.login-social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.login-social-btn:hover {
  border-color: var(--ink-muted);
  box-shadow: 0 4px 12px rgba(20,20,20,0.08);
}
.login-social-btn svg { flex-shrink: 0; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-email-btn {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .3s ease;
}
.login-email-btn:hover {
  background: var(--accent);
}

.login-note {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}

/* ═══ COMING SOON TOAST ═══ */
.coming-soon-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 40px -16px rgba(20,20,20,0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s ease;
  white-space: nowrap;
}
.coming-soon-toast svg {
  color: var(--accent);
  flex-shrink: 0;
}
.coming-soon-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
@media (max-width: 640px) {
  .coming-soon-toast {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(80px);
    white-space: normal;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 12px 18px;
  }
  .coming-soon-toast.is-visible {
    transform: translateX(0) translateY(0);
  }
}

/* ═══ HERO ═══ */
.tools-hero {
  padding: 14px 0 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 78px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.tools-hero-grid-bg {
  display: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,92,87,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,92,87,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.tools-hero-topbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.tools-hero-topbar .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.tools-hero-content {
  position: relative;
  z-index: 1;
}

.tools-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(14,92,87,0.06);
  border: 1px solid rgba(14,92,87,0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.tools-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -1px;
}
.tools-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.tools-hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-top: 20px;
}

.tools-hero-ctas {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tools-hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.tools-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tools-hero-stat strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.tools-hero-stat span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Hero visual — blueprint + floating cards (static, no animation) */
.tools-hero-visual {
  display: none;
}
.tools-hero-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.tools-hero-blueprint {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blueprint-svg {
  width: 100%;
  height: auto;
  max-width: 360px;
  opacity: 0.85;
}

.tools-hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px -12px rgba(20,20,20,0.12);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  z-index: 3;
  white-space: nowrap;
  /* NO animation — static cards */
}
.tools-hero-floating-card.fc-1 {
  top: 12%;
  right: 5%;
}
.tools-hero-floating-card.fc-2 {
  bottom: 28%;
  left: -4%;
}
.tools-hero-floating-card.fc-3 {
  bottom: 8%;
  right: 15%;
}

@media (max-width: 1000px) {
  .tools-hero {
    padding: 24px 0 50px;
    min-height: 0;
  }
}
@media (max-width: 640px) {
  .tools-hero { padding: 24px 0 40px; }
  .tools-hero h1 { font-size: clamp(30px, 9vw, 48px); }
  .tools-hero-stats { gap: 20px; flex-wrap: wrap; }
}

/* ═══ CATEGORY CARDS ═══ */
.tools-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .tools-category-grid { grid-template-columns: 1fr; } }

.tools-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
  display: flex;
  flex-direction: column;
}
.tools-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20,20,20,0.18);
}

.tools-cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.cat-structural::before { background: var(--accent-2); }
.cat-contractor::before { background: var(--accent); }
.cat-estimation::before { background: var(--accent-3); }

.tools-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.cat-structural .tools-cat-icon {
  background: rgba(14,92,87,0.08);
  color: var(--accent-2);
}
.cat-contractor .tools-cat-icon {
  background: var(--accent-soft);
  color: var(--accent);
}
.cat-estimation .tools-cat-icon {
  background: rgba(242,201,76,0.15);
  color: #B8860B;
}

.tools-cat-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.tools-cat-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tools-cat-sample-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tools-sample-item {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--bg-soft);
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.tools-cat-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tools-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all .3s ease;
}
.tools-cat-btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.tools-cat-btn.btn-alt {
  border-color: var(--line);
  color: var(--ink-soft);
}
.tools-cat-btn.btn-alt:hover {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #fff;
}

@media (max-width: 640px) {
  .tools-cat-card { padding: 28px 24px; }
  .tools-cat-card h3 { font-size: 20px; }
  .tools-cat-actions { flex-direction: column; }
  .tools-cat-btn { justify-content: center; }
}

/* ═══ EARLY ACCESS + LOGIN SECTION ═══ */
.tools-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .tools-login-grid { grid-template-columns: 1fr; } }

.tools-login-info {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}
.tools-login-info::before {
  content: "";
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(40px);
}
.tools-login-info h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}
.tools-login-info h3 em {
  font-style: italic;
  color: var(--accent-3);
}
.tools-login-info > p {
  color: #C5C0B5;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 28px;
  position: relative;
}

.tools-login-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.tools-login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(246,241,231,0.8);
}
.tools-login-feature svg { flex-shrink: 0; }

.tools-early-access-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.tools-early-access-card h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}
.tools-early-access-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.tools-ea-form .field { margin-bottom: 16px; }

@media (max-width: 640px) {
  .tools-login-info { padding: 32px 24px; }
  .tools-login-info h3 { font-size: 24px; }
  .tools-early-access-card { padding: 28px 22px; }
}
