/* ========================================
   BuildIQ Landing Page
   Dark navy theme with cyan accents
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy:        #0f172a;
  --navy-light:  #1e293b;
  --cyan:        #1ac8db;
  --cyan-hover:  #15b0c2;
  --cyan-light:  rgba(26, 200, 219, 0.08);
  --cyan-glow:   rgba(26, 200, 219, 0.15);
  --white:       #ffffff;
  --bg:          #f8fafc;
  --bg-alt:      #f1f5f9;
  --text:        #1e293b;
  --text-light:  #f8fafc;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow:      0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius:      8px;
  --radius-lg:   12px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w:       1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; background: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar-logo svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.navbar-logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--cyan);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 0.88rem;
  opacity: 1 !important;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background: var(--navy);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  max-width: 720px;
  position: relative;
}

.hero-badge {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(26, 200, 219, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--cyan);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.hero-stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ========================================
   Sections (generic)
   ======================================== */
.section {
  padding: 96px 0;
}

.section-light {
  background: var(--bg);
}

.section-dark {
  background: var(--navy);
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Tools Showcase
   ======================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.3s, transform 0.2s;
}

.tool-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tool-card-icon svg {
  width: 24px;
  height: 24px;
}

.tool-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   Free Tool Spotlight
   ======================================== */
.spotlight {
  text-align: center;
}

.spotlight .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.spotlight-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.spotlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(26, 200, 219, 0.1);
  border: 1px solid rgba(26, 200, 219, 0.2);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cyan);
}

.spotlight-chip svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   Pricing
   ======================================== */
.pricing-wrapper {
  display: flex;
  justify-content: center;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 40px rgba(26, 200, 219, 0.12);
}

.pricing-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1rem;
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ========================================
   Trust Section
   ======================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-item {
  text-align: center;
  padding: 32px 24px;
}

.trust-item svg {
  width: 40px;
  height: 40px;
  color: var(--cyan);
  margin-bottom: 16px;
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   Newsletter
   ======================================== */
.newsletter {
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-input:focus {
  border-color: var(--cyan);
}

.newsletter-btn {
  padding: 12px 24px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--cyan-hover);
}

.newsletter-status {
  font-size: 0.82rem;
  margin-top: 12px;
  min-height: 1.2em;
}

.newsletter-status-ok { color: #4ade80; }
.newsletter-status-err { color: #f87171; }

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
}

.footer-logo span {
  color: var(--cyan);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.75rem; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px 24px 24px; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1rem; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .mobile-toggle { display: block; }

  .hero { padding: 120px 0 64px; }
  .hero h1 { font-size: 2.25rem; }

  .section { padding: 64px 0; }
  .section-title { font-size: 1.75rem; }

  .tools-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; text-align: center; justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .pricing-card { padding: 32px 24px; }
}
