/* ═══════════════════════════════════════════════
   I&AI Tech — Professional Dark Theme
   Clean, modern, enterprise-focused
   ═══════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --bg-primary: #090f1c;
  --bg-secondary: #0d1526;
  --bg-card: #111b2e;
  --bg-card-hover: #162038;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-glow-strong: rgba(59, 130, 246, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.08);
  --border-accent: rgba(59, 130, 246, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #93bbfd; }

/* ─── Layout ─── */
.container {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248, 250, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(203, 213, 230, 0.5);
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(203, 213, 230, 0.7);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 36px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all var(--transition);
}
.main-nav a:hover {
  color: #0b2a8a;
  background: rgba(59, 130, 246, 0.06);
}
.nav-cta {
  font-size: 0.88rem !important;
  padding: 0.6rem 1.2rem !important;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #475569;
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover {
  background: #4f8ffa;
  box-shadow: 0 0 36px rgba(59, 130, 246, 0.35);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
  border-color: rgba(148, 163, 184, 0.15);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.03);
}
.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 14px;
}
.btn.full { width: 100%; }
.arrow { transition: transform var(--transition); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 10rem 0 6rem;
  max-width: 800px;
  margin-inline: auto;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
}
.hero .cta-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Sections ─── */
.section {
  padding: 6rem 0;
}
.section-alt {
  background: var(--bg-secondary);
}
.section-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}
.section-intro.centered {
  margin-inline: auto;
  text-align: center;
}
.section-intro h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-desc {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ─── Stats ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.stat:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
}
.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── Feature Cards ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.feature-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--accent-light);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature-card p {
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── Value Grid ─── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.value-item {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.value-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.value-number {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.value-item h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.value-item p {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ─── Contact ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-info > p {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  line-height: 1.8;
}
.contact-details {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-detail svg {
  width: 22px;
  height: 22px;
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-detail p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ─── Contact Form ─── */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form-wrap form {
  display: grid;
  gap: 1.25rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.req { color: var(--accent); }
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  outline: none;
  transition: all var(--transition);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; }
.field select option {
  background: var(--bg-card);
  color: var(--text-primary);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field input.invalid,
.field textarea.invalid,
.field select.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.field-error {
  display: block;
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 0.3rem;
  min-height: 1.1rem;
}
.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius);
  font-size: 1.05rem;
  color: #4ade80;
  margin-top: 1rem;
}
.form-success svg {
  flex-shrink: 0;
}
.form-error-msg {
  text-align: center;
  padding: 0.85rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #f87171;
}
.form-error-msg a {
  color: #f87171;
  text-decoration: underline;
}

/* ─── Footer ─── */
.site-footer {
  background: #060a14;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  padding: 4rem 0 2rem;
}
.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 400px;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer-links h4 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-links a,
.footer-links p {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0.4rem 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.disclaimer { max-width: 520px; text-align: right; }

/* ─── Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger feature cards */
.features-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }
.features-grid .fade-up:nth-child(4) { transition-delay: 0.3s; }
/* Stagger stats */
.stats-row .fade-up:nth-child(2) { transition-delay: 0.08s; }
.stats-row .fade-up:nth-child(3) { transition-delay: 0.16s; }
.stats-row .fade-up:nth-child(4) { transition-delay: 0.24s; }
/* Stagger values */
.value-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.value-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }
.value-grid .fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ─── Utility ─── */
.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .container { width: min(1200px, calc(100% - 2rem)); }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
  }
  .main-nav.open { right: 0; }
  .main-nav a {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
  }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }

  .hero-content { padding: 8rem 0 4rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .disclaimer { text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .hero-content { padding: 7rem 0 3rem; }
  .hero-sub { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat { padding: 1.25rem 0.75rem; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }
  .btn-lg { padding: 0.8rem 1.5rem; font-size: 0.95rem; }
  .footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
}
