/* ==========================================================================
   ToolsStudio.in — High-End Minimalist Under Construction Stylesheet
   Design Philosophy: Sharp Corners (6px), High Information Density, Linear/Vercel Aesthetic
   ========================================================================== */

:root {
  /* Brand Palette */
  --brand-navy: #061947;
  --brand-blue: #2563EB;
  --brand-blue-hover: #1D4ED8;
  --brand-purple: #6B26D9;
  --brand-gradient: linear-gradient(135deg, #2563EB 0%, #4F46E5 60%, #6B26D9 100%);

  /* UI Backgrounds */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #F8FAFC;

  /* Borders & Sharp Corner Radius */
  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;
  --border-focus: #2563EB;
  --radius: 6px;
  --radius-sm: 4px;

  /* Typography */
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  --text-subtle: #94A3B8;

  --font-brand: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-ui);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  overflow-x: hidden;
}

/* Background Engineering Grid Pattern (Linear/Vercel Aesthetic) */
.bg-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}

/* Ambient Background Lighting */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.6;
}

.glow-top {
  width: 650px;
  height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-center {
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(107, 38, 217, 0.06) 0%, transparent 70%);
  top: 45%;
  right: -100px;
}

/* ==========================================================================
   Header: Minimal Brand Navigation Bar
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 56px;
  display: flex;
  align-items: center;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease;
}

.brand-link:hover .nav-logo-icon {
  transform: scale(1.08);
}

.nav-brand-title {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-dark {
  color: var(--brand-navy);
}

.brand-accent {
  color: var(--brand-blue);
}

.nav-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
}

.indicator-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563EB;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   Page Main Container
   ========================================================================== */
.page-container {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: var(--radius);
  color: #1E40AF;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.badge-icon {
  color: var(--brand-blue);
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.accent-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 2.25rem;
}

.hero-subtitle strong {
  color: var(--brand-navy);
  font-weight: 600;
}

/* Waitlist Form Box */
.waitlist-box {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe-form {
  width: 100%;
  display: flex;
  gap: 0.5rem;
}

.input-container {
  position: relative;
  flex: 1;
}

.mail-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.input-container input {
  width: 100%;
  padding: 0.75rem 2.4rem 0.75rem 2.6rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.input-container input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-shortcut-hint {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  pointer-events: none;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  background: var(--brand-blue);
  color: #FFFFFF;
  border: 1px solid var(--brand-blue);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
}

.submit-button:hover {
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.form-feedback {
  font-size: 0.86rem;
  min-height: 1.4rem;
  margin-top: 0.6rem;
  font-weight: 500;
}

.form-feedback.success {
  color: #15803D;
  font-weight: 600;
}

.form-feedback.error {
  color: #DC2626;
}

.waitlist-footnote {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.lock-icon {
  color: var(--text-subtle);
}

/* ==========================================================================
   Architecture & Privacy Metrics
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

.metric-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.metric-title {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.metric-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Planned Tools Showcase
   ========================================================================== */
.showcase-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  display: block;
  margin-bottom: 0.25rem;
}

.showcase-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

.status-stage-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-blue {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #2563EB;
}

.icon-purple {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  color: #7C3AED;
}

.icon-indigo {
  background: #EEF2FF;
  border: 1px solid #E0E7FF;
  color: #4F46E5;
}

.icon-emerald {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
}

.tool-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.tool-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.45rem;
}

.tool-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tool-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.85rem;
  border-top: 1px solid #F1F5F9;
}

.tag-item {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Contact & Inquiries Card
   ========================================================================== */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem 1.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}

.contact-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-title {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.2rem;
}

.contact-card-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  padding: 0.55rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.contact-action-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  color: var(--brand-blue-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: #FFFFFF;
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-brand-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  width: 18px;
  height: 18px;
}

.footer-brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--brand-navy);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--brand-blue);
}

/* ==========================================================================
   Home-Top-Leaderboard Paired Ad Slots (Compact, Small Height & Width, Zero CLS)
   ========================================================================== */
.ad-pair-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ad-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.ad-compact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem 0.45rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ad-compact-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.ad-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  padding: 0 0.1rem;
  line-height: 1;
}

.ad-label-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  user-select: none;
}

.ad-label-network {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--text-subtle);
  opacity: 0.8;
}

.ad-slot-frame {
  height: 60px;
  min-height: 50px;
  max-height: 65px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

/* Ensure AdSense takes proper responsive dimensions */
.ad-slot-frame .adsbygoogle {
  display: inline-block !important;
  width: 100% !important;
  height: 60px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Dev environment placeholder indicator (for testing when AdSense is unfilled or local) */
.ad-dev-preview {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.25rem 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
  width: 100%;
}

.ad-dev-preview .dev-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
}

.ad-dev-preview .dev-preview-desc {
  font-size: 0.62rem;
  color: var(--text-dim);
}

/* Gracefully handle unfilled status in production while avoiding blank boxes */
.ad-compact-card.is-unfilled:not(.is-localhost) {
  display: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 860px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .ad-pair-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .page-container {
    padding: 2rem 1rem 3.5rem 1rem;
    gap: 2.5rem;
  }
  .subscribe-form {
    flex-direction: column;
  }
  .submit-button {
    width: 100%;
  }
  .nav-status-indicator {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .ad-slot-frame {
    min-height: 55px;
  }
  .ad-compact-card {
    padding: 0.35rem 0.5rem 0.45rem;
  }
}
