/* ===== CSS Variables ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #7c3aed;
  --accent-light: #8b5cf6;
  --dark: #0f172a;
  --dark-secondary: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --bg-section: #f1f5f9;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  --shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 24px auto 0;
}

.section-alt {
  background: var(--bg-light);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.08);
}

.header.scrolled .nav-link {
  color: var(--text);
}

.header.scrolled .logo-text {
  color: var(--dark);
}

.header.scrolled .nav-toggle span {
  background: var(--dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.nav-cta {
  margin-left: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(99, 102, 241, 0.6);
  border-radius: 50%;
  animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.hero-glow-1 {
  top: -200px;
  right: -100px;
  background: #3b82f6;
}

.hero-glow-2 {
  bottom: -200px;
  left: -100px;
  background: #7c3aed;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-number span {
  font-size: 1.25rem;
  color: #60a5fa;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  opacity: 0.15;
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.0625rem;
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.about-tag {
  padding: 10px 20px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.15);
  transition: all var(--transition);
}

.about-tag:hover {
  background: var(--primary);
  color: var(--white);
}

.about-visual {
  position: relative;
}

.about-card {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.about-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.about-card-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1rem;
}

.about-card-list li:last-child {
  border-bottom: none;
}

.about-card-list svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid #e2e8f0;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-features li {
  font-size: 0.8125rem;
  padding: 4px 12px;
  background: var(--bg-light);
  color: var(--text);
  border-radius: 4px;
}

/* ===== Dev Services ===== */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dev-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all var(--transition);
}

.dev-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.dev-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-card-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.dev-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.dev-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

/* ===== Solutions ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid #e2e8f0;
  transition: all var(--transition);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.solution-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.solution-card h3 .num {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.solution-industries {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 500;
}

.solution-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.solution-features li {
  font-size: 0.875rem;
  color: var(--text);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.solution-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Advantages ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all var(--transition);
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.advantage-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.advantage-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

/* ===== Process ===== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-dot {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  transition: all var(--transition);
}

.process-step:hover .process-dot {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: scale(1.1);
}

.process-step h4 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== Cases ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all var(--transition);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.case-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.case-image-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.case-card:hover .case-image-inner {
  transform: scale(1.08);
}

.case-body {
  padding: 24px;
}

.case-type {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 4px;
  margin-bottom: 12px;
}

.case-body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.case-body p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.case-tech {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.case-tech span {
  color: var(--primary);
  font-weight: 500;
}

/* ===== Contact ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.contact-list {
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.contact-item-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item-text span {
  font-size: 1rem;
  color: var(--dark);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.contact-form > p {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 0.9375rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-group label .required {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 4px;
  display: none;
}

.form-group.error input,
.form-group.error select {
  border-color: #ef4444;
}

.form-group.error .form-error {
  display: block;
}

.form-submit {
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.375rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-scope {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-icp {
  width: 100%;
  padding: 16px 24px;
  text-align: center;
  background: #0a0f1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-icp a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-icp a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ===== Floating Elements ===== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.back-to-top:hover svg {
  fill: var(--white);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
  transition: fill var(--transition);
}

.float-consult {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: all var(--transition);
  border: none;
}

.float-consult:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.5);
}

.float-consult svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.float-consult-text {
  position: absolute;
  right: 68px;
  background: var(--dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.float-consult:hover .float-consult-text {
  opacity: 1;
  visibility: visible;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
  fill: #22c55e;
}

.modal h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.modal p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid,
  .dev-grid,
  .advantages-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-timeline::before {
    display: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    color: var(--text) !important;
    width: 100%;
    text-align: center;
    padding: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .dev-grid,
  .advantages-grid,
  .cases-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solution-features {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 16px 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}
