/* ============================================
   GuruSoftwares — Premium Dark Theme
   Logo-matched: Black + Orange + Metallic
   ============================================ */

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  /* JS dismisses on document.fonts.ready (see main.js). This is only the
     no-JS safety net, kept past the JS cap so it can't reveal a font flash. */
  animation: preloaderFade 0.5s ease 2s forwards;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes preloaderFade {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.preloader-logo {
  width: 500px;
  max-width: 80vw;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-orange);
  z-index: 10001;
  width: 0%;
  transition: width 0.05s linear;
}

/* ---------- Cursor Glow ---------- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 66, 8, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

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

:root {
  /* Logo-matched palette */
  --bg: #050505;
  --bg-card: #0a0a0a;
  --bg-elevated: #0f0f0f;
  --bg-surface: #141414;

  --orange: #F84208;
  --orange-light: #FF6B35;
  --orange-dark: #D03500;
  --orange-glow: rgba(248, 66, 8, 0.35);

  --metal-light: #D4D4D8;
  --metal: #8B8B93;
  --metal-dark: #3F3F46;
  --metal-darker: #27272A;

  --white: #FAFAFA;
  --text: #E4E4E7;
  --text-muted: #A1A1AA;
  --text-dim: #8B8B93;

  --gradient-orange: linear-gradient(135deg, #F84208 0%, #FF6B35 50%, #F84208 100%);
  --gradient-metal: linear-gradient(135deg, #3F3F46 0%, #71717A 50%, #3F3F46 100%);
  --gradient-glow: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);

  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.06);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-w: 1200px;
  --section-pad: 140px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}

h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(34px, 4.5vw, 56px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; }

.text-orange {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--orange);
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-orange);
  color: #000;
  box-shadow: 0 0 40px var(--orange-glow), 0 4px 20px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 60px var(--orange-glow), 0 8px 32px rgba(0,0,0,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--metal-dark);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 30px rgba(248, 66, 8, 0.1);
}

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  padding: 12px 24px;
  font-size: 13px;
}

.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: var(--metal);
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-icon { transform: translateX(3px); }

.btn-lg {
  padding: 20px 44px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.5s var(--ease);
}

.header.scrolled {
  padding: 14px 0;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo img {
  height: 100px;
  width: auto;
  max-width: none;
  border-radius: 0;
  object-fit: contain;
}

.header.scrolled .logo img {
  height: 70px;
}

/* Hide text logo when image is present */
.logo-text {
  display: none;
}

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

.nav a {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--white);
  background: var(--glass);
}

.nav a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--gradient-orange) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  box-shadow: 0 0 24px rgba(248, 66, 8, 0.2);
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(248, 66, 8, 0.3) !important;
  background: var(--gradient-orange) !important;
}

/* Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 9991;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5.5px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Hero Background Video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

/* Animated gradient orb */
.hero-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-1 {
  top: -15%;
  right: -10%;
  background: var(--orange);
  animation-delay: 0s;
}

.hero-orb-2 {
  bottom: -20%;
  left: -15%;
  background: var(--orange-dark);
  opacity: 0.2;
  animation-delay: -4s;
  animation-duration: 16s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Diamond shape decoration (logo-inspired) */
.hero-diamond {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%) rotate(45deg);
  width: 320px;
  height: 320px;
  border: 1px solid rgba(248, 66, 8, 0.15);
  border-radius: 40px;
  animation: diamondSpin 30s linear infinite;
  pointer-events: none;
}

.hero-diamond::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(248, 66, 8, 0.1);
  border-radius: 28px;
}

.hero-diamond::after {
  content: '';
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(248, 66, 8, 0.06);
  border-radius: 20px;
}

@keyframes diamondSpin {
  0% { transform: translateY(-50%) rotate(45deg); }
  100% { transform: translateY(-50%) rotate(405deg); }
}

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

.hero-content { max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  background: rgba(248, 66, 8, 0.08);
  border: 1px solid rgba(248, 66, 8, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  position: relative;
}

.hero-badge-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero h1 { margin-bottom: 16px; }

.hero-tagline {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  line-height: 1.3;
}

.hero-sub {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stat-num span { color: var(--orange); }

.hero-stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ---------- Section spacing ---------- */
section { padding: var(--section-pad) 0; position: relative; }
.section-header { margin-bottom: 72px; }
.section-header h2 { margin-bottom: 16px; }
.bg-elevated { background: var(--bg-elevated); }

/* ---------- Marquee ---------- */
.marquee-section {
  padding: 48px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-card);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-card), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--bg-card), transparent); }

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  padding: 0 40px;
  font-size: 20px;
  font-weight: 700;
  color: var(--metal);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
  cursor: default;
}

.marquee-item:hover { color: var(--orange); }

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--metal-dark);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248,66,8,0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.card:hover {
  border-color: rgba(248, 66, 8, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 40px rgba(248,66,8,0.05);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(248, 66, 8, 0.08);
  border: 1px solid rgba(248, 66, 8, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 24px;
  transition: all 0.4s var(--ease);
}

.card:hover .card-icon {
  background: rgba(248, 66, 8, 0.12);
  box-shadow: 0 0 24px rgba(248, 66, 8, 0.15);
  transform: scale(1.05);
}

.card h3 { margin-bottom: 12px; }

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Project cards ---------- */
.project-card { padding: 0; cursor: pointer; }

.project-thumb {
  height: 240px;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-thumb-text {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(248, 66, 8, 0.25);
  transition: all 0.6s var(--ease);
  position: relative;
  z-index: 1;
}

.project-card:hover .project-thumb-text {
  color: rgba(248, 66, 8, 0.4);
  transform: scale(1.05);
}

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card), transparent 50%);
}

.project-body { padding: 28px 32px 32px; }

.project-label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(248, 66, 8, 0.1);
  color: var(--orange);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.project-body h3 { margin-bottom: 10px; font-size: 22px; }
.project-body p { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 18px; }

.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-tags span {
  padding: 4px 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ---------- Steps / Process ---------- */
.step-card { text-align: center; padding: 48px 32px; }

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--gradient-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #000;
  margin: 0 auto 24px;
  box-shadow: 0 0 30px var(--orange-glow);
  transition: all 0.4s var(--ease);
}

.card:hover .step-num {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 50px var(--orange-glow);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.faq-item:hover { border-color: rgba(248,66,8,0.15); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
  transition: color 0.3s var(--ease);
}

.faq-q:hover { color: var(--orange); }

.faq-q-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(248, 66, 8, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.faq-q-icon svg { width: 12px; height: 12px; color: var(--orange); transition: transform 0.3s var(--ease); }

.faq-item.open .faq-q-icon { background: rgba(248,66,8,0.15); }
.faq-item.open .faq-q-icon svg { transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 400px; }

.faq-a-inner {
  padding: 0 28px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- Contact Form ---------- */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--metal-darker);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }

.form-input:focus,
.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(248, 66, 8, 0.1);
}

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

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: var(--gradient-glow);
  pointer-events: none;
  animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { color: var(--text-muted); font-size: 18px; margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-card);
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand { max-width: 360px; }
.footer-brand .logo img { height: 80px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-top: 16px; }

.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 5px 0;
  transition: all 0.3s var(--ease);
}

.footer-col a:hover { color: var(--orange); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  color: var(--orange);
  border-color: rgba(248,66,8,0.3);
  box-shadow: 0 0 20px rgba(248,66,8,0.1);
}

/* ---------- Page Hero (subpages) ---------- */
.page-hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: var(--gradient-glow);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 24px; max-width: 700px; }
.page-hero .section-desc { margin-bottom: 36px; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }
.reveal-d6 { transition-delay: 0.48s; }

/* No-JS / non-executing crawler fallback — content must render without JS */
@media (scripting: none) {
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
}

/* Scale reveal variant */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-spring);
}

.reveal-scale.vis {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ---------- Benefits grid ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- Two-col layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-card-img {
  height: 200px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.blog-card-img-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(248, 66, 8, 0.08);
  border: 1px solid rgba(248, 66, 8, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  transition: all 0.4s var(--ease);
}

.blog-card:hover .blog-card-img-icon {
  background: rgba(248, 66, 8, 0.15);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(248, 66, 8, 0.2);
}

.blog-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.blog-card-cat {
  padding: 3px 10px;
  background: rgba(248, 66, 8, 0.1);
  color: var(--orange);
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.blog-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.35;
  transition: color 0.3s var(--ease);
}

.blog-card:hover h3 { color: var(--orange); }

.blog-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  transition: gap 0.3s var(--ease);
}

.blog-card:hover .blog-card-link { gap: 10px; }

/* Blog post single */
.blog-post { max-width: 760px; margin: 0 auto; }

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-dim);
}

.blog-post h1 { margin-bottom: 20px; font-size: clamp(32px, 4vw, 48px); }

.blog-post-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 48px 0 20px;
  color: var(--white);
}

.blog-post-content h3 {
  font-size: 20px;
  margin: 36px 0 16px;
  color: var(--white);
}

.blog-post-content p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 20px;
  padding-left: 24px;
}

.blog-post-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.blog-post-content ol li { list-style: decimal; }

.blog-post-content strong { color: var(--white); }

.blog-post-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-content a:hover { opacity: 0.8; }

.blog-post-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--glass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}

.blog-post-cta {
  margin-top: 56px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.blog-post-cta h3 { margin-bottom: 12px; }
.blog-post-cta p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }

/* ---------- 3D Tilt Cards ---------- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card .card-icon,
.tilt-card h3 {
  transform: translateZ(30px);
}

/* ---------- Magnetic Buttons ---------- */
.btn-magnetic {
  transition: transform 0.3s var(--ease-spring);
}

/* ---------- Hero Word Animation ---------- */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-15deg);
  animation: wordReveal 0.7s var(--ease-out) forwards;
}

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

.hero-word:nth-child(1) { animation-delay: 0.3s; }
.hero-word:nth-child(2) { animation-delay: 0.42s; }
.hero-word:nth-child(3) { animation-delay: 0.54s; }
.hero-word:nth-child(4) { animation-delay: 0.66s; }
.hero-word:nth-child(5) { animation-delay: 0.78s; }
.hero-word:nth-child(6) { animation-delay: 0.9s; }

.hero-line {
  display: block;
  overflow: hidden;
}

/* ---------- Page Transition ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

.page-transition.active {
  animation: pageWipe 0.6s var(--ease) forwards;
}

@keyframes pageWipe {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  50.01% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* ---------- Project Cards with Screenshots ---------- */
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

/* ---------- Noise Texture Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --section-pad: 100px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-diamond { display: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; }

  /* ---- Mobile Nav Fix ---- */
  .nav {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #000 !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 9990 !important;
    overflow-y: auto;
    padding: 60px 20px 40px;
  }

  .nav.active { display: flex !important; }

  .nav a {
    font-size: 20px;
    padding: 16px 28px;
    color: #fff !important;
    width: 100%;
    text-align: center;
    border-radius: 0;
    background: none !important;
  }

  .nav a:hover { background: rgba(255,255,255,0.08) !important; }

  .nav a.nav-cta {
    margin-top: 24px;
    width: auto;
    padding: 16px 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-orange) !important;
    color: #000 !important;
  }

  .hamburger { display: flex; }

  /* ---- Mobile Logo ---- */
  .logo img {
    height: 50px !important;
  }

  .header.scrolled .logo img {
    height: 40px !important;
  }

  .footer-brand .logo img {
    height: 40px !important;
  }

  /* ---- Mobile Hero ---- */
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-content { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-tagline { font-size: 20px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 24px; }

  /* ---- Reduce hero orb intensity on mobile ---- */
  .hero-orb { opacity: 0.15 !important; width: 400px; height: 400px; }
  .hero-video { opacity: 0.15 !important; }
  .hero-stat-num { font-size: 28px; }
  h1 { font-size: clamp(32px, 8vw, 48px); }
  h2 { font-size: clamp(26px, 6vw, 36px); }

  /* ---- Mobile Grids ---- */
  .grid-2, .grid-3, .grid-4, .benefits-grid, .blog-grid { grid-template-columns: 1fr; }

  /* ---- Mobile Cards - Force Visible ---- */
  .reveal, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .card { padding: 24px; }

  /* ---- Mobile Project Cards ---- */
  .project-thumb { height: 180px; }
  .project-thumb-text { font-size: 40px; }

  /* ---- Mobile Two-Col ---- */
  .two-col { grid-template-columns: 1fr; gap: 32px; }

  /* ---- Mobile Page Hero ---- */
  .page-hero { padding: 130px 0 60px; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 40px); }

  /* ---- Mobile Footer ---- */
  .footer { padding: 48px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* ---- Mobile Buttons ---- */
  .btn { padding: 14px 28px; font-size: 13px; }
  .btn-lg { padding: 16px 32px; font-size: 14px; }

  /* ---- Mobile Marquee ---- */
  .marquee-item { font-size: 16px; padding: 0 24px; }

  /* ---- Mobile CTA ---- */
  .cta-inner p { font-size: 16px; }

  /* ---- Mobile FAQ ---- */
  .faq-q { padding: 18px 20px; font-size: 15px; }
  .faq-a-inner { padding: 0 20px 18px; font-size: 14px; }

  /* ---- Mobile Blog Post ---- */
  .blog-post-content h2 { font-size: 22px; }
  .blog-post-content p { font-size: 15px; }

  /* ---- Disable desktop-only effects ---- */
  .cursor-glow { display: none; }
  .noise-overlay { display: none; }
  .hero-diamond { display: none; }

  /* ---- Mobile Preloader ---- */
  .preloader-logo { width: 200px !important; }

  /* ---- Step cards ---- */
  .step-card { padding: 32px 24px; }
  .step-num { width: 50px; height: 50px; font-size: 18px; }
}

/* ============================================================
   Accessibility — added in audit pass 2026-05-05
   ============================================================ */

/* ---- Skip-to-content link (WCAG 2.4.1 Bypass Blocks) ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--orange, #F84208);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---- Visible focus ring for keyboard users (WCAG 2.4.7) ---- */
:where(a, button, input, select, textarea, summary, [tabindex], .faq-q):focus-visible {
  outline: 2px solid var(--orange, #F84208);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(248, 66, 8, 0.55);
}

/* ---- GDPR consent text on contact form ---- */
.form-consent {
  font-size: 13px;
  color: var(--text-muted, #A1A1AA);
  margin: -8px 0 16px;
  line-height: 1.6;
}
.form-consent a {
  color: var(--orange, #F84208);
  text-decoration: underline;
}

/* ---------- Blog author bio ---------- */
.author-bio-section { padding-top: 0; }
.author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--metal-darker);
  border-radius: var(--radius-lg);
}
.author-bio-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #b83006);
}
.author-bio-name { font-weight: 700; color: var(--text); margin: 0 0 8px; font-size: 16px; }
.author-bio-name span { color: var(--text-dim); font-weight: 500; }
.author-bio-text { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; margin: 0; }
.author-bio-text a { color: var(--orange); font-weight: 600; }
@media (max-width: 560px) { .author-bio { flex-direction: column; gap: 14px; padding: 24px; } }

/* ---- Honour prefers-reduced-motion (WCAG 2.3.3) ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-orb, .hero-grid, .hero-diamond,
  .cursor-glow, .marquee-track, .preloader {
    animation: none !important;
    transform: none !important;
  }
}
