:root {
  --red: #ff2d20;
  --red-dark: #cc2419;
  --red-glow: rgba(255, 45, 32, 0.1);
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8f8;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #e0e0e0;
  --border-hover: #cccccc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--bg-primary);
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 0 48px; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.95);
}

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--red); transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--red); color: #fff; border: none;
  padding: 10px 28px; border-radius: 6px;
  font-family: "Outfit", sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.nav-cta:hover {
  background: var(--red-dark); transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255, 45, 32, 0.3);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text-primary); transition: 0.3s; }

.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding: 120px 48px 80px; overflow: hidden;
}

.hero-bg-grid {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255, 45, 32, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 32, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
}

.hero-glow {
  position: absolute; top: -200px; right: -200px; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255, 45, 32, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: -300px; left: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 45, 32, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1400px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: var(--red-glow);
  border: 1px solid rgba(255, 45, 32, 0.2); border-radius: 100px;
  font-size: 13px; color: var(--red); font-weight: 500;
  margin-bottom: 24px; animation: fadeInUp 0.8s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px; background: var(--red);
  border-radius: 50%; animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 72px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 24px; animation: fadeInUp 0.8s 0.1s ease both;
}
.hero h1 .accent { color: var(--red); position: relative; }

.hero-desc {
  font-size: 18px; color: var(--text-secondary); max-width: 520px;
  line-height: 1.7; margin-bottom: 40px; animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions { display: flex; gap: 16px; animation: fadeInUp 0.8s 0.3s ease both; }

.btn-primary {
  background: var(--red); color: #fff; border: none;
  padding: 16px 36px; border-radius: 8px;
  font-family: "Outfit", sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover {
  background: var(--red-dark); transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 45, 32, 0.35);
}

.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border); padding: 16px 36px; border-radius: 8px;
  font-family: "Outfit", sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-secondary:hover { border-color: var(--text-muted); background: rgba(0, 0, 0, 0.03); }

.hero-visual { position: relative; animation: fadeInUp 0.8s 0.4s ease both; }

.terminal {
  background: #1e1e2e; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; background: #181825; border-bottom: 1px solid #313244;
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }
.terminal-title {
  flex: 1; text-align: center; font-size: 12px; color: #6c7086;
  font-family: "JetBrains Mono", monospace;
}
.terminal-body {
  padding: 24px; font-family: "JetBrains Mono", monospace;
  font-size: 13px; line-height: 2; min-height: 280px; color: #cdd6f4;
}

.code-line { opacity: 0; animation: typeLine 0.4s ease forwards; }
.code-line:nth-child(1) { animation-delay: 0.8s; }
.code-line:nth-child(2) { animation-delay: 1.2s; }
.code-line:nth-child(3) { animation-delay: 1.6s; }
.code-line:nth-child(4) { animation-delay: 2.0s; }
.code-line:nth-child(5) { animation-delay: 2.4s; }
.code-line:nth-child(6) { animation-delay: 2.8s; }
.code-line:nth-child(7) { animation-delay: 3.2s; }

.code-keyword { color: var(--red); }
.code-string { color: #98c379; }
.code-func { color: #61afef; }
.code-comment { color: #6c7086; }
.code-bracket { color: #e5c07b; }
.code-var { color: #c678dd; }

.terminal-float-tag {
  position: absolute; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.tag-1 { top: -20px; right: -30px; animation-delay: 0s; }
.tag-2 { bottom: 40px; left: -40px; animation-delay: 2s; }
.tag-3 { bottom: -20px; right: 60px; animation-delay: 4s; }

.tag-icon {
  width: 28px; height: 28px; background: var(--red-glow);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; color: var(--red); font-size: 14px;
}

.section { padding: 120px 48px; max-width: 1400px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.section-label::before { content: ""; width: 24px; height: 2px; background: var(--red); }

.section-title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
}
.section-desc { font-size: 17px; color: var(--text-secondary); max-width: 600px; line-height: 1.7; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }

.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 32px; transition: all 0.4s;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.service-card:hover {
  border-color: var(--border-hover); background: var(--bg-card-hover);
  transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-icon { background: rgba(255, 45, 32, 0.2); }
.service-card:hover .learn-more { gap: 10px; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.service-card .learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 13px; font-weight: 600;
  color: var(--red); text-decoration: none; transition: gap 0.3s;
}

.service-icon {
  width: 56px; height: 56px; background: var(--red-glow);
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 24px; color: var(--red);
  transition: background 0.3s;
}

.about-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; margin-top: 64px;
}
.about-features { display: flex; flex-direction: column; gap: 32px; }
.about-feature { display: flex; gap: 20px; }
.about-feature-num {
  width: 44px; height: 44px; min-width: 44px; background: var(--red);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 700; color: #fff;
}
.about-feature h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.about-feature p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.about-visual { position: relative; }
.about-card-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.about-mini-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 20px; text-align: center; transition: all 0.3s;
}
.about-mini-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.about-mini-card h5 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.about-mini-card span { font-size: 12px; color: var(--text-muted); }
.about-mini-icon { margin-bottom: 12px; color: var(--red); }

.tech-strip {
  padding: 48px 48px; overflow: hidden; background: var(--bg-secondary);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.tech-strip h3 {
  text-align: center; font-size: 14px; font-weight: 500;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 48px;
}
.tech-scroll { display: flex; gap: 48px; width: max-content; }
.tech-item {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 16px; font-weight: 500; color: var(--text-muted); transition: color 0.3s;
}
.tech-item:hover { color: var(--text-secondary); }
.tech-item svg { width: 24px; height: 24px; opacity: 0.5; }

.process-timeline { margin-top: 64px; position: relative; }
.process-timeline::before {
  content: ""; position: absolute; left: 27px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--red), var(--border));
}
.process-step { display: flex; gap: 32px; margin-bottom: 48px; align-items: flex-start; }
.process-step:last-child { margin-bottom: 0; }
.process-step-num {
  width: 56px; height: 56px; min-width: 56px;
  background: var(--bg-primary); border: 2px solid var(--red);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 700;
  color: var(--red); position: relative; z-index: 1;
}
.process-step-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 32px; flex: 1;
  transition: all 0.3s; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.process-step-content:hover { border-color: var(--border-hover); }
.process-step-content h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.process-step-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.testimonials-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 28px; transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.testimonial-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 20px; color: #febc2e; font-size: 14px; }
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--red);
}
.testimonial-name { font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

.team-section {
  padding: 120px 48px; background: var(--bg-secondary);
  border-top: 1px solid var(--border); text-align: center;
}
.team-section .section-label { justify-content: center; }
.team-section .section-desc { margin-left: auto; margin-right: auto; }
.team-grid { display: flex; justify-content: center; gap: 64px; margin-top: 64px; flex-wrap: wrap; }
.team-member { text-align: center; max-width: 280px; }
.team-photo {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  margin-bottom: 24px; border: 3px solid var(--border); background: var(--bg-card);
}
.team-flags { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.team-flags svg {
  border: 1px solid var(--border); border-radius: 3px;
}
.team-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.team-email { font-size: 14px; color: var(--red); text-decoration: none; font-weight: 500; transition: opacity 0.3s; }
.team-email:hover { opacity: 0.7; }

.cta-section { padding: 120px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 45, 32, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section-title { max-width: 700px; margin: 0 auto 20px; }
.cta-section .section-desc { max-width: 500px; margin: 0 auto 40px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; position: relative; z-index: 1; }

.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 80px 48px 40px; }
.footer-grid {
  max-width: 1400px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr auto; gap: 60px; margin-bottom: 60px;
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 500px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--text-muted);
  text-decoration: none; transition: all 0.3s; font-size: 14px;
}
.footer-social a:hover { border-color: var(--red); color: var(--red); background: var(--red-glow); }

.footer-col { text-align: right; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); text-decoration: none; margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  max-width: 1400px; margin: 0 auto; padding-top: 30px;
  border-top: 1px solid var(--border); display: flex;
  justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typeLine {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 24px 60px; }
  .section { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-col { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .tech-strip { padding: 40px 24px; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .process-timeline::before { left: 19px; }
  .process-step-num { width: 40px; height: 40px; min-width: 40px; font-size: 14px; }
  .footer { padding: 60px 24px 30px; }
}

.mobile-menu {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.98); z-index: 999;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  color: var(--text-primary); text-decoration: none;
  font-size: 28px; font-weight: 700; transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--red); }

.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--text-primary);
  font-size: 28px; cursor: pointer; z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tech-scroll { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .code-line { opacity: 1 !important; animation: none !important; }
  .terminal-float-tag { animation: none !important; }
  .hero h1, .hero-desc, .hero-actions, .hero-visual, .hero-badge { animation: none !important; opacity: 1 !important; transform: none !important; }
}
