/* ============================================
   IncisIQ — Brand & Global Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand colors */
  --color-navy:        #0a1628;
  --color-navy-light:  #1e293b;
  --color-slate:       #334155;
  --color-slate-light: #94a3b8;
  --color-teal:        #06b6d4;
  --color-teal-dark:   #0891b2;
  --color-violet:      #7c3aed;
  --color-white:       #ffffff;
  --color-off-white:   #f1f5f9;
  --color-border:      rgba(255,255,255,0.08);
  --color-border-light:#e2e8f0;

  /* Gradients */
  --gradient-accent:   linear-gradient(135deg, #06b6d4, #7c3aed);
  --gradient-hero:     linear-gradient(160deg, #0a1628 0%, #1e293b 50%, #0f2337 100%);
  --gradient-card:     linear-gradient(160deg, rgba(6,182,212,0.06), rgba(124,58,237,0.06));

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: 6rem 0;
  --container-width: 1180px;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-navy);
  background: var(--color-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

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

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-slate);
  max-width: 620px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-border-light);
}
.btn-outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-navy);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.7rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
}
.nav-logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-slate-light);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta .btn {
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Sections --- */
.hero {
  background: var(--gradient-hero);
  color: var(--color-white);
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(6,182,212,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(124,58,237,0.06) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-slate-light);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page hero (smaller, for inner pages) */
.hero-page {
  padding: 9rem 0 4rem;
}

.hero-page h1 {
  margin-bottom: 0.75rem;
}

.hero-page p {
  font-size: 1.1rem;
}

/* --- Sections --- */
.section {
  padding: var(--section-pad);
}

.section-dark {
  background: var(--gradient-hero);
  color: var(--color-white);
}

.section-light {
  background: var(--color-off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}

.card-dark {
  background: rgba(255,255,255,0.04);
  border-color: var(--color-border);
}
.card-dark:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 12px 40px rgba(6,182,212,0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card-dark .card-icon {
  background: rgba(6,182,212,0.12);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--color-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-dark p {
  color: var(--color-slate-light);
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-slate-light);
  margin-top: 0.25rem;
}

/* --- Pricing Cards --- */
.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.pricing-card.featured {
  border: 2px solid var(--color-teal);
  box-shadow: 0 8px 40px rgba(6,182,212,0.12);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-full);
}

.pricing-tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-slate);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--color-slate);
  margin-bottom: 2rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-slate);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-teal);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- Testimonials --- */
.testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-slate-light);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-white);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-white);
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-slate-light);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-navy);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Logo Cloud --- */
.logo-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.5;
  filter: grayscale(1);
}

.logo-cloud span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-slate-light);
  letter-spacing: 0.02em;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* --- Footer --- */
.footer {
  background: var(--color-navy);
  color: var(--color-slate-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 300px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-slate-light);
  padding: 0.3rem 0;
}
.footer-links a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hero { padding: 8rem 0 4rem; }
  .hero-page { padding: 7rem 0 3rem; }
  .section { padding: 4rem 0; }

  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile menu */
  .nav-links.open,
  .nav-cta.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-cta.open { padding-top: 0; }

  .nav-inner {
    flex-wrap: wrap;
  }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .pricing-card { padding: 2rem; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }
.animate-in:nth-child(6) { animation-delay: 0.5s; }

/* Floating glow dot decoration */
.glow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 20px var(--color-teal), 0 0 60px rgba(6,182,212,0.3);
  pointer-events: none;
}

/* Feature detail layout */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.feature-detail:nth-child(even) {
  direction: rtl;
}
.feature-detail:nth-child(even) > * {
  direction: ltr;
}

.feature-detail-visual {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-detail-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,182,212,0.05), rgba(124,58,237,0.05));
}

.feature-visual-inner {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  text-align: center;
}

.feature-detail-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.feature-detail-content p {
  color: var(--color-slate);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.feature-check-list li {
  padding: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--color-slate);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-check-list li::before {
  content: '→';
  color: var(--color-teal);
  font-weight: 700;
}

@media (max-width: 768px) {
  .feature-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-detail:nth-child(even) {
    direction: ltr;
  }
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: 1.25rem 0;
}

.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-navy);
  font-family: var(--font-body);
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-teal);
  transition: transform var(--transition);
}

.faq-question.open::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-slate);
  line-height: 1.7;
}

/* --- Success Message --- */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--color-slate);
}
