:root {
  --bg: #030305;
  --bg-soft: #0a0c12;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: #b5b8c7;
  --text-soft: #8a8f9f;
  --accent-1: #6d7cff;
  --accent-2: #b45cff;
  --accent-3: #22d3ee;
  --accent-4: #34d399;
  --max-width: 1180px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(109, 124, 255, 0.16), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(180, 92, 255, 0.14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.12), transparent 35%),
    var(--bg);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Background Effects */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.aurora-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.42;
  animation: drift 20s infinite alternate ease-in-out;
  mix-blend-mode: screen;
}

.aurora-1 {
  top: -10%; left: -8%; width: 38rem; height: 38rem;
  background: radial-gradient(circle, var(--accent-1), transparent 60%);
}
.aurora-2 {
  top: 10%; right: -10%; width: 42rem; height: 42rem;
  background: radial-gradient(circle, var(--accent-2), transparent 60%);
  animation-delay: -6s;
}
.aurora-3 {
  bottom: -12%; left: 20%; width: 36rem; height: 36rem;
  background: radial-gradient(circle, var(--accent-3), transparent 60%);
  animation-delay: -11s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 8%) scale(1.08); }
  100% { transform: translate(-4%, -4%) scale(0.96); }
}

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

.page-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(3, 3, 5, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.9), rgba(34, 211, 238, 0.75));
  box-shadow: 0 10px 30px rgba(109, 124, 255, 0.28);
  font-weight: 800;
}

.brand-copy small {
  display: block;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.25s ease;
  position: relative;
}

nav a:hover {
  color: #fff;
}

nav a.active {
  color: #fff;
  font-weight: 600;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-1);
  border-radius: 2px;
}

.header-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease;
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.11);
}

/* Main Content */
main {
  flex: 1;
}

section {
  padding: 96px 0;
}

.hero {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-header {
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(14px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: center;
  margin-top: 28px;
}

.hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 11ch;
}

.text-gradient {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy p {
  margin-top: 24px;
  max-width: 660px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.actions.center {
  justify-content: center;
}

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn {
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.28), rgba(34, 211, 238, 0.16));
  box-shadow: var(--shadow);
}

.btn-secondary {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero-card,
.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 28px;
}

.eyebrow {
  color: #d9dcff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-list {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.feature-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-item span,
.section-copy p,
.contact-intro p,
.detail-card p,
.stat-card p,
.office-card p {
  color: var(--text-muted);
}

.stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-top: 14px;
}

.section-copy {
  max-width: 560px;
}

.capabilities-grid,
.about-grid,
.contact-grid,
.details-grid,
.team-grid {
  display: grid;
  gap: 18px;
}

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

.about-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

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

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}

.detail-card,
.office-card {
  padding: 28px;
}

.detail-card h3,
.office-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.detail-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 18px;
  color: var(--text-muted);
}

.detail-card li {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-card li:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-card span {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 400px;
  width: 90%;
  padding: 40px;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.alternate-bg {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head.center {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.process-step {
  position: relative;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: 20px;
}

.process-step h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.process-step p {
  color: var(--text-muted);
}

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

.industry-card {
  padding: 32px;
}

.industry-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.industry-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 30px;
}

.author strong {
  display: block;
  font-size: 1.05rem;
}

.author span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.bottom-cta {
  padding: 120px 0;
}

.cta-box {
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(109, 124, 255, 0.1), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(109, 124, 255, 0.2);
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(109, 124, 255, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-intro {
  padding: 32px;
}

.contact-list {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-row span {
  color: var(--text-soft);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-row strong,
.contact-row a {
  font-size: 1.08rem;
  font-weight: 600;
}

.contact-note {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* Footer */
footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUpAnim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .capabilities-grid,
  .about-grid,
  .contact-grid,
  .details-grid,
  .stats,
  .team-grid,
  .process-grid,
  .industries-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-inner,
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  section {
    padding: 78px 0;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero-card,
  .detail-card,
  .contact-intro,
  .office-card {
    padding: 22px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }
}
