/* ======================================
   Want2 Design Studio V2 — Dual-Mode Theme
   Light (editorial) + Dark (interstellar)
   Fonts: Nunito + Noto Sans TC + Noto Sans KR
   ====================================== */

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

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

body {
  font-family: 'Nunito', 'Noto Sans TC', 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.4s, color 0.4s;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  cursor: none;
}

ul, ol { list-style: none; }

/* ======================================
   DESIGN TOKENS — SHARED
   ====================================== */
:root {
  /* Fonts */
  --font-display: 'Nunito', 'Noto Sans TC', 'Noto Sans KR', sans-serif;
  --font-body: 'Nunito', 'Noto Sans TC', 'Noto Sans KR', sans-serif;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3.5rem,   1rem    + 8vw,    10rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout */
  --content-max: 1280px;
  --content-wide: 1440px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ======================================
   LIGHT MODE TOKENS (default)
   ====================================== */
[data-theme="light"] {
  --color-bg: #F7F7F5;
  --color-bg-elevated: #FFFFFF;
  --color-surface: #f0f0ee;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-text-dim: #999999;
  --color-border: #E0E0DE;
  --color-border-strong: #000000;
  --color-primary: #FF7F5F;
  --color-primary-dark: #E8694A;
  --color-primary-light: #FFB088;
  --color-star-glow: rgba(255, 127, 95, 0.3);
}

/* ======================================
   DARK MODE TOKENS
   ====================================== */
[data-theme="dark"] {
  --color-bg: #020315;
  --color-bg-elevated: #0a0d2e;
  --color-surface: #111540;
  --color-text: #f5f6ff;
  --color-text-muted: #9ea4c7;
  --color-text-dim: #5a5f8a;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.2);
  --color-primary: #FF7F5F;
  --color-primary-dark: #CC4422;
  --color-primary-light: #FFB088;
  --color-nebula-blue: #5b4bff;
  --color-nebula-purple: #7f5dff;
  --color-nebula-pink: #ff3e7f;
  --color-nebula-teal: #39f5c2;
  --color-star-glow: rgba(255, 127, 95, 0.4);
}

/* ======================================
   THEME TRANSITION — smooth switch
   ====================================== */
body,
.site-header,
.site-footer,
.service-card,
.process-step,
.blog-card,
.contact-item,
.join-banner,
.ai-section,
.about-visual-card,
.mini-stat,
.case-overlay,
.loading-screen,
.form-group input,
.form-group select,
.form-group textarea {
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

/* ======================================
   CUSTOM CURSOR
   ====================================== */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  top: -3px;
  left: -3px;
  pointer-events: none;
  z-index: 99999;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 127, 95, 0.5);
  border-radius: 50%;
  position: fixed;
  top: -20px;
  left: -20px;
  pointer-events: none;
  z-index: 99998;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.3s, width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

body.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--color-primary);
}

[data-theme="light"] .cursor-ring {
  border-color: rgba(255, 127, 95, 0.35);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body, a, button, input, textarea, select { cursor: auto; }
}

/* ======================================
   GRAIN OVERLAY (dark mode only)
   ====================================== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainMove 1.2s steps(3) infinite;
  transition: opacity 0.4s;
}

[data-theme="dark"] .grain-overlay {
  opacity: 0.15;
}

@keyframes grainMove {
  0%   { transform: translate3d(0, 0, 0); }
  33%  { transform: translate3d(-8px, 4px, 0); }
  66%  { transform: translate3d(4px, -8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ======================================
   LOADING SCREEN
   ====================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

[data-theme="light"] .loading-screen {
  background: #F7F7F5;
}

[data-theme="dark"] .loading-screen {
  background: #020315;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-text);
  animation: loadPulse 1.5s ease-in-out infinite;
}

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

/* ======================================
   HEADER
   ====================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) var(--space-8);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
}

/* Light scrolled */
[data-theme="light"] .site-header.scrolled {
  background: rgba(247, 247, 245, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-3) var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

/* Dark scrolled */
[data-theme="dark"] .site-header.scrolled {
  background: rgba(2, 3, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-3) var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-mark {
  width: 40px;
  height: 40px;
  color: var(--color-text);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-brand-zh {
  font-weight: 900;
  font-size: var(--text-base);
  letter-spacing: 0.05em;
}

.logo-brand-en {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lang-toggle {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.3s;
  min-width: 36px;
  text-align: center;
}

.lang-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Sun visible in dark mode (click to switch to light) */
/* Moon visible in light mode (click to switch to dark) */
[data-theme="light"] .theme-icon--sun {
  display: none;
}
[data-theme="light"] .theme-icon--moon {
  display: block;
}
[data-theme="dark"] .theme-icon--sun {
  display: block;
}
[data-theme="dark"] .theme-icon--moon {
  display: none;
}

.btn-nav-cta {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: none;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }

/* ======================================
   BUTTONS
   ====================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: none;
  transition: all 0.4s var(--ease-out);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Dark mode glow on primary button hover */
[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 8px 30px var(--color-star-glow);
}

/* Light mode subtle shadow */
[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 4px 16px rgba(255, 127, 95, 0.25);
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Dark mode glow button */
[data-theme="dark"] .btn-glow {
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-primary), var(--color-nebula-purple), var(--color-primary));
  background-size: 200% 200%;
  animation: glowShift 3s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

[data-theme="dark"] .btn-glow:hover::before {
  opacity: 1;
}

@keyframes glowShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  text-align: center;
}

/* WebGL Starfield Canvas — hidden in light mode */
#hero-starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: none;
}

[data-theme="dark"] #hero-starfield {
  display: block;
}

/* Nebula glow layers — dark mode only */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

[data-theme="dark"] .hero::before {
  opacity: 1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(91, 75, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 60%, rgba(255, 62, 127, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 127, 95, 0.08) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-16);
}

/* Hero entrance animation */
.hero-content.animate-in > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.hero-content.animate-in.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-content.animate-in.visible > *:nth-child(1) { transition-delay: 0s; }
.hero-content.animate-in.visible > *:nth-child(2) { transition-delay: 0.12s; }
.hero-content.animate-in.visible > *:nth-child(3) { transition-delay: 0.24s; }
.hero-content.animate-in.visible > *:nth-child(4) { transition-delay: 0.36s; }
.hero-content.animate-in.visible > *:nth-child(5) { transition-delay: 0.48s; }
.hero-content.animate-in.visible > *:nth-child(6) { transition-delay: 0.60s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

[data-theme="light"] .hero-badge {
  border: 1px solid rgba(255, 127, 95, 0.35);
  background: rgba(255, 127, 95, 0.06);
}

[data-theme="dark"] .hero-badge {
  border: 1px solid rgba(255, 127, 95, 0.3);
  backdrop-filter: blur(10px);
  background: rgba(255, 127, 95, 0.05);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

[data-theme="dark"] .hero h1 {
  text-shadow: 0 4px 40px rgba(91, 75, 255, 0.15);
}

/* Gradient text — dark mode only */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7f5dff 50%, #ff3e7f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .gradient-text {
  background: none;
  -webkit-text-fill-color: var(--color-primary);
  color: var(--color-primary);
}

[data-theme="dark"] .gradient-text {
  filter: drop-shadow(0 2px 20px rgba(255, 127, 95, 0.25));
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  padding-top: var(--space-8);
  max-width: 700px;
  margin-inline: auto;
}

[data-theme="light"] .hero-stats {
  border-top: 3px solid #000;
}

[data-theme="dark"] .hero-stats {
  border-top: 1px solid var(--color-border);
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text);
}

.hero-stat-num .accent {
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  margin-top: var(--space-1);
  letter-spacing: 0.05em;
}

/* ======================================
   SECTIONS — General
   ====================================== */
.section {
  padding-block: var(--space-24);
  position: relative;
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section-header {
  margin-bottom: var(--space-16);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

/* Decorative lines — dark mode only */
[data-theme="dark"] .section-tag::before,
[data-theme="dark"] .section-tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.5;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ======================================
   SCROLL REVEAL
   ====================================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-scale {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in-scale.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ======================================
   SERVICES GRID
   ====================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Gradient top bar — dark mode only */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.4s;
}

[data-theme="dark"] .service-card::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-nebula-purple, #7f5dff));
}

[data-theme="light"] .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-color: var(--color-border);
}

[data-theme="dark"] .service-card:hover {
  border-color: rgba(255, 127, 95, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(91, 75, 255, 0.08);
}

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

.service-card .service-icon {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.service-card .service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .service-icon img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-tags span {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .service-tags span {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .service-tags span {
  background: var(--color-surface);
}

/* ======================================
   AI HIGHLIGHT SECTION
   ====================================== */
.ai-section {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ai-content {
  padding: var(--space-12);
}

.ai-features {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.ai-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.ai-feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 127, 95, 0.08);
  border-radius: var(--radius-md);
}

.ai-feature h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.ai-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.ai-visual {
  position: relative;
  overflow: hidden;
}

.ai-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-visual-gradient {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

[data-theme="dark"] .ai-visual-gradient {
  background: linear-gradient(135deg, #5b4bff 0%, #7f5dff 50%, #ff3e7f 100%);
  opacity: 0.4;
}

[data-theme="light"] .ai-visual-gradient {
  background: linear-gradient(135deg, #FF7F5F 0%, #FFB088 50%, #FF7F5F 100%);
  opacity: 0.2;
}

/* ======================================
   CASES / PORTFOLIO GRID
   ====================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: none;
}

.case-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.case-card:hover img {
  transform: scale(1.06);
}

.case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  transition: background 0.4s;
}

[data-theme="dark"] .case-overlay {
  background: linear-gradient(to top, rgba(2, 3, 21, 0.92) 0%, transparent 55%);
}

[data-theme="light"] .case-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
}

[data-theme="dark"] .case-card:hover .case-overlay {
  background: linear-gradient(to top, rgba(2, 3, 21, 0.95) 0%, rgba(2, 3, 21, 0.3) 60%);
}

[data-theme="light"] .case-card:hover .case-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%);
}

.case-category {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.case-name {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: #fff;
}

.case-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out);
}

.case-card:hover .case-desc {
  opacity: 1;
  transform: translateY(0);
}

/* View all link */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.view-all-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: opacity 0.3s;
}

.view-all-link:hover {
  opacity: 0.7;
}

/* ======================================
   VALUES / WHY US SECTION
   ====================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.value-card {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
  transition: all 0.4s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-4px);
}

[data-theme="light"] .value-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .value-card:hover {
  border-color: rgba(255, 127, 95, 0.2);
}

.value-card .value-num {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.3;
  margin-bottom: var(--space-4);
}

.value-card h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

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

/* ======================================
   PROCESS STEPS
   ====================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.process-step {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.process-step:hover {
  transform: translateY(-4px);
}

[data-theme="light"] .process-step:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .process-step:hover {
  border-color: rgba(255, 127, 95, 0.2);
}

.process-num {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: rgba(255, 127, 95, 0.15);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.process-step h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ======================================
   ABOUT SECTION
   ====================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);
  align-items: start;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.value-item h4 {
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.value-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-visual-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  text-align: center;
}

.big-num {
  font-size: var(--text-3xl);
  font-weight: 900;
}

[data-theme="dark"] .big-num {
  background: linear-gradient(135deg, var(--color-primary), var(--color-nebula-purple, #7f5dff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .big-num {
  color: var(--color-primary);
}

.big-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.about-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.mini-stat {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}

.mini-stat .num {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-primary);
}

.mini-stat .label {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  margin-top: var(--space-1);
}

/* ======================================
   BLOG CARDS
   ====================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.blog-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

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

[data-theme="light"] .blog-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .blog-card:hover {
  border-color: rgba(255, 127, 95, 0.2);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.blog-card-body {
  padding: var(--space-6);
}

.blog-card-tag {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.blog-card h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.blog-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-dim);
}

/* ======================================
   JOIN / CTA
   ====================================== */
.join-banner {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 127, 95, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.join-perks {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.join-perk {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.join-perk-icon {
  font-size: 1.2rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--space-4);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.cta-banner .btn {
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 800;
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ======================================
   CONTACT SECTION
   ====================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color 0.3s, background-color 0.4s;
  outline: none;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #fff;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--color-bg-elevated);
}

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

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

.form-group select {
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

[data-theme="light"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 5h10z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ea4c7' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 5h10z'/%3E%3C/svg%3E");
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}

.contact-item:hover {
  border-color: rgba(255, 127, 95, 0.2);
}

.contact-item-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.contact-item a,
.contact-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-item a:hover {
  color: var(--color-primary);
}

/* ======================================
   FOOTER
   ====================================== */
.site-footer {
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer-col h4 {
  font-weight: 700;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.footer-col a {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color 0.3s;
}

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

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

.footer-bottom a {
  color: var(--color-text-dim);
  transition: color 0.3s;
}

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

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-card.featured {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }

  .ai-inner {
    grid-template-columns: 1fr;
  }

  .ai-visual {
    height: 300px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    z-index: 999;
  }

  [data-theme="light"] .nav-links {
    background: rgba(247, 247, 245, 0.97);
    backdrop-filter: blur(20px);
  }

  [data-theme="dark"] .nav-links {
    background: rgba(2, 3, 21, 0.97);
    backdrop-filter: blur(20px);
  }

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

  .nav-links a {
    font-size: var(--text-xl);
  }

  .mobile-toggle {
    display: block;
  }

  .btn-nav-cta {
    display: none;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .hero-stat {
    flex: 0 0 calc(50% - var(--space-3));
  }

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

  .case-card.featured {
    grid-column: span 1;
  }

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

  .about-values {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .nav-actions .lang-toggle,
  .nav-actions .theme-toggle {
    display: flex;
  }
}

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

  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

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