/* ===========================
   DRS AUTOMATION GROUP
   Global Styles
=========================== */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f0f0f0;
  --gray: rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.1);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================
   NAV
=========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--white);
}

.nav-logo span {
  color: rgba(255,255,255,0.4);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

/* ===========================
   BUTTONS
=========================== */

.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* ===========================
   SECTION TAGS
=========================== */

.section-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.section-tag.center {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0px;
  line-height: 1.1;
  margin-bottom: 48px;
}

.section-title.center {
  text-align: center;
}

.accent {
  color: var(--white);
}

/* ===========================
   TRACK BG
=========================== */

.track-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.track-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   HERO
=========================== */

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.hero-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: 0px;
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===========================
   BRAND STORY
=========================== */

.brand-story {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: 1.5px;
  line-height: 1.15;
  margin-bottom: 28px;
}

.story-text p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.75;
}

.story-visual {
  display: flex;
  justify-content: center;
}

.circle-track {
  width: 100%;
  max-width: 360px;
  animation: rotateSlow 30s linear infinite;
}

.progress-arc {
  animation: arcPulse 4s ease-in-out infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes arcPulse {
  0%, 100% { stroke-dasharray: 200 810; }
  50% { stroke-dasharray: 400 610; }
}

/* ===========================
   HOW IT WORKS
=========================== */

.how-it-works {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  flex: 1;
  padding: 48px 40px;
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}

.step:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
}

.step-number {
  font-family: var(--font-display);
  font-size: 72px;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.step p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

.step-divider {
  flex: 0 0 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===========================
   SERVICES SNAP
=========================== */

.services-snap {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.service-card {
  background: var(--black);
  padding: 40px 32px;
  transition: background 0.3s;
}

.service-card:hover {
  background: rgba(255,255,255,0.03);
}

.service-icon {
  margin-bottom: 24px;
  opacity: 0.7;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.services-cta {
  text-align: center;
}

/* ===========================
   PAGE HERO (inner pages)
=========================== */

.page-hero {
  position: relative;
  padding: 160px 48px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 24px;
}

.page-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===========================
   SERVICES DETAIL
=========================== */

.services-detail {
  padding: 100px 0;
}

.service-detail-card {
  padding: 60px 0;
}

.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
}

.service-detail-num {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: rgba(255,255,255,0.08);
  flex-shrink: 0;
  width: 80px;
}

.service-detail-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.service-detail-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.service-detail-body {
  padding-left: 120px;
}

.service-detail-body p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 680px;
}

.service-list {
  list-style: none;
  margin-top: 28px;
}

.service-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 500px;
}

.service-list li::before {
  content: '';
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.service-divider {
  height: 1px;
  background: var(--border);
}

/* ===========================
   CTA BAND
=========================== */

.cta-band {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.cta-band-inner {
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 2px;
  margin-bottom: 40px;
}

/* ===========================
   CONTACT
=========================== */

.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  padding-top: 20px;
}

.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.contact-block:first-child {
  border-top: 1px solid var(--border);
}

.contact-icon {
  flex-shrink: 0;
  opacity: 0.6;
  margin-top: 4px;
}

.contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.contact-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  transition: color 0.2s;
  word-break: break-all;
}

.contact-value:hover {
  color: rgba(255,255,255,0.7);
}

.contact-note {
  padding-top: 32px;
}

.contact-note p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 380px;
}

.contact-right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
}

.monaco-art {
  width: 100%;
  max-width: 460px;
  animation: rotateSlow 60s linear infinite;
}

/* ===========================
   FOOTER
=========================== */

.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 5px;
}

.footer-logo span {
  color: rgba(255,255,255,0.3);
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

/* ===========================
   ANIMATIONS (JS-powered)
=========================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
  .nav {
    padding: 20px 24px;
  }

  .hero {
    padding: 120px 24px 80px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-visual {
    order: -1;
  }

  .steps-grid {
    flex-direction: column;
    gap: 0;
  }

  .step-divider {
    transform: rotate(90deg);
    flex: 0 0 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-right {
    order: -1;
  }

  .monaco-art {
    max-width: 300px;
  }

  .service-detail-body {
    padding-left: 0;
  }

  .page-hero {
    padding: 130px 24px 60px;
  }
}

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

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    text-align: center;
    width: 100%;
  }

  .service-detail-header {
    flex-direction: column;
    gap: 12px;
  }

  .service-detail-num {
    font-size: 48px;
  }
}
