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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0a0a0f;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Binary Rain Canvas */
#binary-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.relative {
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  text-align: center;
}

/* As a flex item the container sizes to its content, and the stats grid's widest
   layout (4 x 150px + gaps) pushed it ~730px wide on phones, off both edges.
   Pin it to the viewport so the grid wraps instead. */
.hero > .container {
  width: 100%;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(168, 85, 247, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.icon {
  width: 1rem;
  height: 1rem;
  color: #a855f7;
}

h1 {
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

/* Second line of the h1: says what we do, so the heading isn't just the name. */
.h1-tagline {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1.125rem, 4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: #e2e8f0;
}

.gradient-text {
  background: linear-gradient(90deg, #a855f7, #ec4899, #a855f7);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 5rem;
}

.btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.btn-primary {
  /* #9333ea rather than the brand #a855f7: white on #a855f7 is under 4.5:1. */
  background-color: #9333ea;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  background-color: #7e22ce;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-outline:hover {
  background-color: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #a855f7;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Two stats per row on phones rather than one tall column. */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }
}

/* Services Section */
.section {
  padding: 6rem 1rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.highlight {
  color: #a855f7;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  flex: 1 1 300px;
  max-width: 380px;
  background-color: rgba(168, 85, 247, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background-color: rgba(168, 85, 247, 0.2);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #a855f7;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-description {
  color: #94a3b8;
  line-height: 1.6;
}

/* Why Choose Us Section */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .two-column {
    grid-template-columns: 1fr 1fr;
  }
}

.benefits-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #a855f7;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.binary-box {
  aspect-ratio: 1;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.binary-content {
  text-align: center;
}

.binary-number {
  /* Eight monospace digits: 12vw keeps them inside the padded box on a 320px phone. */
  font-size: clamp(2rem, 12vw, 4rem);
  font-weight: bold;
  color: #a855f7;
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
}

.binary-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.binary-subtitle {
  color: #94a3b8;
}

/* Contact Section */
.contact-box {
  max-width: 48rem;
  margin: 0 auto;
  background-color: rgba(168, 85, 247, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
  text-align: center;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.contact-description {
  color: #94a3b8;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding: 3rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.footer-text {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Contact Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 30rem;
  background-color: #12121a;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
  padding: 2.5rem;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.popup-overlay.active .popup-box {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 9999px;
  color: #e2e8f0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background-color: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.5);
}

.popup-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
}

.popup-sub {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.popup-field {
  margin-bottom: 1.25rem;
}

.popup-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #e2e8f0;
}

.popup-field input,
.popup-field textarea {
  width: 100%;
  background-color: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: #e2e8f0;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.popup-field input::placeholder,
.popup-field textarea::placeholder {
  color: #64748b;
}

.popup-field input:focus,
.popup-field textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.popup-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.popup-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Thank-you Dialog */
.thankyou-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.thankyou-overlay.active {
  opacity: 1;
  visibility: visible;
}

.thankyou-box {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background-color: #12121a;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
  padding: 2.5rem;
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.thankyou-overlay.active .thankyou-box {
  transform: translateY(0);
}

.thankyou-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 9999px;
  background-color: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
}

.thankyou-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.thankyou-sub {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}
/* FAQ — native <details>, so it works without JS and every answer is in the HTML */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 1rem;
  padding: 0 1.5rem;
  transition: border-color 0.3s ease;
}

.faq-item[open],
.faq-item:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e2e8f0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: #a855f7;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: #94a3b8;
  padding-bottom: 1.25rem;
}

/* ---- Shared chrome for the inner pages (services, about, work, contact, 404) ---- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: #0a0a0f;
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border: 1px solid #a855f7;
  border-radius: 0.5rem;
}

.site-header {
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  background-color: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: bold;
  color: #e2e8f0;
  text-decoration: none;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
}

.site-nav a,
.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:hover,
.footer-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #c084fc;
}

.page-hero {
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
}

.page-hero .hero-subtitle {
  margin-bottom: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #64748b;
}

.breadcrumbs a {
  color: #c084fc;
  text-decoration: none;
}

.prose {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  color: #cbd5e1;
  font-size: 1.0625rem;
}

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #e2e8f0;
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin: 1.75rem 0 0.75rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: #c084fc;
}

/* Buttons inside the prose keep their own colors, not the link color. */
.prose a.btn {
  text-decoration: none;
}

.prose a.btn-primary {
  color: #ffffff;
}

.prose a.btn-outline {
  color: #e2e8f0;
}

.prose strong {
  color: #e2e8f0;
}

.callout {
  margin: 2.5rem 0 0;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08));
  text-align: center;
}

.callout h2 {
  margin-top: 0;
}

.callout .button-group {
  margin-top: 1.5rem;
}

/* Service cards on the homepage link to their pages. */
a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-more {
  display: inline-block;
  margin-top: 1rem;
  color: #c084fc;
  font-size: 0.9375rem;
  font-weight: 500;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding-left: 0 !important;
}

.related-links a {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background-color: rgba(168, 85, 247, 0.05);
  color: #e2e8f0;
  text-decoration: none;
}

.related-links a:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.contact-form {
  margin-top: 1.5rem;
}

.contact-form .popup-submit {
  width: auto;
  padding: 0.875rem 2rem;
}

.form-status {
  margin-top: 1rem;
  min-height: 1.5rem;
}

.footer-content {
  flex-wrap: wrap;
}

.footer-nav {
  width: 100%;
  order: 3;
}

.footer-nav ul {
  justify-content: center;
}

.footer-place {
  font-size: 0.875rem;
  color: #94a3b8;
}
