/* ===================================================
   RAXIOR — Cinematic Core Design System
   Vanilla CSS — No framework dependencies
   =================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Surface */
  --surface: #10150c;
  --surface-dim: #10150c;
  --surface-bright: #353b30;
  --surface-container-lowest: #0b1007;
  --surface-container-low: #181d14;
  --surface-container: #1c2118;
  --surface-container-high: #262c22;
  --surface-container-highest: #31362c;
  --on-surface: #dfe4d6;
  --on-surface-variant: #c0cab4;
  --inverse-surface: #dfe4d6;
  --inverse-on-surface: #2d3228;

  /* Outline */
  --outline: #8a9480;
  --outline-variant: #404a39;
  --surface-tint: #87db57;

  /* Primary */
  --primary: #87dc57;
  --on-primary: #143800;
  --primary-container: #6dbf3e;
  --on-primary-container: #1c4900;
  --inverse-primary: #2c6c00;

  /* Secondary */
  --secondary: #c8c6c6;
  --on-secondary: #303030;
  --secondary-container: #474747;
  --on-secondary-container: #b6b5b4;

  /* Tertiary */
  --tertiary: #ffb0d2;
  --on-tertiary: #63003e;
  --tertiary-container: #ff82bf;
  --on-tertiary-container: #79124f;

  /* Error */
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffdad6;

  /* Background */
  --background: #10150c;
  --on-background: #dfe4d6;

  /* Raw colors */
  --dark-bg: #0A0A0A;
  --dark-card: #1A1A1A;
  --border-grey: #3A3A3A;
  --text-muted: #a0a0a0;

  /* Spacing */
  --unit: 8px;
  --container-max: 1440px;
  --gutter: 24px;
  --margin-page: 64px;
  --section-gap: 160px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--dark-bg);
  color: var(--on-background);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-grey);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---------- Typography ---------- */
.text-hero-display {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 96px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.text-headline-xl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.text-headline-lg {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.text-headline-md {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.text-body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}
.text-body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
.text-label-mono {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-primary  { color: var(--primary); }
.text-white    { color: #fff; }
.text-muted    { color: var(--on-surface-variant); }
.italic        { font-style: italic; }
.uppercase     { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.2em; }
.relative      { position: relative; }

/* ---------- Glow Effects ---------- */
.glow-lime {
  box-shadow: 0 0 20px 0 rgba(109, 191, 62, 0.3);
}
.glow-lime-intense {
  box-shadow: 0 0 30px 5px rgba(109, 191, 62, 0.45);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 9999px;
  padding: 16px 40px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  box-shadow: 0 0 20px 0 rgba(109, 191, 62, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 30px 5px rgba(109, 191, 62, 0.5);
  transform: scale(1.05);
}
.btn-primary:active {
  transform: scale(0.95);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}
.btn-sm {
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(0,0,0,0.85);
  border-bottom-color: rgba(255,255,255,0.1);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  transition: height 0.4s var(--ease-out);
}
.site-header.scrolled .header-inner {
  height: 64px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-brand img {
  height: 32px;
  width: auto;
}
.header-brand span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
}

/* Desktop Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s, border-color 0.3s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s var(--ease-out);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(24px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.mobile-nav a:hover {
  color: var(--primary);
}

/* ---------- Grid Mesh Overlay ---------- */
.grid-mesh {
  background-image:
    linear-gradient(var(--border-grey) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-grey) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  inset: 0;
}
.hero-glow {
  position: absolute;
  top: 50%;  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(135,220,87,0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
  transition: transform 0.3s ease-out;
}
.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.02;
}
.hero-watermark img {
  width: 80%;
  height: auto;
  filter: grayscale(100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
}
.hero-chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 32px;
  color: #fff;
}
.hero .subtitle {
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--on-surface-variant);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 96px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat-card {
  text-align: left;
  padding: 24px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border-left: 2px solid var(--primary);
}
.stat-card .stat-value {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.stat-card .stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  background: var(--primary);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}
.marquee-track span {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--on-primary);
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 160px 0;
}
.section-dark {
  background: #0E0E0E;
}
.section-black {
  background: var(--dark-bg);
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
.about-label {
  display: block;
  color: var(--primary);
  margin-bottom: 16px;
}
.about-text h2 {
  color: #fff;
  margin-bottom: 32px;
}
.about-text p {
  color: var(--on-surface-variant);
  line-height: 1.8;
  margin-bottom: 32px;
}
.about-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-badge .icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-badge .icon-circle .material-symbols-outlined {
  color: var(--primary);
  font-size: 24px;
}
.about-image-wrap {
  position: relative;
}
.about-image-glow {
  position: absolute;
  inset: -16px;
  background: rgba(135,220,87,0.1);
  filter: blur(48px);
  border-radius: 50%;
}
.about-image-card {
  position: relative;
  background: var(--dark-card);
  border: 1px solid var(--border-grey);
  padding: 16px;
  border-radius: 12px;
  overflow: hidden;
}
.about-image-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ---------- Services Bento Grid ---------- */
.services-header {
  margin-bottom: 64px;
}
.services-header h2 {
  color: #fff;
  margin-bottom: 16px;
}
.services-header .accent-bar {
  height: 4px;
  width: 96px;
  background: var(--primary);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.service-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-grey);
  border-top: 4px solid var(--primary);
  padding: 40px;
  backdrop-filter: blur(12px);
  transition: background 0.5s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.service-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.service-card-top .material-symbols-outlined {
  font-size: 48px;
  color: var(--primary);
}
.service-card-top .card-number {
  font-size: 72px;
  font-weight: 700;
  color: rgba(255,255,255,0.08);
  line-height: 1;
}
.service-card h3 {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.service-card p {
  color: var(--on-surface-variant);
  margin-bottom: 32px;
}
.service-card ul li {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ---------- Process Section ---------- */
.process-header {
  text-align: center;
  margin-bottom: 80px;
}
.process-header h2 {
  color: #fff;
}
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.process-line {
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 1px;
  border-top: 1px dashed rgba(255,255,255,0.2);
  display: none;
}
.process-step {
  position: relative;
  z-index: 10;
  text-align: center;
}
.step-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-weight: 700;
  font-size: 32px;
  transition: all 0.3s;
}
.step-circle.active {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 20px 0 rgba(109,191,62,0.3);
}
.step-circle.inactive {
  background: var(--dark-card);
  border: 1px solid var(--border-grey);
  color: #fff;
}
.process-step h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.process-step p {
  color: var(--on-surface-variant);
  font-size: 14px;
}

/* ---------- Portfolio / Work Section ---------- */
.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}
.work-header .label {
  display: block;
  color: var(--primary);
  margin-bottom: 16px;
}
.work-header h2 {
  color: #fff;
}
.work-header a {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--primary);
  transition: color 0.3s;
}
.work-header a:hover {
  color: var(--primary);
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.work-item {
  cursor: pointer;
  overflow: hidden;
}
.work-item:nth-child(2) {
  margin-top: 96px;
}
.work-thumb {
  aspect-ratio: 16 / 10;
  background: var(--dark-card);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.work-item:hover .work-thumb img {
  transform: scale(1.1);
}
.work-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(109,191,62,0.2);
  opacity: 0;
  transition: opacity 0.5s;
}
.work-item:hover .work-thumb-overlay {
  opacity: 1;
}
.work-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.work-info h3 {
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}
.work-info p {
  color: var(--on-surface-variant);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.work-info .material-symbols-outlined {
  color: var(--primary);
  font-size: 24px;
  transition: transform 0.3s;
}
.work-item:hover .work-info .material-symbols-outlined {
  transform: translate(4px, -4px);
}

/* ---------- Testimonials ---------- */
.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}
.testimonials-header h2 {
  color: #fff;
}
.testimonials-scroll {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding-bottom: 48px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonials-scroll::-webkit-scrollbar {
  display: none;
}
.testimonial-card {
  min-width: 400px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  padding: 48px;
  border: 1px solid var(--border-grey);
  scroll-snap-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
}
.testimonial-stars .material-symbols-outlined {
  color: var(--primary);
  font-size: 20px;
  font-variation-settings: 'FILL' 1;
}
.testimonial-card blockquote {
  color: #fff;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 48px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(135,220,87,0.2);
  overflow: hidden;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-author .name {
  color: #fff;
  font-weight: 700;
}
.testimonial-author .role {
  color: var(--on-surface-variant);
  font-size: 12px;
  text-transform: uppercase;
}

/* ---------- Tech Stack ---------- */
.tech-stack {
  padding: 96px 0;
  border-top: 1px solid var(--dark-card);
  border-bottom: 1px solid var(--dark-card);
}
.tech-stack-label {
  text-align: center;
  margin-bottom: 48px;
  color: var(--on-surface-variant);
}
.tech-stack-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 64px;
  opacity: 0.5;
}
.tech-stack-logos span {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  transition: color 0.3s, transform 0.3s;
  cursor: pointer;
}
.tech-stack-logos span:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: rgba(135,220,87,0.05);
}
.cta-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}
.cta-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.03;
}
.cta-watermark img {
  width: 50%;
  height: auto;
  filter: grayscale(100%);
}
.cta-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.cta-content h2 {
  color: #fff;
  margin-bottom: 48px;
}
.cta-content p {
  color: var(--on-surface-variant);
  font-size: 18px;
  margin-bottom: 48px;
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: #0E0E0E;
  border-top: 1px solid var(--border-grey);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.contact-info h2 {
  color: #fff;
  margin-bottom: 24px;
}
.contact-info p {
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  line-height: 1.8;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--on-surface-variant);
}
.contact-detail .material-symbols-outlined {
  color: var(--primary);
  font-size: 24px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.form-group input,
.form-group textarea {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-grey);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--primary);
  box-shadow: 0 2px 8px rgba(109,191,62,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group input.error,
.form-group textarea.error {
  border-bottom-color: var(--error);
}
.form-error {
  color: var(--error);
  font-size: 12px;
  display: none;
}
.form-success {
  display: none;
  background: rgba(109,191,62,0.1);
  border: 1px solid var(--primary);
  padding: 16px 24px;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}
.form-success.show {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 80px 0 0;
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.footer-brand img {
  height: 24px;
  width: auto;
}
.footer-brand span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
}
.footer-desc {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  line-height: 1.7;
  max-width: 240px;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 24px;
}
.footer-links li {
  margin-bottom: 16px;
}
.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
}
.footer-taglines {
  display: flex;
  gap: 32px;
}
.footer-taglines span {
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive: Tablet (< 1024px) ---------- */
@media (max-width: 1024px) {
  .text-hero-display { font-size: 64px; }
  .text-headline-xl  { font-size: 48px; }
  .text-headline-lg  { font-size: 36px; }
  .text-headline-md  { font-size: 24px; }

  .header-nav { display: none; }
  .hamburger  { display: flex; }
  .mobile-nav { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }
  .process-line { display: none; }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .work-item:nth-child(2) {
    margin-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section { padding: 96px 0; }
}

/* ---------- Responsive: Mobile (< 768px) ---------- */
@media (max-width: 768px) {
  .text-hero-display { font-size: 40px; }
  .text-headline-xl  { font-size: 36px; }
  .text-headline-lg  { font-size: 28px; }
  .text-headline-md  { font-size: 22px; }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats .stat-card:last-child {
    display: none;
  }
  .hero-buttons {
    flex-direction: column;
    margin-bottom: 48px;
  }
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .testimonial-card {
    min-width: 300px;
    padding: 32px;
  }
  .tech-stack-logos {
    gap: 32px;
  }
  .tech-stack-logos span {
    font-size: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .marquee-track span {
    font-size: 20px;
  }
  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section { padding: 64px 0; }
}

/* Ensure hidden stat shows on larger */
@media (min-width: 769px) {
  .hero-stats .stat-card:last-child {
    display: block;
  }
}

/* Large screen line */
@media (min-width: 1025px) {
  .process-line {
    display: block;
  }
}
