/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1C1C24;
  background-color: #FCFCFD;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR (CLASS SELECTOR - never bare nav) ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0F1119;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: #F0F1F5;
  letter-spacing: -0.5px;
}
.nav-logo span { color: #E0534A; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: #B8BBC8;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a:focus { color: #F0F1F5; }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #E0534A;
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a:focus::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: #F0F1F5;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background-color: #0F1119;
    flex-direction: column;
    padding: 24px 28px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  }
  .nav-links.open { transform: translateY(0); }
}

/* ===== HOMEPAGE WRAPPER ===== */
.home-page { }

/* ===== HERO (class) ===== */
.hero-section {
  background-color: #0F1119;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 28px 100px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(224, 83, 74, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(70, 185, 148, 0.09) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { max-width: 560px; }
.hero-badge {
  display: inline-block;
  background-color: #E0534A;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #F0F1F5;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.hero-title span { color: #E0534A; }
.hero-desc {
  font-size: 18px;
  color: #B8BBC8;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background-color: #E0534A;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}
.btn-primary:hover { background-color: #C9443C; transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #F0F1F5;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: 2px solid #2A2D3B;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-secondary:hover { border-color: #E0534A; color: #E0534A; transform: translateY(-2px); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background-color: #181C28;
  border: 1px solid #252A38;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-card-icon {
  width: 48px;
  height: 48px;
  background-color: #E0534A;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: #FFFFFF;
  font-weight: 700;
}
.hero-card h3 {
  font-size: 20px;
  color: #F0F1F5;
  margin-bottom: 12px;
  font-weight: 700;
}
.hero-card p {
  font-size: 15px;
  color: #83889A;
  line-height: 1.65;
  margin-bottom: 20px;
}
.hero-card-stats {
  display: flex;
  gap: 28px;
  padding-top: 18px;
  border-top: 1px solid #252A38;
}
.hero-card-stats .stat { text-align: center; }
.hero-card-stats .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #46B994;
}
.hero-card-stats .stat-label {
  font-size: 12px;
  color: #83889A;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-title { font-size: 36px; }
}

/* ===== ABOUT (class) ===== */
.about-section {
  padding: 100px 28px;
  background-color: #FCFCFD;
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-wrapper {
  background-color: #0F1119;
  border-radius: 20px;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.about-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(224, 83, 74, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.about-dot-row {
  display: flex;
  gap: 10px;
}
.about-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #E0534A;
}
.about-dot:nth-child(2) { background-color: #46B994; }
.about-dot:nth-child(3) { background: rgba(240, 241, 245, 0.4); }
.about-code-line {
  height: 8px;
  border-radius: 4px;
  background-color: #252A38;
}
.about-code-line:nth-child(3) { width: 85%; }
.about-code-line:nth-child(4) { width: 60%; }
.about-code-line:nth-child(5) { width: 75%; }
.about-code-line:nth-child(6) { width: 50%; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #E0534A;
  margin-bottom: 12px;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  color: #1C1C24;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.about-text p {
  font-size: 16px;
  color: #5A5A68;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #1C1C24;
  font-weight: 500;
}
.about-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: #46B994;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #FFFFFF;
  font-weight: 700;
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .section-title { font-size: 30px; }
}

/* ===== SERVICES (class) ===== */
.services-section {
  padding: 100px 28px;
  background-color: #F3F3F8;
}
.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.services-header {
  text-align: center;
  margin-bottom: 56px;
}
.services-header .section-title { color: #1C1C24; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E5EE;
  border-radius: 14px;
  padding: 36px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: #E0534A;
}
.service-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}
.service-card-icon.red { background-color: #E0534A; }
.service-card-icon.green { background-color: #46B994; }
.service-card-icon.indigo { background-color: #6C63FF; }
.service-card h3 {
  font-size: 19px;
  color: #1C1C24;
  margin-bottom: 10px;
  font-weight: 700;
}
.service-card p {
  font-size: 15px;
  color: #5A5A68;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== PROCESS (class) ===== */
.process-section {
  padding: 100px 28px;
  background-color: #0F1119;
}
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.process-header { text-align: center; margin-bottom: 56px; }
.process-header .section-title { color: #F0F1F5; }
.process-header .section-label { color: #46B994; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #181C28;
  border: 2px solid #252A38;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #E0534A;
  margin: 0 auto 18px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.process-step:hover .process-step-num {
  border-color: #E0534A;
  background-color: #E0534A;
  color: #FFFFFF;
}
.process-step h4 {
  font-size: 17px;
  color: #F0F1F5;
  margin-bottom: 8px;
  font-weight: 700;
}
.process-step p {
  font-size: 14px;
  color: #83889A;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ===== TESTIMONIALS (class) ===== */
.testimonials-section {
  padding: 100px 28px;
  background-color: #FCFCFD;
}
.testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background-color: #F3F3F8;
  border-radius: 14px;
  padding: 32px 28px;
  border: 1px solid #E5E5EE;
}
.testimonial-card .stars {
  color: #E0534A;
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 15px;
  color: #5A5A68;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #46B994;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
}
.testimonial-author .name {
  font-size: 14px;
  font-weight: 700;
  color: #1C1C24;
}
.testimonial-author .role {
  font-size: 12px;
  color: #83889A;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== CONTACT (class) ===== */
.contact-section {
  padding: 100px 28px;
  background-color: #F3F3F8;
}
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info { }
.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p {
  font-size: 16px;
  color: #5A5A68;
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #E0534A;
  font-weight: 700;
  border: 1px solid #E5E5EE;
}
.contact-detail-item .label {
  font-size: 12px;
  color: #83889A;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.contact-detail-item .val {
  font-size: 15px;
  color: #1C1C24;
  font-weight: 600;
}

.contact-form-wrapper {
  background-color: #FFFFFF;
  border: 1px solid #E5E5EE;
  border-radius: 16px;
  padding: 36px 32px;
}
.contact-form-wrapper h3 {
  font-size: 20px;
  color: #1C1C24;
  margin-bottom: 24px;
  font-weight: 700;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1C1C24;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D5D5E0;
  border-radius: 8px;
  font-size: 15px;
  color: #1C1C24;
  background-color: #FCFCFD;
  font-family: inherit;
  transition: border-color 0.25s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #E0534A;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%;
  padding: 14px;
  background-color: #E0534A;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.form-submit:hover { background-color: #C9443C; }
.form-status {
  margin-top: 12px;
  font-size: 14px;
  color: #46B994;
  font-weight: 600;
  display: none;
}
.form-status.success { display: block; color: #46B994; }
.form-status.error { display: block; color: #E0534A; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #0F1119;
  padding: 60px 28px 30px;
  color: #83889A;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 {
  font-size: 20px;
  font-weight: 800;
  color: #F0F1F5;
  margin-bottom: 12px;
}
.footer-brand h3 span { color: #E0534A; }
.footer-brand p {
  font-size: 14px;
  color: #83889A;
  line-height: 1.65;
  margin-bottom: 16px;
}
.footer-column h4 {
  font-size: 14px;
  color: #F0F1F5;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-column a {
  display: block;
  font-size: 14px;
  color: #83889A;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-column a:hover { color: #E0534A; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #252A38;
  text-align: center;
  font-size: 13px;
  color: #5E6270;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===== SCROLL REVEAL ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== COUNTER ANIMATION ===== */
.counter { display: inline-block; }
