/* ===================================
   JESÚS ALONSO — POWER PLATFORM
   Design: Dark Luxury Tech
   =================================== */

/* ----------- TOKENS ----------- */
:root {
  --bg:          #070b15;
  --bg-surface:  #0d1220;
  --bg-card:     #111827;
  --bg-card-hover: #161e30;
  --border:      rgba(255,255,255,0.07);
  --border-glow: rgba(0,120,212,0.3);

  --blue:        #0078d4;
  --blue-bright: #2196f3;
  --cyan:        #00b4d8;
  --cyan-dim:    rgba(0,180,216,0.15);

  --text:        #f0f4f8;
  --text-muted:  #6b7f99;
  --text-dim:    #3d4f68;

  --radius-sm:   8px;
  --radius:      16px;
  --radius-lg:   24px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----------- CURSOR ----------- */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s var(--ease-out), height 0.2s var(--ease-out), opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,180,216,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s;
}

body:has(a:hover) .cursor { width: 16px; height: 16px; }
body:has(a:hover) .cursor-trail { width: 48px; height: 48px; border-color: rgba(0,180,216,0.7); }

/* ----------- LAYOUT ----------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

/* ----------- NOISE / BG ----------- */
.noise {
  position: absolute;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,120,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,120,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ----------- NAVIGATION ----------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 11, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo .dot { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover { background: var(--blue-bright) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ----------- BUTTONS ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 30px rgba(0,120,212,0.3);
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 40px rgba(0,120,212,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-glow);
  background: rgba(0,120,212,0.07);
}

.btn-large {
  font-size: 1.0625rem;
  padding: 1rem 2.25rem;
}

/* ----------- TAGS / LABELS ----------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
}

/* ----------- SECTION TITLE ----------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-title em {
  font-style: normal;
  color: var(--cyan);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-tag {
  justify-content: center;
}

.section-header .section-tag::before { display: none; }

.section-header .section-desc {
  margin: 1.5rem auto 0;
}

/* ----------- HERO ----------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 6rem;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,120,212,0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatGlow 8s ease-in-out infinite;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,180,216,0.1) 0%, transparent 70%);
  bottom: 100px;
  left: -100px;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--cyan); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}

.title-line { display: block; }

.accent-line {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}

.accent-dot { color: var(--cyan); -webkit-text-stroke: 0; }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-subtitle strong { color: var(--text); font-weight: 500; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.stat-plus { color: var(--cyan); font-size: 1.5rem; }

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ----------- TECH ORBIT ----------- */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-orbit {
  position: relative;
  width: 420px;
  height: 420px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring-1 {
  width: 160px; height: 160px;
  border-color: rgba(0,120,212,0.2);
}
.orbit-ring-2 {
  width: 280px; height: 280px;
  border-color: rgba(0,120,212,0.12);
  animation: spin 30s linear infinite;
}
.orbit-ring-3 {
  width: 420px; height: 420px;
  border-color: rgba(0,120,212,0.07);
  animation: spin 50s linear infinite reverse;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-center {
  position: absolute;
  width: 70px; height: 70px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border-radius: 50%;
  border: 1px solid var(--border);
}

.ms-logo { width: 32px; height: 32px; }

.orbit-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 50%;
  left: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%)
    rotate(var(--angle))
    translateY(-195px)
    rotate(calc(-1 * var(--angle)));
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.orbit-icon svg { width: 28px; height: 28px; }
.orbit-icon img { display: block; }

.orbit-icon:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0,120,212,0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ----------- ABOUT ----------- */
.about {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-left {
  position: sticky;
  top: 7rem;
}

.about-portrait {
  margin-top: 3rem;
}

.portrait-frame {
  position: relative;
  width: 220px;
  height: 280px;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portrait-initials {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.3;
  letter-spacing: -0.05em;
}

.portrait-accent { display: none; }

.about-lead {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.about-lead strong { color: var(--cyan); font-weight: 500; }

.about-body {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 3rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.pillar:hover { border-color: var(--border-glow); }

.pillar-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(0,120,212,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.pillar-icon svg { width: 18px; height: 18px; }

.pillar h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.pillar p { font-size: 0.875rem; color: var(--text-muted); }

/* ----------- SERVICES ----------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, color-mix(in srgb, var(--icon-color, var(--blue)) 8%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--icon-color, var(--blue)) 40%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

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

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: color-mix(in srgb, var(--icon-color, var(--blue)) 12%, transparent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--icon-color, var(--blue)) 20%, transparent);
}

.card-icon svg { width: 30px; height: 30px; }

.card-arrow {
  color: var(--text-dim);
  transition: color 0.3s, transform 0.3s;
}

.service-card:hover .card-arrow {
  color: var(--text-muted);
  transform: translate(4px, -4px);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  transition: color 0.3s;
}

.service-card:hover .card-tag { color: var(--cyan); }

/* ----------- CTA / CONTACT ----------- */
.contact {
  text-align: center;
}

.contact-inner {
  position: relative;
  padding: 5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
}

.contact-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,120,212,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-title em {
  font-style: normal;
  color: var(--cyan);
}

.contact-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.contact-actions {
  position: relative;
  margin-bottom: 1.5rem;
}

.contact-note {
  font-size: 0.8125rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  position: relative;
}

/* ----------- FOOTER ----------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links h5 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ----------- DETAIL PAGES ----------- */
.detail-hero {
  padding: 8rem 0 5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.2s, gap 0.2s;
}

.detail-back:hover { color: var(--text); gap: 0.75rem; }

.detail-back svg { width: 16px; height: 16px; transform: scaleX(-1); }

.detail-icon-large {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.detail-icon-large svg { width: 40px; height: 40px; }

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.detail-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

.detail-cases {
  padding: 6rem 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.case-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.case-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.case-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.case-result {
  font-size: 0.8125rem;
  color: var(--cyan);
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  background: rgba(0,180,216,0.08);
  border-radius: 100px;
  display: inline-block;
  border: 1px solid rgba(0,180,216,0.15);
}

.detail-cta {
  padding: 4rem 0 6rem;
}

.detail-cta-inner {
  text-align: center;
  padding: 3rem 4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.detail-cta .contact-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 1rem;
}

/* ----------- REVEAL ANIMATION ----------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
    gap: 3rem;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-left { position: static; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }

  html, body { overflow-x: hidden; max-width: 100%; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.25rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; z-index: 101; }

  .hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-subtitle { font-size: 1rem; max-width: 100%; }
  .hero-content { overflow: hidden; width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .contact-title { font-size: clamp(1.35rem, 6vw, 1.9rem); }
  .contact-title br { display: none; }
  .contact-inner { padding: 3rem 1.25rem; }
  .btn-large { font-size: 0.95rem; padding: 0.9rem 1.5rem; white-space: normal; text-align: center; }
  .contact-actions .btn { max-width: 100%; width: 100%; justify-content: center; }

  .detail-cta .contact-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .detail-cta-inner { padding: 2.5rem 1.25rem; }

  .about-pillars { gap: 1.25rem; }

  .cursor, .cursor-trail { display: none; }
  body { cursor: auto; }
}
