/* ============================================
   IO STUDIO — Global Styles
   Apple-inspired minimalist design language
   ============================================ */

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.preloader__orbs {
  position: relative;
  width: 80px;
  height: 80px;
}

.preloader__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #fff 0%, #c4b5fd 40%, #6366f1 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader__orb {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  animation: preloaderOrbit 2s linear infinite;
}

.preloader__orb--1 {
  background: #a78bfa;
  animation-delay: 0s;
  --orbit-radius: 30px;
}

.preloader__orb--2 {
  background: #818cf8;
  animation-delay: -0.4s;
  --orbit-radius: 30px;
}

.preloader__orb--3 {
  background: #c084fc;
  animation-delay: -0.8s;
  --orbit-radius: 30px;
}

.preloader__orb--4 {
  background: #06b6d4;
  animation-delay: -1.2s;
  --orbit-radius: 30px;
}

.preloader__orb--5 {
  background: #a855f7;
  animation-delay: -1.6s;
  --orbit-radius: 30px;
}

@keyframes preloaderOrbit {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); opacity: 1; }
  50% { opacity: 0.4; }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); opacity: 1; }
}

@keyframes preloaderPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

.preloader__text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: preloaderFadeIn 0.6s 0.3s ease forwards;
}

.preloader__text span {
  font-weight: 400;
  color: #71717a;
}

@keyframes preloaderFadeIn {
  to { opacity: 1; }
}

body.is-loading {
  overflow: hidden;
}

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

:root {
  --white: #fafafa;
  --black: #0a0a0a;
  --gray-50: #f7f7f8;
  --gray-100: #ececef;
  --gray-200: #d4d4d8;
  --gray-300: #a1a1aa;
  --gray-400: #71717a;
  --gray-500: #52525b;
  --gray-600: #3f3f46;
  --gray-700: #27272a;
  --gray-800: #18181b;
  --gray-900: #09090b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --container: 1200px;
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(168, 85, 247, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background 0.3s, opacity 0.3s;
  opacity: 0;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-hover {
  width: 56px;
  height: 56px;
  border-color: rgba(192, 132, 252, 0.7);
  background: rgba(168, 85, 247, 0.1);
}

.cursor.is-click {
  width: 28px;
  height: 28px;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #c084fc;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-dot.is-visible {
  opacity: 1;
}

.cursor-dot.is-hover {
  opacity: 0;
}

/* Hide custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none !important; }
  * { cursor: auto !important; }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a855f7, #06b6d4);
  z-index: 999;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--gray-200);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a, button, input, select, textarea, [role="button"] {
  cursor: none;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* --- Section Headers --- */
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.03em;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--gray-400);
  max-width: 520px;
  margin-top: 1.25rem;
  line-height: 1.7;
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

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

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

.reveal-words {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav__logo span {
  font-weight: 400;
  color: var(--gray-400);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: color 0.25s;
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.55rem 1.35rem;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background 0.25s, transform 0.25s !important;
}

.nav__cta:hover {
  background: var(--accent-dark);
  transform: scale(1.03);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--nav-height) 20px 60px;
}

.hero__bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: var(--black);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orb-color) 0%, transparent 70%);
  animation: orbFloat 30s ease-in-out infinite alternate;
}

.hero__orb--1 {
  --orb-color: rgba(99, 102, 241, 0.35);
  width: 600px;
  height: 600px;
  top: -10%;
  left: -5%;
}

.hero__orb--2 {
  --orb-color: rgba(168, 85, 247, 0.3);
  width: 500px;
  height: 500px;
  bottom: -15%;
  right: -5%;
  animation-delay: -10s;
}

.hero__orb--3 {
  --orb-color: rgba(6, 182, 212, 0.2);
  width: 400px;
  height: 400px;
  top: 35%;
  left: 50%;
  animation-delay: -20s;
}

@keyframes orbFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.6; }
  33%  { transform: translate3d(40px, -50px, 0) scale(1.08); opacity: 0.4; }
  66%  { transform: translate3d(-30px, 30px, 0) scale(0.92); opacity: 0.7; }
  100% { transform: translate3d(20px, -20px, 0) scale(1.04); opacity: 0.5; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.02;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: var(--accent-light);
}

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--gray-400);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

.btn--ghost {
  border: 1px solid var(--gray-600);
  color: var(--gray-200);
}

.btn--ghost:hover {
  border-color: var(--gray-400);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Statement
   ============================================ */
.statement {
  padding: clamp(80px, 12vw, 160px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-300);
  max-width: 900px;
  letter-spacing: -0.02em;
  will-change: transform, opacity;
}

.statement__text em {
  color: var(--white);
  font-style: normal;
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: clamp(80px, 12vw, 160px) 0;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.04));
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-4px);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s, box-shadow 0.4s;
}

.service-card:hover .service-card__icon {
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   Work / Portfolio
   ============================================ */
.work {
  padding: clamp(80px, 12vw, 160px) 0;
}

.work__showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.work__item {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.5s var(--ease-out);
}

.work__item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.work__image {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.work__mockup {
  width: 85%;
  transition: transform 0.5s var(--ease-out);
}

.work__item:hover .work__mockup {
  transform: scale(1.03);
}

.mockup-browser {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.mockup-browser__bar {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  display: flex;
  gap: 6px;
}

.mockup-browser__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mockup-browser__content {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mockup-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mockup-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

.work__info {
  padding: 1.75rem 2rem;
}

.work__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
}

.work__info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin: 0.5rem 0 0.4rem;
}

.work__info p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ============================================
   Stats
   ============================================ */
.stats {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.stat__suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent-light);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
}

/* ============================================
   Process
   ============================================ */
.process {
  padding: clamp(80px, 12vw, 160px) 0;
}

.process__timeline {
  max-width: 720px;
  margin: 0 auto;
}

.process__step {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.process__step:last-child {
  border-bottom: none;
}

.process__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(99, 102, 241, 0.2);
  line-height: 1;
  min-width: 80px;
  letter-spacing: -0.03em;
}

.process__content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.process__content p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: clamp(80px, 12vw, 160px) 0;
}

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

.testimonial {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.25rem;
  transition: all 0.4s var(--ease-out);
}

.testimonial:hover {
  border-color: rgba(99, 102, 241, 0.15);
}

.testimonial blockquote p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-300);
  margin-bottom: 1.75rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
}

.testimonial__author span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ============================================
   About
   ============================================ */
.about {
  padding: clamp(80px, 12vw, 160px) 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about__desc {
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.75;
  margin-top: 1.25rem;
}

.about__values {
  display: grid;
  gap: 1.75rem;
}

.value {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: border-color 0.3s;
}

.value:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.value h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.value p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: clamp(80px, 12vw, 160px) 0;
}

.contact__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.contact__sub {
  font-size: 1.1rem;
  color: var(--gray-400);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact__form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--gray-500);
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select__trigger {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--gray-500);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.3s, background 0.3s;
}

.custom-select__trigger:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.custom-select.is-open .custom-select__trigger {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.custom-select__arrow {
  color: var(--gray-500);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.custom-select.is-open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__text.is-selected {
  color: var(--white);
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.custom-select.is-open .custom-select__options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select__option {
  padding: 0.75rem 1rem;
  color: var(--gray-400);
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.custom-select__option:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--white);
}

.custom-select__option.is-selected {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.contact__form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form .btn {
  margin-top: 0.5rem;
}

/* RGPD Consent Checkbox */
.form__consent {
  margin-top: 0.25rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.2s;
  position: relative;
}

.consent-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.consent-label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-label a:hover {
  color: var(--white);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer__logo span {
  font-weight: 400;
  color: var(--gray-400);
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer__col a,
.footer__address {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
  transition: color 0.25s;
}

.footer__col a:hover {
  color: var(--gray-200);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  color: var(--gray-500);
  transition: color 0.25s;
}

.footer__social a:hover {
  color: var(--white);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid .testimonial:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer__grid .footer__col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.5s var(--ease-out);
  }

  .nav__links.is-open {
    right: 0;
  }

  .nav__links a {
    font-size: 1.5rem;
  }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .nav__toggle.is-active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .nav__toggle.is-active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .work__showcase {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .process__step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .process__number {
    font-size: 2.5rem;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid .testimonial:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

}

/* ============================================
   Parallax Sections
   ============================================ */
.parallax-section {
  will-change: transform;
}

/* Enhanced work item hover with overlay */
.work__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  border-radius: inherit;
}

.work__item:hover .work__image::after {
  opacity: 1;
}

.work__item:hover .work__mockup {
  transform: scale(1.05) translateY(-4px);
}

/* ============================================
   Hero Word Animation
   ============================================ */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(-40deg);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transform-origin: center bottom;
}

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

/* Stagger each word */
.split-word:nth-child(1) { transition-delay: 0.1s; }
.split-word:nth-child(2) { transition-delay: 0.2s; }
.split-word:nth-child(3) { transition-delay: 0.3s; }
.split-word:nth-child(4) { transition-delay: 0.4s; }
.split-word:nth-child(5) { transition-delay: 0.5s; }

.hero__line:nth-child(2) .split-word:nth-child(1) { transition-delay: 0.4s; }
.hero__line:nth-child(2) .split-word:nth-child(2) { transition-delay: 0.5s; }

/* ============================================
   Marquee
   ============================================ */
.marquee {
  padding: 2rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
  will-change: transform;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.marquee__dot {
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  background: var(--accent) !important;
  border-radius: 50%;
  font-size: 0 !important;
  letter-spacing: 0 !important;
}

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

/* ============================================
   Magnetic Buttons
   ============================================ */
.btn--magnetic {
  position: relative;
  transition: all 0.3s var(--ease-out);
}

/* ============================================
   Tilt 3D Service Cards
   ============================================ */
.service-card {
  transform-style: preserve-3d;
  perspective: 800px;
}

.service-card__icon {
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover .service-card__icon {
  transform: translateZ(20px);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
  padding: 1.25rem clamp(20px, 5vw, 80px);
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner.is-hidden {
  transform: translateY(100%);
}

.cookie-banner__content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner__content p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.cookie-banner__content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal__content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.legal__content p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal__content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal__content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal-link {
  color: var(--gray-500) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.5rem;
}

.footer__legal-link:hover {
  color: var(--gray-300) !important;
}

/* ============================================
   Service Pages
   ============================================ */
.service-hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 0 80px;
  overflow: hidden;
}

.service-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.service-hero__orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
}

.service-hero__content {
  position: relative;
  z-index: 2;
}

.service-hero__back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  transition: color 0.25s;
}

.service-hero__back:hover {
  color: var(--accent-light);
}

.service-details {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.service-detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem;
  transition: border-color 0.3s;
}

.service-detail-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.service-detail-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(99, 102, 241, 0.2);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.service-detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.service-detail-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.service-process {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--gray-900);
}

.service-process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-process__step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.service-process__icon {
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.service-process__step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.service-process__step p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.service-deliverables {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-deliverables__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.service-deliverables__list {
  display: grid;
  gap: 1.25rem;
}

.deliverable {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--gray-300);
}

.deliverable svg {
  color: var(--accent-light);
  flex-shrink: 0;
}

.service-cta {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--gray-900);
  text-align: center;
}

.service-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================
   Responsive Additions
   ============================================ */
@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .marquee__track span {
    font-size: 1rem;
  }

  .service-details__grid {
    grid-template-columns: 1fr;
  }

  .service-process__steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-deliverables__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
  padding: 1.25rem clamp(20px, 5vw, 80px);
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner.is-hidden {
  transform: translateY(100%);
}

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

.cookie-banner__content p {
  font-size: 0.85rem;
  color: #71717a;
  line-height: 1.6;
}

.cookie-banner__content a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* --- Reduced Motion (performance for weak devices) --- */
@media (prefers-reduced-motion: reduce) {
  .hero__orb,
  .preloader__orb,
  .preloader__core {
    animation: none;
  }
  .hero__orb { opacity: 0.15; }
  * { transition-duration: 0.01ms !important; }
}
