/*
Theme Name: IDA-Home
Theme URI: https://intuitivedataanalytics.com
Description: Premium scroll-driven particle narrative for Intuitive Data Analytics.
Version: 4.0.3
*/

/* ===== DESIGN SYSTEM ===== */
:root {
  --bg: #F1F5F9;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --accent: #0C36B4;
  --accent-light: #E0E7FF;
  --emphasize: #FEC301;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --header-height: 64px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font); color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(12,54,180,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 95%, rgba(254,195,1,0.10) 0%, transparent 60%),
    url('assets/img/Landing-3-scaled.webp');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top center;
  background-size: 100% auto;
  line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
@media (max-width: 1024px) {
  #particle-canvas { opacity: 0.5; }
}
@media (max-width: 768px) {
  #particle-canvas { display: none; }
}

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(241,245,249,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2.5rem; }
.main-nav a { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--accent); }
.nav-cta .btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.85rem; }
.nav-submenu {
  display: none; position: absolute; top: calc(100% + 8px); left: -0.75rem;
  background: rgba(241,245,249,0.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem 0; min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  z-index: 200;
}
.nav-submenu a {
  display: block; padding: 0.5rem 1rem;
  font-size: 0.85rem; color: var(--text-secondary) !important;
  transition: all 0.2s ease;
}
.nav-submenu a:hover { background: rgba(12,54,180,0.06); color: var(--accent) !important; }
.nav-dropdown:hover .nav-submenu,
.nav-dropdown.open .nav-submenu { display: block; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; font-size: 0.9375rem; font-weight: 600;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(12,54,180,0.25); }
.btn-primary:hover { background: #0A2E9A; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(12,54,180,0.35); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-emphasize { background: var(--emphasize); color: #0F172A; box-shadow: 0 4px 16px rgba(254,195,1,0.3); }
.btn-emphasize:hover { background: #E5AF00; box-shadow: 0 8px 24px rgba(254,195,1,0.45); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* ===== SECTIONS ===== */
.scroll-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; padding: 4rem 0;
}
.section-inner { text-align: center; max-width: none; margin: 0; }
.hero .section-inner { text-align: left; max-width: var(--max-width); margin: 0 auto; padding-left: 2rem; }

/* Section label */
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: #B88A00;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: ''; display: inline-block; flex-shrink: 0;
  width: 7px; height: 7px;
  background: #B88A00;
  transform: rotate(45deg);
  position: relative; top: -1px;
}

/* Headings */
h1 { font-size: clamp(2.75rem, 5.5vw, 4.5rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0C36B4, #3B82F6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; }
.hero .container { max-width: none; width: 100%; margin: 0; padding: 0; }
.hero-bullets { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.hero-bullets li { font-size: 1rem; color: var(--text-secondary); padding: 0.35rem 0; padding-left: 1.25rem; position: relative; }
.hero-bullets li::before { content: ''; position: absolute; left: 0; top: 0.85rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-left .hero-actions { justify-content: flex-start; }

/* ===== SOLUTIONS ===== */
.solutions-image { width: 100%; }
.solutions-image img { width: 100%; height: auto; display: block; }

/* ===== FEATURE CARDS (solutions / capabilities) ===== */
.card-grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.cap-split { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: center; }
.cap-particle-zone { min-height: 400px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--emphasize); border-radius: var(--radius);
  border: none;
  padding: 1.75rem 1.75rem 1.75rem 2rem; text-align: left;
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 4px 16px rgba(254,195,1,0.25);
}
.card::before { display: none; }
.card:hover {
  background: #F5B800;
  box-shadow: 0 8px 30px rgba(254,195,1,0.40), 0 4px 12px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.card-icon {
  width: 22px; height: 22px; color: #3E2504;
  margin-bottom: 0.75rem; flex-shrink: 0;
  opacity: 1;
}
.card-icon svg { width: 100%; height: 100%; }
.card h4 { font-size: 1.05rem; font-weight: 1000; margin-bottom: 0.5rem; color: #3E2504; }
.card p { font-size: 0.9rem; color: #5C3D0E; margin: 0; line-height: 1.6; opacity: 1; }

/* ===== COMPARISON TABLE ===== */
.compare-wrap { margin: 3rem 0 0; background: rgba(255,255,255,0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.compare-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.compare-table th {
  text-align: center; padding: 0.75rem 1.25rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
}
.compare-table th.col-ida { color: var(--accent); }
.compare-table td {
  padding: 0.9rem 1.25rem; font-size: 0.9rem;
  border-bottom: 1px solid #F1F5F9; color: var(--text-secondary);
  transition: all 0.25s ease;
}
.compare-table tbody tr:hover td {
  background: rgba(12,54,180,0.04);
}
.compare-table .row-label { font-weight: 600; color: var(--text); }
.compare-table .col-ida { color: var(--accent); font-weight: 600; }
.compare-table .check { color: #10B981; margin-right: 0.35rem; font-weight: 700; }

/* ===== INDUSTRY CARDS ===== */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.5rem 0 0; }
.ind-card {
  background: color-mix(in srgb, var(--ind-color, #0C36B4) 22%, #fff);
  border: 1px solid color-mix(in srgb, var(--ind-color, #0C36B4) 35%, transparent);
  border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center;
  font-weight: 600; font-size: 0.9rem; color: var(--text);
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.ind-card:hover {
  background: color-mix(in srgb, var(--ind-color, #0C36B4) 32%, #fff);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.ind-icon {
  width: 36px; height: 36px; color: var(--ind-color, var(--accent));
  display: flex; align-items: center; justify-content: center;
  animation: iconDrift 4s cubic-bezier(0.45, 0, 0.55, 1) 3;
  animation-delay: calc(var(--i, 0) * 0.35s);
  animation-fill-mode: forwards;
}
.ind-card:hover .ind-icon {
  animation: iconDrift 1.2s cubic-bezier(0.45, 0, 0.55, 1) 1;
  animation-delay: 0s;
}
.ind-icon svg { width: 100%; height: 100%; }
@keyframes iconDrift {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-3px) rotate(2deg) scale(1.03); }
  50% { transform: translateY(-1px) rotate(0deg) scale(1); }
  75% { transform: translateY(-4px) rotate(-2deg) scale(1.02); }
}

/* ===== CTA ===== */
.cta { min-height: 100vh; display: flex; align-items: center; }
.cta-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: end;
  min-height: 340px;
  background: rgba(12,54,180,0.90); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none; border-radius: var(--radius-lg);
  padding: 3rem; width: 100%; color: #fff;
  overflow: visible;
  position: relative;
  margin-top: 6rem;
}
.cta .container { overflow: visible; }
.cta-left { text-align: left; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-right: 1rem; z-index: 1; position: relative; }
.cta-left h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.75rem; color: #fff; }
.cta-left p, .cta-left .cta-desc { color: rgba(255,255,255,0.8); }
.cta-left .cta-desc { margin: 0.5rem 0 2rem; font-size: 1rem; }
.cta-right {
  position: absolute; right: 0; bottom: 0;
  width: 50%; height: calc(100% + 140px);
  overflow: visible;
  display: flex; align-items: flex-end; justify-content: center;
}
.cta-right img {
  width: 100%; height: auto; object-fit: contain;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1A2D50; padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.6); position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col .footer-logo { max-width: 180px; margin-bottom: 0.5rem; filter: brightness(0) invert(1); }
.footer-col .footer-logo img { width: 100%; height: auto; display: block; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 0.35rem; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.875rem; }
.footer-col a:hover { color: var(--emphasize); }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.6; margin-top: 0.25rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--emphasize); }
.footer-social { display: flex; gap: 0.75rem; align-items: center; }
.footer-social a { display: flex; align-items: center; color: rgba(255,255,255,0.5); }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-social a:first-child svg { width: 17px; height: 17px; }

/* ===== FADE TRANSITIONS ===== */
.fade-section { opacity: 0.15; transition: opacity 0.6s ease; }
.fade-section.active { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mobile-toggle { display: flex; }
  .main-nav, .nav-cta { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; position: absolute;
    top: var(--header-height); left: 0; right: 0; background: #fff;
    padding: 1.5rem 2rem; gap: 1rem;
    border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .cap-split { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cap-particle-zone { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scroll-section { padding: 4rem 0; }
  .nav-dropdown .nav-submenu {
    position: static; background: transparent; border: none;
    box-shadow: none; padding: 0; min-width: auto; width: 100%;
    display: none;
  }
  .nav-dropdown.open .nav-submenu { display: block; }
  .nav-submenu a { padding: 0.6rem 0 0.6rem 1.5rem; font-size: 0.9rem; display: block; width: 100%; }
  .main-nav.open > a,
  .main-nav.open .nav-dropdown > a { font-size: 1rem; padding: 0.6rem 0; line-height: 1.4; display: block; width: 100%; }
  .main-nav.open { width: 100%; }
  .main-nav.open .nav-dropdown { width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .scroll-section { padding: 5rem 0; min-height: auto; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .cta { min-height: auto; padding: 5rem 0; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
