/* ============================================
   CANARY WEB — Apple-Inspired Design System
   ============================================ */

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

:root {
  --white: #fbfbfd;
  --black: #1d1d1f;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-400: #86868b;
  --gray-600: #6e6e73;
  --gray-800: #424245;
  --accent: #4db8d1;
  --accent-dark: #3a9ab5;
  --gradient-1: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 100%);
  --gradient-2: linear-gradient(135deg, #4db8d1 0%, #2196F3 100%);
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-text);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* --- Typography --- */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-sm {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.text-large {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: var(--gray-600);
  font-weight: 400;
}

.text-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

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

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 10rem 0;
}

.section-sm {
  padding: 6rem 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: all 0.5s var(--ease-apple);
}

.nav.scrolled {
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  transition: color 0.5s var(--ease-apple);
}

.nav.scrolled .nav-logo {
  color: var(--black);
}

.nav-logo .logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.5s var(--ease-apple);
}

.nav-logo .logo-white {
  display: block;
}

.nav-logo .logo-dark {
  display: none;
}

.nav.scrolled .nav-logo .logo-white {
  display: none;
}

.nav.scrolled .nav-logo .logo-dark {
  display: block;
}

.nav-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--gradient-2);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

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

.nav-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease-apple);
  font-weight: 400;
}

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

.nav.scrolled .nav-links a {
  color: var(--gray-600);
}

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

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 980px;
  transition: all 0.3s var(--ease-apple);
}

.nav.scrolled .nav-cta {
  background: var(--black);
  border-color: var(--black);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.nav.scrolled .nav-cta:hover {
  background: var(--gray-800);
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 14px;
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #1d1d1f !important;
  border-radius: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(0,0,0,0.05);
  color: #1d1d1f !important;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  position: absolute;
  left: 3px;
  transition: all 0.3s var(--ease-apple);
}

.nav.scrolled .nav-toggle span {
  background: var(--black);
}

.nav-toggle span:nth-child(1) { top: 7px; }
.nav-toggle span:nth-child(2) { top: 12px; }
.nav-toggle span:nth-child(3) { top: 17px; }

.nav-toggle.active span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 184, 209, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroPulse 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
  top: 30%;
  left: 60%;
  transform: translate(-50%, -50%);
  animation: heroPulse 10s ease-in-out infinite reverse;
}

@keyframes heroPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 980px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.5;
  font-weight: 400;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--black);
  border-radius: 980px;
  font-size: 1.0625rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-apple);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 980px;
  font-size: 1.0625rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-apple);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.04);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-apple);
  display: inline-block;
}

.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow {
  transform: translateX(3px);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

/* --- Manifesto Section --- */
.manifesto {
  background: var(--white);
  padding: 8rem 0;
  text-align: center;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto;
  color: var(--black);
}

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

/* --- Apple-Style Services --- */
.ap-services { background: var(--white); padding-top: 0; }

.ap-intro { padding: 10rem 0 6rem; text-align: center; }
.ap-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.ap-headline { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }

.ap-service { min-height: 85vh; display: flex; align-items: center; padding: 5rem 0; overflow: hidden; transition: background 0.6s var(--ease-apple), color 0.6s var(--ease-apple); }
.ap-service[data-theme="light"] { background: var(--white); color: var(--black); }
.ap-service[data-theme="gray"] { background: var(--gray-100); color: var(--black); }
.ap-service[data-theme="dark"] { background: #0a0a0f; color: var(--white); }

.ap-service-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.ap-service--reverse .ap-service-inner { direction: rtl; }
.ap-service--reverse .ap-service-inner > * { direction: ltr; }

/* Text */
.ap-service-text .ap-eyebrow { margin-bottom: 1.5rem; }
.ap-title { font-family: var(--font-display); font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.ap-desc { font-size: 1.125rem; line-height: 1.6; color: var(--gray-600); margin-bottom: 2.5rem; max-width: 420px; }
.ap-service[data-theme="dark"] .ap-desc { color: rgba(255,255,255,0.45); }

.ap-link { font-size: 1.125rem; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.3s var(--ease-apple); }
.ap-link:hover { gap: 0.8rem; }
.ap-link span { transition: transform 0.3s var(--ease-apple); }
.ap-link:hover span { transform: translateX(3px); }
.ap-link--light { color: var(--accent); }

/* Visuals */
.ap-service-visual { display: flex; align-items: center; justify-content: center; }

/* Browser mockup */
.ap-mockup--browser { width: 100%; background: #fff; border-radius: 16px; box-shadow: 0 30px 100px rgba(0,0,0,0.12); overflow: hidden; animation: apFloat 7s ease-in-out infinite; }
.ap-browser-dots { display: flex; gap: 6px; padding: 12px 16px; background: #f8f8f8; border-bottom: 1px solid #eee; }
.ap-browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.ap-browser-dots span:nth-child(1) { background: #ff5f57; }
.ap-browser-dots span:nth-child(2) { background: #ffbd2e; }
.ap-browser-dots span:nth-child(3) { background: #28c840; }
.ap-browser-content { display: flex; min-height: 260px; }
.ap-ui-sidebar { width: 52px; background: #fafafe; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid #f0f0f0; }
.ap-ui-item { height: 7px; border-radius: 4px; background: #e4e4e8; }
.ap-ui-item.active { background: var(--accent); }
.ap-ui-main { flex: 1; padding: 16px; }
.ap-ui-topbar { height: 14px; width: 35%; background: #e8e8ed; border-radius: 4px; margin-bottom: 16px; }
.ap-ui-cards { display: flex; gap: 12px; margin-bottom: 16px; }
.ap-ui-card { flex: 1; background: #f8f8fc; border-radius: 10px; padding: 12px; min-height: 90px; display: flex; align-items: flex-end; }
.ap-chart { display: flex; align-items: flex-end; gap: 5px; width: 100%; height: 60px; }
.ap-bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--accent), #2196F3); height: var(--h); animation: apBarGrow 1.5s ease-out forwards; transform-origin: bottom; }
.ap-sparkline { width: 100%; height: 60px; }
.ap-ui-rows { display: flex; flex-direction: column; gap: 8px; }
.ap-ui-row { height: 10px; background: #f2f2f5; border-radius: 5px; width: 100%; animation: apShimmer 2.5s ease-in-out infinite; }

/* Phone mockup */
.ap-mockup--phones { position: relative; width: 320px; height: 400px; }
.ap-phone { position: absolute; width: 170px; background: #1d1d1f; border-radius: 28px; padding: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.15); }
.ap-phone--front { top: 0; left: 0; z-index: 2; animation: apFloat 6s ease-in-out infinite; }
.ap-phone--behind { top: 30px; right: 0; z-index: 1; opacity: 0.75; transform: scale(0.93); animation: apFloat 6s ease-in-out infinite 1.5s; }
.ap-phone-notch { width: 45%; height: 16px; background: #1d1d1f; border-radius: 0 0 12px 12px; margin: 0 auto; position: relative; z-index: 2; }
.ap-phone-body { background: #fff; border-radius: 20px; min-height: 300px; overflow: hidden; padding: 0; }
.ap-ph-header { height: 28px; background: linear-gradient(135deg, #f093fb, #f5576c); }
.ap-ph-hero { height: 55px; background: linear-gradient(135deg, rgba(240,147,251,0.12), rgba(245,87,108,0.12)); margin: 8px; border-radius: 10px; }
.ap-ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 8px 8px; }
.ap-ph-tile { height: 44px; border-radius: 8px; background: #f5f0f3; }
.ap-phone-bar { display: flex; justify-content: center; gap: 20px; padding: 8px 0 4px; }
.ap-phone-bar span { width: 18px; height: 3px; border-radius: 2px; background: #ddd; }
.ap-phone-body--alt { background: #f8f8ff; }
.ap-ph-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #f093fb, #f5576c); margin: 16px auto 10px; }
.ap-ph-ring-wrap { display: flex; justify-content: center; padding: 6px 0; }
.ap-ph-ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid #eee; border-top-color: #f5576c; border-right-color: #f093fb; animation: apSpin 3s linear infinite; }
.ap-ph-lines { padding: 10px 16px; }
.ap-ph-lines span { display: block; height: 8px; border-radius: 4px; background: #e8e8ed; margin-bottom: 6px; width: 100%; }

/* Neural mockup */
.ap-mockup--neural { width: 100%; aspect-ratio: 1/1; max-width: 420px; position: relative; }
.ap-net { width: 100%; height: 100%; }
.ap-conn { stroke: rgba(77,184,209,0.12); stroke-width: 1; }
.ap-conn:nth-child(odd) { animation: apConnPulse 4s ease-in-out infinite; }
.ap-conn:nth-child(even) { animation: apConnPulse 4s ease-in-out infinite 2s; }
.ap-dot { fill: var(--accent); animation: apDotPulse 3s ease-in-out infinite; }
.ap-dot:nth-child(odd) { animation-delay: 0.5s; }
.ap-dot--core { fill: url(#apGrad2); filter: drop-shadow(0 0 12px rgba(77,184,209,0.5)); }
.ap-ai-prompt { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.04); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 10px 20px; font-size: 0.8rem; color: rgba(255,255,255,0.4); white-space: nowrap; }
.ap-blink { animation: apBlink 1s step-end infinite; color: var(--accent); font-weight: 300; }

/* Orbit mockup */
.ap-mockup--orbit { position: relative; width: 300px; height: 300px; }
.ap-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(77,184,209,0.08); }
.ap-orbit--1 { inset: 40px; animation: apSpin 18s linear infinite; }
.ap-orbit--2 { inset: 10px; animation: apSpin 28s linear infinite reverse; }
.ap-orbit--3 { inset: -20px; animation: apSpin 38s linear infinite; }
.ap-planet { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); top: -5px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 14px rgba(77,184,209,0.5); }
.ap-planet--purple { background: #764ba2; box-shadow: 0 0 14px rgba(118,75,162,0.5); top: 50%; left: -5px; transform: translateY(-50%); }
.ap-planet--pink { background: #f5576c; box-shadow: 0 0 14px rgba(245,87,108,0.5); bottom: -5px; top: auto; left: 35%; }
.ap-orbit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }

.ap-orbit-wrapper {
  background: #0a0a0f;
  border-radius: 28px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Apple Animations */
@keyframes apFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes apBarGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes apShimmer { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes apSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes apConnPulse { 0%,100% { stroke: rgba(77,184,209,0.06); } 50% { stroke: rgba(77,184,209,0.3); } }
@keyframes apDotPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; r: 7; } }
@keyframes apBlink { 50% { opacity: 0; } }

/* Old services kept for compatibility */
.services {
  background: var(--gray-100);
  padding: 10rem 0;
}

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

.section-header .text-label {
  margin-bottom: 1rem;
}

.section-header .heading-lg {
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-apple);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  background: var(--gray-100);
  transition: all 0.5s var(--ease-apple);
}

.service-card:hover .service-icon {
  background: var(--gradient-2);
  transform: scale(1.05);
}

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

.service-card p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.6;
}

.service-number {
  position: absolute;
  top: 2.5rem;
  right: 3rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-200);
  transition: color 0.5s var(--ease-apple);
}

.service-card:hover .service-number {
  color: var(--accent);
}

/* --- Showcase / Dark Section --- */
.showcase {
  background: var(--black);
  color: var(--white);
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}

.showcase::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 184, 209, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.showcase-header {
  text-align: center;
  margin-bottom: 6rem;
}

.showcase-header .text-label {
  color: var(--accent);
  margin-bottom: 1rem;
}

.showcase-header .heading-lg {
  color: var(--white);
}

.showcase-header .text-large {
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  margin: 1.5rem auto 0;
}

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

.tech-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.5s var(--ease-apple);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 184, 209, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-apple);
}

.tech-card:hover {
  border-color: rgba(77, 184, 209, 0.3);
  transform: translateY(-4px);
}

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

.tech-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.tech-card-icon img {
  display: block;
  margin: 0 auto;
}

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.tech-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 1;
}

/* --- Philosophy / About --- */
.philosophy {
  padding: 12rem 0;
  background: var(--white);
}

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

.philosophy-label {
  margin-bottom: 1.5rem;
}

.philosophy-title {
  margin-bottom: 2rem;
}

.philosophy-text {
  margin-bottom: 2rem;
}

.philosophy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: left;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.philosophy-visual {
  position: relative;
  height: 500px;
  border-radius: 28px;
  overflow: hidden;
}

.philosophy-visual-inner {
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.orbit-ring-1 {
  inset: 0;
  animation: orbitSpin 20s linear infinite;
}

.orbit-ring-2 {
  inset: -40px;
  animation: orbitSpin 30s linear infinite reverse;
}

.orbit-ring-3 {
  inset: -80px;
  animation: orbitSpin 40s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.orbit-ring-1 .orbit-dot { top: -5px; left: 50%; transform: translateX(-50%); }
.orbit-ring-2 .orbit-dot { top: 50%; right: -5px; transform: translateY(-50%); }
.orbit-ring-3 .orbit-dot { bottom: -5px; left: 30%; }

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--white);
  text-align: center;
  letter-spacing: -0.03em;
}

.orbit-center span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Process Section --- */
.process {
  background: var(--gray-100);
  padding: 10rem 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--gray-200);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.5s var(--ease-apple);
}

.process-step:hover .step-number {
  background: var(--black);
  color: var(--white);
  transform: scale(1.1);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  max-width: 220px;
  margin: 0 auto;
}

/* --- CTA Section --- */
.cta-section {
  padding: 10rem 0;
  background: var(--white);
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--black);
  color: var(--white);
  border-radius: 32px;
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 184, 209, 0.12) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
}

.cta-box .heading-lg {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-box .text-large {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.cta-box .btn-primary {
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.footer {
  background: var(--gray-100);
  padding: 5rem 0 2rem;
}

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

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  font-size: 0.9375rem;
  color: var(--gray-600);
  transition: color 0.3s var(--ease-apple);
}

.footer-col ul a:hover {
  color: var(--black);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: all 0.3s var(--ease-apple);
}

.footer-social a:hover {
  background: var(--black);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--gray-400);
  transition: color 0.3s var(--ease-apple);
}

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

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-apple);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s var(--ease-apple);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

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

.seo-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: all 0.5s var(--ease-apple);
}

.seo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.seo-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.seo-keywords span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gray-100);
  border-radius: 980px;
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.seo-card:hover .seo-keywords span {
  background: rgba(77, 184, 209, 0.1);
  color: var(--accent-dark);
}

.seo-lang {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* --- Form States --- */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--gray-600);
}

.form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid #fecaca;
}

/* --- Portfolio Preview (homepage) --- */
.portfolio-preview {
  background: var(--white);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .ap-service-inner { grid-template-columns: 1fr; gap: 3rem; }
  .ap-service--reverse .ap-service-inner { direction: ltr; }
  .ap-service { min-height: auto; padding: 5rem 0; }
  .ap-service-visual { order: -1; }
  .ap-mockup--phones { width: 260px; height: 340px; margin: 0 auto; }
  .ap-phone { width: 140px; }

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

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

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .philosophy-visual {
    height: 400px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .process-steps::before {
    display: none;
  }

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

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

@media (max-width: 768px) {
  .ap-intro { padding: 6rem 0 3rem; }
  .ap-service { padding: 3rem 0; min-height: auto; }
  .ap-service-inner { gap: 2rem; }
  .ap-title { font-size: clamp(2rem, 8vw, 3rem); }
  .ap-desc { font-size: 1rem; }
  .ap-mockup--phones { width: 220px; height: 300px; }
  .ap-phone { width: 120px; }
  .ap-mockup--orbit { width: 200px; height: 200px; }
  .ap-mockup--neural { max-width: 260px; }
  .ap-mockup--browser { border-radius: 10px; }
  .ap-orbit-wrapper { padding: 1.5rem; border-radius: 20px; }
  .manifesto { padding: 5rem 0 !important; }
  .manifesto-text { font-size: clamp(1.5rem, 5vw, 2.5rem) !important; }
  .page-header { padding: 7rem 0 3rem; }
  .page-header .heading-xl { font-size: clamp(2.5rem, 10vw, 4rem); }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(251, 251, 253, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 5;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 6rem 0;
  }

  .manifesto {
    padding: 8rem 0;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .philosophy-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .cta-box {
    padding: 3.5rem 2rem;
    border-radius: 24px;
  }

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

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

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

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .stat-number { font-size: 1.75rem; }
  .heading-lg { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .heading-xl { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .ap-headline { font-size: clamp(1.8rem, 7vw, 2.5rem) !important; }
  .ap-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .sv-hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .cta-box { padding: 2.5rem 1.5rem; }
  .cta-box .heading-lg { font-size: clamp(1.5rem, 6vw, 2rem); }
  .contact-grid { gap: 2rem; }
  .contact-form { padding: 2rem 1.5rem; }
  .ap-service-inner { gap: 1.5rem; }
  .sv-feature { padding: 1.5rem; }
  .philosophy { padding: 6rem 0; }
  .philosophy-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}

/* --- Service Pages --- */
.sv-hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--white); padding: 0 2rem; max-width: 1200px; margin: 0 auto; gap: 4rem; position: relative; }
.sv-hero--dark {
  max-width: none;
  background: #0a0a0f;
  padding: 0 calc((100% - 1160px) / 2);
  gap: 3rem;
}
.sv-hero--dark .sv-hero-bg {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-hero--dark .ap-mockup--hero-neural {
  max-width: 100%;
  width: 100%;
}
.sv-hero--rose {
  max-width: none;
  background: var(--gray-100);
  padding: 0 calc((100% - 1160px) / 2);
  gap: 3rem;
}
.sv-hero--rose .sv-hero-bg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-hero-content { padding-top: 5rem; }
.sv-hero-title { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.sv-hero-sub { font-size: 1.25rem; line-height: 1.6; color: var(--gray-600); max-width: 460px; margin-bottom: 2.5rem; }
.sv-hero-bg { display: flex; align-items: center; justify-content: center; }

.ap-mockup--hero { animation: apFloat 7s ease-in-out infinite; }
.ap-mockup--hero-phones { width: 340px; height: 420px; }
.ap-mockup--hero-phones .ap-phone--front { width: 180px; }
.ap-mockup--hero-phones .ap-phone--behind { width: 180px; }
.ap-mockup--hero-neural { max-width: 460px; width: 100%; aspect-ratio: 1/1; }
.ap-mockup--hero-orbit { width: 380px; height: 380px; }

/* Features */
.sv-features { padding: 10rem 0; background: var(--white); }
.sv-features-header { text-align: center; margin-bottom: 5rem; }
.sv-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.sv-feature { padding: 2.5rem; border-radius: 20px; border: 1px solid var(--gray-200); transition: all 0.5s var(--ease-apple); }
.sv-feature:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.sv-feature-num { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.sv-feature h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.sv-feature p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.65; }

/* Tech Section */
.sv-tech { padding: 10rem 0; background: var(--black); }
.sv-tech-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.sv-tech-list { display: flex; flex-direction: column; gap: 0; }
.sv-tech-item { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sv-tech-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; color: var(--white); }
.sv-tech-desc { font-size: 0.8125rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* Process */
.sv-process { padding: 10rem 0; background: var(--gray-100); }
.sv-process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 5rem; position: relative; }
.sv-step { position: relative; padding: 0 2rem; }
.sv-step-line { position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--gray-200); }
.sv-step:first-child .sv-step-line { left: 50%; }
.sv-step:last-child .sv-step-line { right: 50%; }
.sv-step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); position: relative; z-index: 1; margin-bottom: 2rem; }
.sv-step-content h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.sv-step-content p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }

@media (max-width: 1024px) {
  .sv-hero { grid-template-columns: 1fr; min-height: auto; padding: 6rem 2rem 4rem; max-width: none; gap: 2rem; }
  .sv-hero--dark { padding: 6rem 2rem 4rem; }
  .sv-hero--rose { padding: 6rem 2rem 4rem; }
  .sv-hero-bg { order: -1; }
  .sv-hero-content { padding-top: 0; }
  .sv-tech-inner { grid-template-columns: 1fr; gap: 3rem; }
  .sv-features-grid { grid-template-columns: 1fr; }
  .sv-features { padding: 6rem 0; }
  .sv-tech { padding: 6rem 0; }
  .sv-process { padding: 6rem 0; }
  .sv-process-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .sv-step-line { display: none; }
  .ap-mockup--hero-phones { width: 280px; height: 360px; margin: 0 auto; }
  .ap-mockup--hero-phones .ap-phone--front { width: 150px; }
  .ap-mockup--hero-phones .ap-phone--behind { width: 150px; }
  .ap-mockup--hero-orbit { width: 280px; height: 280px; margin: 0 auto; }
  .ap-orbit-wrapper { padding: 2rem; }
}

@media (max-width: 768px) {
  .sv-hero { padding: 5rem 1.5rem 3rem; gap: 1.5rem; }
  .sv-hero--dark { padding: 5rem 1.5rem 3rem; }
  .sv-hero--rose { padding: 5rem 1.5rem 3rem; }
  .sv-hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .sv-hero-sub { font-size: 1rem; }
  .sv-features-header { margin-bottom: 3rem; }
  .sv-feature { padding: 1.75rem; }
  .sv-process-steps { grid-template-columns: 1fr; margin-top: 3rem; }
  .sv-step { padding: 0 0.5rem; }
  .ap-mockup--hero-phones { width: 220px; height: 300px; }
  .ap-mockup--hero-phones .ap-phone--front { width: 120px; }
  .ap-mockup--hero-phones .ap-phone--behind { width: 120px; }
  .ap-mockup--hero-neural { max-width: 250px; margin: 0 auto; }
  .ap-mockup--hero-orbit { width: 220px; height: 220px; }
  .ap-orbit-wrapper { padding: 1.5rem; border-radius: 20px; }
  .ap-mockup--browser { border-radius: 10px; }
  .legal-page { padding: 7rem 0 4rem; }

  /* Mobile nav dropdown — show inline */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0.5rem 0;
    min-width: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-dropdown-menu a {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--gray-600) !important;
    padding: 0.3rem 0;
  }
  .nav-dropdown::after { display: none; }

  /* Chi siamo stats */
  .chi-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- Legal Pages --- */
.legal-page { padding: 10rem 0 6rem; }
.legal-page .container { max-width: 780px; }
.legal-page h1 { margin-bottom: 1rem; }
.legal-updated { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 3rem; }
.legal-page h2 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.legal-page h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.legal-page p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; }
.legal-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page ul li { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 0.35rem; }
.legal-page a { color: var(--accent); text-decoration: underline; }
.legal-page a:hover { color: var(--accent-dark); }

/* --- Cookie Banner --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: rgba(29,29,31,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 1.25rem 2rem; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.25,0.1,0.25,1); }
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cookie-banner-text { font-size: 0.8125rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn { padding: 0.5rem 1.25rem; border-radius: 980px; font-size: 0.8125rem; font-weight: 500; cursor: pointer; transition: all 0.2s; border: none; }
.cookie-btn--accept { background: var(--white); color: var(--black); }
.cookie-btn--accept:hover { background: var(--gray-200); }
.cookie-btn--reject { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2); }
.cookie-btn--reject:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

@media (max-width: 768px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* --- Page Header (for sub-pages) --- */
.page-header {
  padding: 10rem 0 5rem;
  text-align: center;
  background: var(--black);
  color: var(--white);
}

.page-header .text-label {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* --- Portfolio Page --- */
.portfolio-grid-section {
  padding: 6rem 0 10rem;
  background: var(--white);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 980px;
  border: 1px solid var(--gray-200);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s var(--ease-apple);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

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

.portfolio-item {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  background: var(--gray-100);
  cursor: pointer;
  transition: all 0.5s var(--ease-apple);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.portfolio-item-bg {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center top !important;
  transition: transform 0.8s var(--ease-apple);
}

.portfolio-item:hover .portfolio-item-bg {
  transform: scale(1.05);
}

.portfolio-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: var(--white);
}

.portfolio-item-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.portfolio-item-content p {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* --- Contact Page --- */
.contact-section {
  padding: 6rem 0 10rem;
}

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

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-detail-text p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.contact-form {
  background: var(--gray-100);
  border-radius: 24px;
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-family: var(--font-text);
  font-size: 0.9375rem;
  background: var(--white);
  transition: border-color 0.3s var(--ease-apple);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--black);
}

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

.form-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-checkbox a {
  color: var(--accent);
  text-decoration: underline;
}
.form-checkbox a:hover {
  color: var(--accent-dark);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-apple);
}

.form-submit:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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