/* ==========================================================================
   Mainyx Light Tech Design System - Polished Production Grade
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #F7F9FC;
  --surface: #FFFFFF;
  --color-primary: #3D5AFE;
  --color-primary-deep: #3346E8;
  --color-primary-light: #EEF2FF;
  --color-accent-orange: #FF7A45;
  
  --color-text-main: #171A22;
  --color-text-secondary: #737B8C;
  --color-text-muted: #9AA2B2;

  --color-border: #E8EBF2;
  --color-border-hover: #C6D2FD;
  
  /* Shadows */
  --shadow-card: 0 4px 16px rgba(23, 26, 34, 0.03), 0 1px 2px rgba(23, 26, 34, 0.02);
  --shadow-card-hover: 0 12px 32px rgba(61, 90, 254, 0.10), 0 2px 6px rgba(61, 90, 254, 0.04);
  
  /* Typography */
  --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle Ambient Glow */
.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.bg-glow-top {
  width: 560px;
  height: 320px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(61, 90, 254, 0.09) 0%, rgba(247, 249, 252, 0) 70%);
}

.bg-glow-bottom {
  width: 360px;
  height: 220px;
  bottom: -60px;
  right: 15%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.03) 0%, rgba(247, 249, 252, 0) 70%);
}

/* Page Layout */
.page-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 56px 24px 36px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   Hero / Header
   ========================================================================== */

.hero-section {
  text-align: center;
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 22px;
}

.brand-icon-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-main);
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Services Grid & Cards
   ========================================================================== */

.services-wrapper {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease;
  position: relative;
  cursor: pointer;
  outline: none;
}

.service-card:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.24);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease;
}

.icon-box.icon-pay {
  background-color: #EEF2FF;
  color: var(--color-primary);
}

.icon-box.icon-ios {
  background-color: #F3F4F6;
  color: #1F2937;
}

.icon-box.icon-team {
  background-color: #FFF3EB;
  color: var(--color-accent-orange);
}

.card-svg {
  width: 25px;
  height: 25px;
}

.service-card:hover .icon-box {
  transform: scale(1.04);
}

.arrow-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: var(--bg-primary);
  transition: all 0.22s ease;
}

.arrow-svg {
  width: 15px;
  height: 15px;
  transition: transform 0.22s ease;
}

.service-card:hover .arrow-box {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.service-card:hover .arrow-svg {
  transform: translate(2px, -2px);
}

/* Card Body */
.card-body {
  flex: 1;
  margin-bottom: 22px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text-main);
  margin-bottom: 5px;
  transition: color 0.2s ease;
}

.service-card:hover .card-title {
  color: var(--color-primary);
}

.card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Card Footer & Domain Pill */
.card-foot {
  display: flex;
  align-items: center;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background-color: #F4F6FB;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
}

.domain-text {
  font-family: var(--font-family-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
}

.service-card:hover .domain-pill {
  background-color: var(--color-primary-light);
  border-color: rgba(61, 90, 254, 0.15);
}

.service-card:hover .domain-text {
  color: var(--color-primary);
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================= */

.site-footer {
  margin-top: 44px;
  text-align: center;
}

.copyright-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablet (<= 960px) */
@media (max-width: 960px) {
  .services-grid {
    gap: 18px;
  }

  .service-card {
    padding: 24px 20px;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .page-layout {
    padding: 36px 16px 24px;
  }

  .hero-section {
    margin-bottom: 28px;
  }

  .brand-badge {
    margin-bottom: 16px;
  }

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

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 420px;
  }

  .service-card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .card-head {
    margin-bottom: 14px;
  }

  .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .card-svg {
    width: 22px;
    height: 22px;
  }

  .card-body {
    margin-bottom: 14px;
  }

  .card-title {
    font-size: 17.5px;
  }

  .card-desc {
    font-size: 13.5px;
  }

  .site-footer {
    margin-top: 28px;
  }
}
