/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
  --bg-dark: #0a0c10;
  --bg-card: #12161f;
  --bg-surface: #171d2a;
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.15);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #60a5fa;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', sans-serif;
  --wrap-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background grain noise overlay */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  content: "";
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3 Atemography filter='url(%23noiseFilter)'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3C/svg%3E");
}

/* Layout Wrapper */
.wrap {
  width: 100%;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   2. TYPOGRAPHY & BUTTONS
   ========================================================================== */
h1, h2, h3, .logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 3rem;
}

.highlight {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-main);
  background: linear-gradient(120deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background-color: #3b82f6;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  height: 32px;
  width: auto;
}

.logo-word {
  font-size: 1.25rem;
}

.logo-word em {
  font-style: normal;
  font-weight: 300;
  color: var(--text-muted);
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 1.25rem;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--text-main);
}

/* Hamburger Menu Icon */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  height: 2px; width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* ==========================================================================
   4. HERO & TIMEPAD STRIP
   ========================================================================== */
.hero {
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Orbit SVG Graphic Animation */
.hero-visual {
  display: flex;
  justify-content: center;
}

.orbit-svg {
  width: 100%;
  max-width: 360px;
}

.orbit-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1px;
}

.orbit-core {
  fill: var(--accent);
}

.orbit-node {
  fill: var(--text-main);
  transform-origin: 210px 210px;
  animation: spin linear infinite;
}

.orbit-node--a { animation-duration: 12s; }
.orbit-node--b { animation-duration: 20s; }
.orbit-node--c { animation-duration: 32s; }

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Live Timezone Strip */
.world-strip {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
  margin-top: 5rem;
  padding: 1rem 0;
}

.world-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.world-city {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.world-city-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.world-city-time {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.world-strip-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   5. SECTIONS: STATS, SERVICES, APPROACH & WHY
   ========================================================================== */
section:not(.hero) {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

/* Stats */
.stats { background: #0c0f16; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Services Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-4px);
  background: var(--bg-surface);
}

.service-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* Approach (Timeline Process) */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.timeline-step {
  border-top: 2px solid var(--border);
  padding-top: 1.5rem;
  position: relative;
}

.timeline-step:hover {
  border-top-color: var(--accent);
}

.timeline-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.timeline-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Why Us Section */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.why-lead {
  font-size: 1.25rem;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-list li {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
}

.why-mark {
  color: var(--accent);
  font-weight: bold;
}

/* ==========================================================================
   6. CONTACT FORM & INTERFACES
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
}

.contact-lead {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.contact-details div {
  margin-bottom: 1.5rem;
}

.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-details dd {
  font-size: 1.2rem;
  font-weight: 500;
}

.contact-details a {
  color: var(--text-main);
  text-decoration: none;
}

/* Form Styling */
.contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-row--hidden {
  display: none !important;
}

.form-status {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  padding: 4rem 0;
  background: #06080c;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--text-main); }
.footer-copy {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 968px) {
  .hero-grid, .why-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual { order: -1; }
  .orbit-svg { max-width: 240px; }
  
  .nav-toggle { display: block; }
  
  .main-nav {
    position: fixed;
    top: 80px; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 999;
  }
  
  .main-nav a {
    font-size: 1.5rem;
    font-family: var(--font-display);
    margin: 0;
  }

  /* When mobile nav is toggled open via JS */
  .main-nav.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta { display: none; }
}

@media (max-width: 640px) {
  .form-row--split { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}