/* ============================================
   AISymmetric — Premium AI Consulting Website
   ============================================ */

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

:root {
  --white: #FFFFFF;
  --graphite: #111111;
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--graphite);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img { max-width: 100%; }

/* --- Canvas Backgrounds --- */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--graphite);
}

.nav-cta {
  background: var(--graphite) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--blue) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: var(--graphite);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: var(--graphite);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--graphite);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--gray-400);
  transform: translateY(-2px);
}

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

/* --- Hero Metrics --- */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline;
}

.metric-suffix {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  display: block;
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* --- Section Base --- */
.section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 0 40px rgba(59, 130, 246, 0.06);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- Architecture Diagram --- */
.architecture-diagram {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.arch-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 0;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.arch-node:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.arch-node-inner {
  width: 40px;
  height: 40px;
  color: var(--blue);
}

.arch-node-inner svg {
  width: 100%;
  height: 100%;
}

.arch-node span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.arch-node-large {
  padding: 24px 48px;
}

.arch-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.3));
  position: relative;
}

.arch-connector::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 8px;
  height: 6px;
  background: var(--blue);
  border-radius: 3px;
  animation: flow-dot 2s linear infinite;
}

@keyframes flow-dot {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

.arch-flow-lines {
  display: flex;
  justify-content: center;
  gap: 120px;
  padding: 8px 0;
}

.arch-flow-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.3));
  position: relative;
}

.arch-flow-line::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 6px;
  height: 8px;
  background: var(--cyan);
  border-radius: 3px;
  animation: flow-dot-v 2.5s linear infinite;
}

@keyframes flow-dot-v {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

/* --- Platforms Grid --- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
}

.platform-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.platform-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 0 20px rgba(59, 130, 246, 0.06);
  transform: translateY(-2px);
}

.platform-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.platform-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.platform-card p {
  font-size: 13px;
  color: var(--gray-400);
}

/* --- Approach Timeline --- */
.approach-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.approach-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-100);
}

.approach-line-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  transition: height 0.1s linear;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.approach-step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-left: 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.approach-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-300);
  min-width: 24px;
  text-align: center;
  padding-top: 4px;
}

.step-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-200);
  flex-shrink: 0;
  margin-top: 6px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.approach-step.active .step-node {
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), 0 0 20px rgba(59, 130, 246, 0.3);
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- Case Studies --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  position: relative;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
}

.case-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: rgba(59, 130, 246, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.case-card > p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
}

.case-metrics {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

.case-metric-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-metric-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.case-pattern {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-card:hover .case-pattern {
  opacity: 1;
}

/* --- Portfolio Banner --- */
.portfolio-banner {
  padding: 80px 0;
}

.portfolio-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 56px;
  background: var(--graphite);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.portfolio-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-inner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.portfolio-content .section-tag {
  color: var(--cyan);
}

.portfolio-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}

.portfolio-subtitle {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 480px;
}

.btn-portfolio {
  position: relative;
  z-index: 1;
  background: var(--white);
  color: var(--graphite);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
}

.btn-portfolio:hover {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
  .portfolio-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
    gap: 32px;
  }

  .portfolio-subtitle {
    max-width: none;
  }

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

/* --- Why Section --- */
.why {
  background: var(--gray-50);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
}

.why-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-marker {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 8px;
}

.why-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.why-item p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  perspective: 1000px;
  height: 480px;
  cursor: pointer;
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.team-card:hover .team-card-inner,
.team-card:focus .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

.team-card-front {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  backdrop-filter: blur(10px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover .team-card-front {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 0 40px rgba(59, 130, 246, 0.06);
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  border: 3px solid var(--gray-100);
  transition: border-color 0.4s ease;
}

.team-card:hover .team-photo {
  border-color: var(--blue);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-front h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.team-role {
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 16px;
}

.team-flip-hint {
  font-size: 12px;
  color: var(--gray-300);
  font-weight: 500;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-flip-hint::after {
  content: '\2192';
  font-size: 14px;
}

.team-card-back {
  background: var(--graphite);
  color: var(--white);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
}

.team-back-content {
  text-align: left;
}

.team-back-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.team-back-content .team-role {
  color: var(--cyan);
  margin-bottom: 20px;
}

.team-bio {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--gray-300);
}

.team-link-hint {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  transition: color 0.3s ease;
}

.team-card:hover .team-link-hint {
  color: var(--white);
}

/* --- Contact Section --- */
.contact {
  padding: 120px 0 80px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-content .section-tag {
  text-align: left;
}

.contact-content .section-title {
  text-align: left;
  font-size: clamp(28px, 3.5vw, 40px);
}

.contact-content .section-subtitle {
  text-align: left;
  margin: 16px 0 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--graphite);
  background: var(--white);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

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

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 40px;
  border-top: 1px solid var(--gray-100);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 260px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--graphite);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--graphite);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-400);
}

/* --- Animations --- */
[data-aos] {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 24px;
  }

  .metric-divider {
    width: 40px;
    height: 1px;
  }

  .services-grid,
  .platforms-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    height: 460px;
  }

  .section {
    padding: 80px 0;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }

  .arch-layer {
    flex-wrap: wrap;
    gap: 12px;
  }

  .arch-connector {
    display: none;
  }

  .arch-flow-lines {
    gap: 60px;
  }

  .hero-ctas {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .metric-value, .metric-suffix {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }
}
