/* Typography */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #050816;
  --bg-elevated: #090f24;
  --bg-soft: rgba(255, 255, 255, 0.02);
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --accent-soft-strong: rgba(79, 70, 229, 0.28);
  --accent-alt: #06b6d4;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.22);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.55);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #111827 0, #020617 45%, #000 100%);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

main {
  padding-inline: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.page-shell {
  max-width: 1120px;
  margin-inline: auto;
}

/* Top navigation */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.9),
      rgba(2, 6, 23, 0.72),
      rgba(2, 6, 23, 0.16)
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.nav-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 1.1rem;
  background: conic-gradient(
    from 200deg,
    #4f46e5,
    #22d3ee,
    #a855f7,
    #f97316,
    #4f46e5
  );
  padding: 2px;
}

.brand-mark-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, #1f2937, #020617 55%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

.brand-glyph {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  border: 2px solid rgba(148, 163, 184, 0.8);
  border-top-color: #22d3ee;
  border-left-color: #4f46e5;
  transform: rotate(35deg);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.85rem;
}

.nav-links a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.nav-links a.nav-primary {
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
}

.nav-links a.nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(56, 189, 248, 0.45);
}

.nav-toggle {
  display: none;
}

/* Hero layouts */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-top: 2.8rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.75);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hero-kicker-pill {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.9), #22d3ee);
  color: #0b1120;
  font-weight: 600;
}

.hero-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.4rem, 3.1vw + 1.2rem, 3.4rem);
  line-height: 1.03;
  letter-spacing: 0.01em;
  margin: 0 0 1.2rem;
}

.hero-title span.accent {
  background: linear-gradient(130deg, #38bdf8, #a855f7, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 31rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
  align-items: center;
}

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: var(--text);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.55);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.85);
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.75);
  background: rgba(15, 23, 42, 0.98);
}

.btn .pill-indicator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #22c55e, #22c55e, transparent);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.22);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--text);
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), #020617);
  padding: 1px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-card-inner {
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.35), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(249, 115, 22, 0.3), transparent 55%),
    #020617;
  padding: 1.4rem 1.4rem 1.7rem;
  position: relative;
  overflow: hidden;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.hero-chip {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.72rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #a3e635);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.38);
}

.hero-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-metric {
  padding: 0.65rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
}

.hero-metric-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-metric-value {
  font-family: "Space Grotesk", system-ui, sans-serif;
  margin-top: 0.15rem;
  font-size: 1.1rem;
}

.hero-orbit {
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
}

.orbit-node {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: var(--muted);
}

.orbit-node span {
  font-size: 0.5rem;
}

.orbit-node.node-a {
  top: 18%;
  left: 8%;
}

.orbit-node.node-b {
  bottom: 12%;
  left: 16%;
}

.orbit-node.node-c {
  top: 8%;
  right: 12%;
}

.orbit-node.node-d {
  bottom: 10%;
  right: 6%;
}

/* Section header */
.section-header {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title-block h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
}

.section-title-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.section-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--muted);
}

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), #020617);
  padding: 1rem 1rem 1.1rem;
  overflow: hidden;
  transition: all 0.18s ease-out;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.service-card:hover {
  border-color: rgba(56, 189, 248, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.85);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.8), #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.6);
}

.service-title {
  font-size: 0.96rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.service-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.service-list li + li {
  margin-top: 0.2rem;
}

.service-list li span.bullet {
  margin-top: 0.25rem;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
}

.service-link {
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(191, 219, 254, 0.95);
}

.service-link span.arrow {
  font-size: 0.8rem;
  transition: transform 0.18s ease-out;
}

.service-card:hover .service-link span.arrow {
  transform: translateX(3px);
}

/* Detail layouts */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 2.4rem;
}

.detail-copy h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.9rem;
  margin: 0 0 0.7rem;
}

.detail-copy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.detail-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.detail-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
}

.detail-highlight {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.96);
  font-size: 0.85rem;
}

.detail-highlight strong {
  color: var(--text);
}

.detail-hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.4), #020617);
  box-shadow: var(--shadow-soft);
}

.detail-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.15),
      rgba(15, 23, 42, 0.9)
    ),
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.6), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(236, 72, 153, 0.5), transparent 55%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-hero-label {
  position: absolute;
  inset-inline: 1.2rem;
  bottom: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.8rem;
  color: var(--text);
}

.detail-hero-label-main {
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-hero-label-meta {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.detail-hero-label-meta span {
  display: block;
}

/* Lists / sections on detail pages */
.detail-section {
  margin-top: 2.2rem;
}

.detail-section h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.detail-section p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-chip-card {
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  padding: 0.8rem 0.9rem;
  font-size: 0.86rem;
}

.detail-chip-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.detail-chip-card span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding: 1.5rem 1.5rem 2.2rem;
  margin-top: 3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner {
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-contact-item {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-contact-item strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: rgba(191, 219, 254, 0.95);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 2.2rem;
  }

  .hero-visual {
    order: -1;
  }

  main {
    padding-inline: 1.25rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 720px) {
  .nav-inner {
    padding-inline: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.96);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.95rem;
  }

  .nav-toggle:active {
    transform: scale(0.96);
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Simple mobile nav drawer (no JS fallback: always hidden) */
.nav-drawer {
  display: none;
}

/* Page-specific vertical flow (non-landing pages) */
.page-services .hero,
.page-it-services .hero,
.page-erp .hero,
.page-sap-implementations .hero,
.page-ai-services .hero {
  grid-template-columns: minmax(0, 1fr);
}

.page-services .detail-layout,
.page-it-services .detail-layout,
.page-erp .detail-layout,
.page-sap-implementations .detail-layout,
.page-ai-services .detail-layout {
  grid-template-columns: minmax(0, 1fr);
}

