/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #4B5563;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== VARIABLES ===== */
:root {
  --navy: #1B2A4A;
  --navy-dark: #152238;
  --purple: #4A3ABA;
  --purple-hover: #3d2fa0;
  --lavender: #EEEAF7;
  --green: #3ECF8E;
  --green-hover: #34b87d;
  --coral: #FF6B6B;
  --coral-hover: #e85d5d;
  --white: #FFFFFF;
  --gray-text: #6B7280;
  --gray-light: #9CA3AF;
  --border: #E5E7EB;
  --container: 1140px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 25px;
  padding: 11px 30px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-purple {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  padding: 14px 40px;
  border-radius: 8px;
}
.btn-purple:hover { background: var(--purple-hover); border-color: var(--purple-hover); }
.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
  border-radius: 4px;
  padding: 14px 40px;
  font-size: 16px;
}
.btn-outline-green:hover { background: var(--green); color: var(--white); }
.btn-coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
  padding: 12px 36px;
}
.btn-coral:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  font-size: 13px;
  padding: 9px 24px;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ===== DOT GRID PATTERN ===== */
.dot-grid {
  position: absolute;
  pointer-events: none;
}
.dot-grid::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, var(--green) 2px, transparent 2px);
  background-size: 12px 12px;
}

/* ===== HEADER ===== */
.header {
  position: relative;
  background: transparent;
  padding-top: 20px;
  padding-bottom: 10px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 24px;
  color: var(--purple);
  text-decoration: none;
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 20px;
}
.nav-link {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-link:hover { color: var(--green); }
.nav-link.active { color: var(--green); }
.nav-link svg { opacity: 0.7; }
.nav-dropdown { position: relative; }
.header .btn-outline-green { margin-left: auto; }
.mobile-menu-btn { display: none; }

/* ===== HERO ===== */
.hero {
  background: var(--white);
  padding-top: 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: var(--lavender);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  z-index: 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 60px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 460px;
  flex-shrink: 0;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-text);
  margin-bottom: 32px;
  max-width: 400px;
}
.hero-image-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero-image {
  width: 380px;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}
.dot-grid-hero {
  width: 96px;
  height: 96px;
  bottom: -10px;
  left: -50px;
}

/* Hero diagonal cut */
.hero-diagonal {
  display: none;
}

/* ===== SYSTEM SECTION ===== */
.system {
  padding: 80px 0 90px;
}
.system-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.system-image-wrap {
  position: relative;
  flex-shrink: 0;
}
.system-image {
  width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  display: block;
  background: #f5f5f7;
}
.dot-grid-system {
  width: 80px;
  height: 80px;
  bottom: -20px;
  right: -30px;
}
.system-content {
  max-width: 440px;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-text);
}

/* ===== PRODUCTS SECTION ===== */
.products {
  padding: 40px 0 80px;
}
.products-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 40px;
}
.products-header-text {
  max-width: 400px;
}
.products-header-text .section-title {
  margin-bottom: 12px;
}
.products-header .btn {
  margin-top: 10px;
  flex-shrink: 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #F0F4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.product-card-highlight {
  background: var(--green);
  border-color: var(--green);
}
.product-card-highlight .product-title,
.product-card-highlight .product-desc {
  color: var(--white);
}
.product-card-highlight .product-icon,
.product-card-highlight .highlight-icon {
  background: rgba(255,255,255,0.2);
}
.product-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.product-icon-row .product-icon {
  margin-bottom: 0;
}
.product-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 12px;
}
.product-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-text);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 60px 0 80px;
}
.testimonials-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}
.dot-indicators {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.dot-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}
.dot-indicators .dot.active {
  background: var(--green);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  padding: 0;
}
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 2px;
}
.testimonial-role {
  font-size: 13px;
  color: var(--gray-light);
}
.testimonial-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray-text);
}

/* ===== CTA BANNER ===== */
.cta {
  padding: 40px 0 60px;
}
.cta-banner {
  background: var(--green);
  border-radius: 16px;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  gap: 40px;
}
.cta-content {
  display: flex;
  align-items: center;
  gap: 32px;
  z-index: 2;
  position: relative;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  max-width: 360px;
  line-height: 1.3;
}
.dot-grid-cta-left,
.dot-grid-cta-right {
  width: 120px;
  height: 80px;
  z-index: 1;
  flex-shrink: 0;
  position: relative;
}
.dot-grid-cta-left::before,
.dot-grid-cta-right::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 2px, transparent 2px);
  background-size: 12px 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
}
.footer-left { flex-shrink: 0; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.social-link:hover { opacity: 1; }
.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.scroll-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.scroll-top:hover { background: var(--green-hover); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-image { width: 320px; }
  .system-inner { flex-direction: column; text-align: center; }
  .system-image { width: 100%; max-width: 500px; }
  .system-content { max-width: 100%; }
  .products-header { flex-direction: column; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; padding: 32px 24px; }
  .cta-content { flex-direction: column; text-align: center; }
  .dot-grid-cta-left, .dot-grid-cta-right { display: none; }
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-right { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header .btn-outline-green { display: none; }
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
  }
  .mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: 0.2s;
  }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 26px; }
  .products-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-header { flex-direction: column; gap: 16px; }
}
