/* ============================================
   Synapse AI — Awwwards-level Dark Theme
   ============================================ */

:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-light: rgba(99,102,241,0.12);
  --gradient: linear-gradient(135deg, #6366F1, #8B5CF6);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(59,130,246,0.08) 0%, transparent 50%);
  --bg: #050505;
  --bg-alt: #0A0A0A;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --glow: 0 0 60px rgba(99,102,241,0.15);

  --text-display: clamp(48px, 7vw, 96px);
  --text-hero: clamp(36px, 5vw, 64px);
  --text-h2: clamp(32px, 4vw, 52px);
  --text-h3: clamp(20px, 2.5vw, 28px);
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;
  --text-micro: 11px;

  --space-section: clamp(100px, 12vw, 160px);
  --space-group: clamp(48px, 6vw, 80px);
  --space-element: clamp(16px, 2vw, 24px);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; font-family: inherit; border: none; }
ul, ol { list-style: none; }

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

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, width 0.2s, height 0.2s, border-color 0.2s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor.hover {
  width: 48px;
  height: 48px;
  border-color: var(--primary);
  background: rgba(99,102,241,0.1);
}

/* ============================================
   NOISE OVERLAY
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.stagger-child { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.visible .stagger-child:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.visible .stagger-child:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.visible .stagger-child:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.visible .stagger-child:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 30px rgba(99,102,241,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(99,102,241,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-glow:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

/* ============================================
   LABEL
   ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 14px;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 100px;
  background: rgba(99,102,241,0.06);
}
.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 clamp(20px, 5vw, 80px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
header.scrolled {
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
}
.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.desktop-nav { display: flex; align-items: center; gap: 36px; }
.desktop-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s;
}
.desktop-nav a:hover { color: #fff; }
.desktop-nav a:hover::after { width: 100%; }
.header-cta .btn-glow { padding: 10px 24px; font-size: 13px; }
.hamburger { display: none; background: none; border: none; padding: 8px; color: #fff; }

/* Mobile Menu */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 100; backdrop-filter: blur(4px); }
.overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 85%; max-width: 380px; height: 100vh;
  background: #0A0A0A; border-left: 1px solid var(--border);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 101; padding: 32px;
  display: flex; flex-direction: column;
}
.mobile-menu.open { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.mobile-menu-close { background: none; border: none; padding: 8px; color: #fff; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  display: block; padding: 16px 0; font-size: 24px; font-weight: 600; color: var(--text-muted);
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu nav a:hover { color: #fff; }
.mobile-menu .btn-glow { margin-top: 32px; justify-content: center; }

/* ============================================
   HERO — Immersive
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 12s ease-in-out infinite;
  pointer-events: none;
}
.hero-gradient-orb.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, transparent 70%);
  top: -10%; right: -5%;
  animation-delay: 0s;
}
.hero-gradient-orb.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
  bottom: -10%; left: 10%;
  animation-delay: -4s;
}
.hero-gradient-orb.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: 30%; left: 50%;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-tag { margin-bottom: 24px; }
.hero h1 {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero h1 .line { display: block; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #818CF8, #A78BFA, #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: var(--text-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollHint 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}
.marquee-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--space-section) 0;
  background: var(--bg);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}
.section-eyebrow {
  text-align: center;
  margin-bottom: 16px;
}
.section-heading {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
}
.section-desc {
  font-size: var(--text-body);
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-group);
  line-height: 1.7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px 36px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.service-card:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s;
}
.service-link:hover { gap: 14px; }

/* ============================================
   APPROACH
   ============================================ */
.approach {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
  position: relative;
}
.approach-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  margin-bottom: var(--space-group);
}
.approach-item:last-child { margin-bottom: 0; }
.approach-item:nth-child(even) .approach-text { order: 2; }
.approach-item:nth-child(even) .approach-visual { order: 1; }
.approach-num {
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, rgba(99,102,241,0.3) 0%, rgba(99,102,241,0.05) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.approach-text h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.approach-text p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
}
.approach-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.approach-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.approach-visual:hover img { transform: scale(1.04); }

/* ============================================
   WORKS
   ============================================ */
.works {
  padding: var(--space-section) 0;
  background: var(--bg);
  position: relative;
}
.works::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.work-card:first-child { border-radius: var(--radius-lg) 0 0 0; }
.work-card:nth-child(2) { border-radius: 0 var(--radius-lg) 0 0; }
.work-card:nth-child(3) { border-radius: 0 0 0 var(--radius-lg); }
.work-card:last-child { border-radius: 0 0 var(--radius-lg) 0; }
.work-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.work-industry {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.work-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.work-card p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.work-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.work-metric-value {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.work-metric-label {
  font-size: var(--text-small);
  color: var(--text-dim);
}

/* ============================================
   TEAM
   ============================================ */
.team {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-member {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-member:hover {
  border-color: var(--border);
  background: var(--bg-card);
}
.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.3s;
  position: relative;
}
.team-member:hover .team-photo { border-color: var(--primary); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.team-role {
  font-size: var(--text-micro);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.team-bio { font-size: var(--text-caption); color: var(--text-dim); line-height: 1.5; }

/* ============================================
   CTA
   ============================================ */
.cta-section {
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(56px, 8vw, 100px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}
.cta-inner h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}
.cta-inner p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}
.cta-inner .btn-glow { position: relative; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: var(--text-small); color: var(--text-dim); line-height: 1.7; max-width: 280px; }
.footer-nav { display: flex; gap: 56px; }
.footer-column h4 { font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-column a { display: block; font-size: var(--text-small); color: var(--text-dim); padding: 5px 0; transition: color 0.2s; }
.footer-column a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: var(--text-micro); color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: var(--text-micro); color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-muted); }

/* Back to Top */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid var(--border); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s ease; z-index: 99;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { border-color: var(--primary); background: rgba(99,102,241,0.1); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:first-child,
  .service-card:last-child { border-radius: var(--radius-lg); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 768px) {
  body { cursor: auto; }
  body::before { display: none; }
  .cursor, .cursor-dot { display: none; }
  a, button { cursor: auto; }
  .desktop-nav, .header-cta { display: none; }
  .hamburger { display: block; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 80px; }
  .hero-scroll-hint { display: none; }
  .approach-item { grid-template-columns: 1fr; }
  .approach-item:nth-child(even) .approach-text { order: 1; }
  .approach-item:nth-child(even) .approach-visual { order: 2; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card, .work-card:first-child, .work-card:nth-child(2),
  .work-card:nth-child(3), .work-card:last-child { border-radius: var(--radius-lg); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-glow,
  .hero-buttons .btn-ghost { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGE-SPECIFIC STYLES (Multi-page)
   ============================================ */

/* --- Page Hero (Internal Pages) --- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--bg-alt);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}
.page-hero h1 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-caption);
  color: var(--text-dim);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Desktop Nav Active --- */
.nav-link.active { color: var(--primary); font-weight: 600; }

/* --- Service Detail --- */
.service-detail-section {
  padding: var(--space-section) 0;
  border-bottom: 1px solid var(--border);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }
.service-detail-num {
  font-size: 80px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}
.service-detail-content h2 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}
.service-detail-content p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.service-detail-list {
  list-style: none;
}
.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: var(--text-small);
  color: var(--text-muted);
}
.service-detail-list li svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}
.service-detail-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* --- Work Detail Card --- */
.works-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.work-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
}
.work-detail-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.work-detail-card .work-industry {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.work-detail-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.work-detail-card p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.work-detail-card .work-metric-value {
  font-size: 40px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.work-detail-card .work-metric-label {
  font-size: var(--text-small);
  color: var(--text-dim);
  margin-top: 4px;
}

/* --- About Page Company Table --- */
.company-table-dark {
  width: 100%;
  border-collapse: collapse;
}
.company-table-dark tr {
  border-bottom: 1px solid var(--border);
}
.company-table-dark th {
  text-align: left;
  padding: 16px 24px 16px 0;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
  width: 160px;
  vertical-align: top;
}
.company-table-dark td {
  padding: 16px 0;
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Contact Form (Dark Theme) --- */
.contact-grid-dark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: var(--space-section) 0;
}
.contact-form-dark label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.contact-form-dark input,
.contact-form-dark select,
.contact-form-dark textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-body);
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg-card);
  color: var(--text);
}
.contact-form-dark input:focus,
.contact-form-dark select:focus,
.contact-form-dark textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.contact-form-dark .form-group {
  margin-bottom: 24px;
}
.contact-form-dark textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-info-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-dark h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-info-item-dark {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item-dark:last-child { border-bottom: none; }
.contact-info-item-dark .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-info-item-dark h4 {
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-info-item-dark p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Page-specific Responsive --- */
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 60px; }
  .service-detail-grid,
  .service-detail-grid.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }
  .works-detail-grid { grid-template-columns: 1fr; }
  .contact-grid-dark { grid-template-columns: 1fr; }
}
