:root {
  --ink: #f8fafc;
  --ink-soft: #94a3b8;
  --paper: #0f172a;
  --surface: rgba(30, 41, 59, 0.4);
  --surface-hover: rgba(30, 41, 59, 0.7);
  --white: #ffffff;
  --blue: #3b82f6;
  --blue-deep: #1e3a8a;
  --red: #ef4444;
  --green: #10b981;
  --gold: #f59e0b;
  --cyan: #06b6d4;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1, h2, h3, .brand strong, .button, .eyebrow, .metric, .service-number, .process-step span {
  font-family: "Outfit", Arial, sans-serif;
}

/* Layout Utilities */
.section, .process-band, .feature-band, .contact-section, .intro-band {
  padding: clamp(62px, 8vw, 108px) clamp(20px, 5vw, 76px);
  position: relative;
  z-index: 1;
}

.intro-band {
  padding: clamp(42px, 6vw, 70px) clamp(20px, 5vw, 76px);
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.intro-band p {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(1.25rem, 2.5vw, 2.1rem);
  line-height: 1.28;
  font-weight: 500;
  color: var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  margin-top: 0;
  font-size: clamp(2.45rem, 5.1vw, 5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin-bottom: 0;
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 12px;
  margin-top: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
  will-change: transform;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0;
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.header-action {
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 700;
  padding: 10px 18px;
  transition: all 250ms ease;
}

.header-action:hover {
  background: var(--cyan);
  color: var(--paper);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 14px 24px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  transition: all 250ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.button.primary:hover {
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.4);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 77px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 78px);
  padding: clamp(44px, 6vw, 84px) clamp(20px, 5vw, 76px) clamp(48px, 6vw, 76px);
  overflow: hidden;
  z-index: 1;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.orb-1 { width: 500px; height: 500px; background: var(--blue-deep); top: -200px; right: -100px; animation: float 15s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: rgba(6, 182, 212, 0.2); bottom: -100px; left: 5%; animation: float 18s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: rgba(16, 185, 129, 0.15); top: 30%; right: 40%; animation: float 12s ease-in-out infinite; }

@keyframes float { 
  0%, 100% { transform: translateY(0) scale(1); } 
  50% { transform: translateY(-40px) scale(1.05); } 
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
}

.hero-media img {
  position: absolute;
  right: -5vw;
  top: 50%;
  width: min(85vw, 1200px);
  transform: translateY(-50%) rotate(-5deg);
  filter: grayscale(0.2);
  will-change: transform, filter;
  transform-style: preserve-3d;
}

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

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero-actions, .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.showcase-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.showcase-top img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.showcase-top strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.showcase-top span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.system-preview {
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
}

.preview-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.preview-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.preview-bar span:nth-child(1) { background: #ef4444; }
.preview-bar span:nth-child(2) { background: #f59e0b; }
.preview-bar span:nth-child(3) { background: #10b981; }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.preview-grid span {
  min-height: 80px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.preview-grid span:nth-child(1) { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(255, 255, 255, 0.02)); }
.preview-grid span:nth-child(4) { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(255, 255, 255, 0.02)); }

.preview-lines {
  display: grid;
  gap: 12px;
}

.preview-lines span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.preview-lines span:nth-child(2) { width: 80%; }
.preview-lines span:nth-child(3) { width: 60%; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hero-metrics div {
  padding: 16px;
  background: rgba(15, 23, 42, 0.8);
  text-align: center;
}

.metric {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
}

.hero-metrics small {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Bento Grid System & Cards */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.bento-grid > * { grid-column: span 12; }

@media (min-width: 768px) {
  .service-grid > *:nth-child(1), .service-grid > *:nth-child(4) { grid-column: span 7; }
  .service-grid > *:nth-child(2), .service-grid > *:nth-child(3) { grid-column: span 5; }
  .process-grid > * { grid-column: span 6; }
  .tech-layout > *:nth-child(1) { grid-column: span 7; }
  .tech-layout > *:nth-child(2) { grid-column: span 5; }
  .project-grid > *:nth-child(1), .project-grid > *:nth-child(4) { grid-column: span 8; }
  .project-grid > *:nth-child(2), .project-grid > *:nth-child(3) { grid-column: span 4; }
}

@media (min-width: 1024px) {
  .process-grid > * { grid-column: span 3; }
  .project-grid > *:nth-child(1) { grid-column: span 8; }
  .project-grid > *:nth-child(2) { grid-column: span 4; }
  .project-grid > *:nth-child(3) { grid-column: span 4; }
  .project-grid > *:nth-child(4) { grid-column: span 8; }
}

.service-card, .process-step, .project-card, .tech-layout > div {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  --glow-color: rgba(6, 182, 212, 0.15);
}

.service-card > *, .process-step > *, .project-card > *, .tech-layout > div > * {
  position: relative;
  z-index: 1;
}

.service-card::after, .process-step::after, .project-card::after, .tech-layout > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--glow-color),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::after, .process-step:hover::after, .project-card:hover::after, .tech-layout > div:hover::after {
  opacity: 1;
}

/* Unique Glow Colors for Process Grid */
.process-grid .process-step:nth-child(1) { --glow-color: rgba(6, 182, 212, 0.25); } /* Cyan */
.process-grid .process-step:nth-child(2) { --glow-color: rgba(16, 185, 129, 0.25); } /* Emerald */
.process-grid .process-step:nth-child(3) { --glow-color: rgba(59, 130, 246, 0.25); } /* Blue */
.process-grid .process-step:nth-child(4) { --glow-color: rgba(245, 158, 11, 0.25); } /* Amber */

.service-card:hover, .process-step:hover, .project-card:hover, .tech-layout > div:hover {
  background: var(--surface-hover);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-8px);
}

.service-number, .process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.2rem;
}

.service-card p, .process-step p, .project-card p, .contact-copy p {
  color: var(--ink-soft);
  margin-bottom: 0;
  font-size: 1rem;
}

.tech-layout > div {
  justify-content: center;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-weight: 600;
  transition: all 200ms ease;
}

.pill-row span:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

.project-card {
  min-height: 320px;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 300ms ease;
}

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

.project-card > span {
  align-self: flex-start;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

/* Contact Section */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

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

.contact-list a {
  display: flex;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-weight: 600;
  transition: all 250ms ease;
}

.contact-list a:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan);
  transform: translateX(8px);
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 40px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.form-heading {
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.form-heading strong {
  font-size: 1.5rem;
  font-family: "Outfit", sans-serif;
}

.form-heading span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

label {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.botcheck { display: none; }

input, textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  transition: all 200ms ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer p { margin: 0; }
.site-footer a:hover { color: var(--cyan); }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1), transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px 20px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    padding-top: 8px;
  }
  .hero, .contact-section { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero-copy { margin: 0 auto 30px; }
  .hero-tags, .hero-actions { justify-content: center; }
  .hero-media { display: none; }
  .contact-form { padding: 24px; }
}
