/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* === THEME VARIABLES === */
:root, :root.dark {
  --fg: #f0f0f5;
  --fg-inv: #050508;
  --bg: #050508;
  --raised: #0a0a10;
  --glass-bg: rgba(10, 10, 16, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --gradient-text-start: #fff;
  --grid-dot: rgba(255,255,255,0.6);
  --scrollbar-thumb: rgba(255, 255, 255, 0.1);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.2);
  --shimmer: rgba(255, 255, 255, 0.05);
  --accent: #3b82f6;
  --accent-purple: #8b5cf6;
  --fg-rgb: 240, 240, 245;
  --bg-rgb: 5, 5, 8;
}

:root.light {
  --fg: #0f0f15;
  --fg-inv: #f5f5f7;
  --bg: #f5f5f7;
  --raised: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);
  --gradient-text-start: #0f0f15;
  --grid-dot: rgba(15,15,21,0.6);
  --scrollbar-thumb: rgba(0, 0, 0, 0.12);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.2);
  --shimmer: rgba(0, 0, 0, 0.04);
  --fg-rgb: 15, 15, 21;
  --bg-rgb: 245, 245, 247;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
::selection { background: rgba(59, 130, 246, 0.3); color: white; }

/* Custom cursor on desktop */
@media (pointer: fine) { * { cursor: none !important; } }

/* === CONTAINER === */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* === GRADIENT TEXT === */
.text-gradient {
  background: linear-gradient(135deg, var(--gradient-text-start) 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === GLASS === */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* === ANIMATIONS === */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce-y  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes pulse     { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* === SCROLL REVEAL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.33,1,0.68,1), transform 0.7s cubic-bezier(0.33,1,0.68,1);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

[data-reveal-left]  { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s cubic-bezier(0.33,1,0.68,1), transform 0.8s cubic-bezier(0.33,1,0.68,1); }
[data-reveal-left].is-revealed  { opacity: 1; transform: translateX(0); }
[data-reveal-right] { opacity: 0; transform: translateX(40px);  transition: opacity 0.8s cubic-bezier(0.33,1,0.68,1), transform 0.8s cubic-bezier(0.33,1,0.68,1); }
[data-reveal-right].is-revealed { opacity: 1; transform: translateX(0); }
[data-reveal-scale] { opacity: 0; transform: scale(0.95); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal-scale].is-revealed { opacity: 1; transform: scale(1); }

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="700"] { transition-delay: 0.7s; }
[data-delay="800"] { transition-delay: 0.8s; }

/* Split letter / word reveal */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(-90deg);
  transition: opacity 0.6s cubic-bezier(0.33,1,0.68,1), transform 0.6s cubic-bezier(0.33,1,0.68,1);
}
.split-char.space { width: 0.3em; }
.split-char.is-revealed { opacity: 1; transform: translateY(0) rotateX(0); }
.split-word-wrap  { overflow: hidden; display: inline-block; margin-right: 0.25em; }
.split-word-inner { display: inline-block; opacity: 0; transform: translateY(100%); transition: opacity 0.5s cubic-bezier(0.33,1,0.68,1), transform 0.5s cubic-bezier(0.33,1,0.68,1); }
.split-word-inner.is-revealed { opacity: 1; transform: translateY(0); }

/* === GRID BACKGROUND === */
#grid-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#grid-dots { position: absolute; inset: 0; opacity: 0.03; background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px); background-size: 40px 40px; }
#grid-orb { position: absolute; width: 600px; height: 600px; border-radius: 50%; opacity: 0.15; filter: blur(120px); background: radial-gradient(circle, rgba(59,130,246,0.5) 0%, rgba(139,92,246,0.3) 50%, transparent 70%); transform: translate(-50%,-50%); pointer-events: none; will-change: left, top; transition: left 0.08s linear, top 0.08s linear; }
#grid-grain { position: absolute; inset: 0; opacity: 0.015; mix-blend-mode: overlay; background-image: 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)'/%3E%3C/svg%3E"); background-size: 128px 128px; }

/* === CUSTOM CURSOR === */
#custom-cursor { position: fixed; top: 0; left: 0; width: 32px; height: 32px; pointer-events: none; z-index: 9999; transform: translate(-20%,-20%); }
#custom-cursor img { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.cursor-light-img { display: block; }
.cursor-dark-img  { display: none; }
:root.light .cursor-light-img { display: none; }
:root.light .cursor-dark-img  { display: block; }
#cursor-label { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; }
#cursor-label span { display: inline-block; padding: 4px 12px; background: rgba(var(--fg-rgb),0.9); color: var(--fg-inv); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 9999px; white-space: nowrap; opacity: 0; transform: translateX(-10px) translateY(20px); transition: opacity 0.2s, transform 0.2s; }
#cursor-label.active span { opacity: 1; transform: translateX(20px) translateY(20px); }

/* === HEADER === */
#site-header { position: fixed; top: 0; width: 100%; z-index: 50; transition: all 0.5s ease; padding: 20px 0; }
#site-header.scrolled { background: var(--glass-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 12px 0; }
.header-nav { display: flex; align-items: center; justify-content: space-between; }
.header-logo { display: inline-flex; align-items: center; color: var(--fg); position: relative; }
.header-logo svg { height: 40px; width: auto; }
.logo-underline { position: absolute; bottom: -4px; left: 0; height: 2px; background: linear-gradient(90deg,#3b82f6,#8b5cf6); width: 0; transition: width 0.3s ease; }
.header-logo:hover .logo-underline { width: 100%; }

.desktop-nav { display: none; align-items: center; gap: 4px; }
@media (min-width:768px) { .desktop-nav { display: flex; } }
.nav-link { position: relative; padding: 10px 20px; font-size: 14px; font-weight: 500; color: rgba(var(--fg-rgb),0.5); border-radius: 9999px; transition: color 0.3s; }
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); background: rgba(var(--fg-rgb),0.08); }
.nav-cta { display: inline-block; padding: 10px 20px; font-size: 14px; font-weight: 600; background: var(--fg); color: var(--fg-inv); border-radius: 9999px; transition: opacity 0.3s; margin-left: 8px; }
.nav-cta:hover { opacity: 0.9; }

.theme-toggle { width: 36px; height: 36px; border-radius: 50%; background: rgba(var(--fg-rgb),0.05); border: none; color: rgba(var(--fg-rgb),0.6); display: flex; align-items: center; justify-content: center; transition: background 0.3s; margin-left: 8px; }
.theme-toggle:hover { background: rgba(var(--fg-rgb),0.1); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun  { display: none; }
.icon-moon { display: block; }
:root.light .icon-sun  { display: block; }
:root.light .icon-moon { display: none; }

.mobile-nav-toggle { display: flex; align-items: center; gap: 8px; }
@media (min-width:768px) { .mobile-nav-toggle { display: none; } }
.hamburger { width: 40px; height: 40px; background: none; border: none; color: rgba(var(--fg-rgb),0.7); display: flex; align-items: center; justify-content: center; padding: 8px; }
.hamburger svg { width: 24px; height: 24px; display: block; }
.icon-close { display: none; }
.icon-open  { display: block; }
.hamburger.is-open .icon-close { display: block; }
.hamburger.is-open .icon-open  { display: none; }
#mobile-menu { display: none; background: var(--glass-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid rgba(var(--fg-rgb),0.05); }
#mobile-menu.is-open { display: block; }
.mobile-menu-inner { display: flex; flex-direction: column; padding: 24px; gap: 4px; }
.mobile-nav-link { display: block; padding: 12px 16px; font-size: 16px; font-weight: 500; color: rgba(var(--fg-rgb),0.6); border-radius: 8px; transition: color 0.2s, background 0.2s; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--fg); background: rgba(var(--fg-rgb),0.05); }
.mobile-nav-cta { display: block; padding: 12px 16px; margin-top: 12px; text-align: center; font-size: 14px; font-weight: 600; background: var(--fg); color: var(--fg-inv); border-radius: 8px; }

/* === HERO SECTIONS === */
.hero-section    { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-section-md { position: relative; min-height: 70vh;  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-section-sm { position: relative; min-height: 50vh;  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay        { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--bg-rgb),0.6), rgba(var(--bg-rgb),0.4) 50%, var(--bg)); }
.hero-overlay-top    { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--bg-rgb),0.4), rgba(var(--bg-rgb),0.3) 50%, var(--bg)); }
.hero-overlay-strong { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--bg-rgb),0.9), rgba(var(--bg-rgb),0.5) 50%, rgba(var(--bg-rgb),0.9)); }
.hero-content { position: relative; z-index: 10; padding-top: 80px; }

.hero-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; opacity: 0; animation: fadeIn 0.6s ease 0.3s forwards; }
.hero-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; animation: pulse 2s ease-in-out infinite; }
.hero-tag-text { font-size: 12px; font-weight: 500; color: rgba(var(--fg-rgb),0.4); text-transform: uppercase; letter-spacing: 0.3em; }

.hero-heading { font-size: clamp(48px,8vw,128px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; margin-bottom: 32px; }
.hero-sub { font-size: 18px; color: rgba(var(--fg-rgb),0.3); max-width: 480px; line-height: 1.6; margin-bottom: 48px; opacity: 0; animation: fadeInUp 0.8s ease 1s forwards; }
.hero-sub-center { text-align: center; max-width: 480px; margin: 0 auto; color: rgba(var(--fg-rgb),0.3); font-size: 15px; opacity: 0; animation: fadeInUp 0.8s ease 1s forwards; }

.scroll-indicator { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; animation: fadeIn 1s ease 2s forwards; }
.scroll-text { font-size: 10px; color: rgba(var(--fg-rgb),0.2); text-transform: uppercase; letter-spacing: 0.3em; }
.scroll-dot-wrap { width: 20px; height: 32px; border: 1px solid rgba(var(--fg-rgb),0.2); border-radius: 10px; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; }
.scroll-dot { width: 4px; height: 6px; background: rgba(var(--fg-rgb),0.4); border-radius: 2px; animation: bounce-y 1.5s ease-in-out infinite; }

#hero-orb { position: absolute; width: 800px; height: 800px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle,rgba(59,130,246,0.12) 0%,rgba(139,92,246,0.06) 40%,transparent 70%); transform: translate(-50%,-50%); z-index: 1; will-change: left,top; transition: left 0.15s ease, top 0.15s ease; }

.btn-group { display: flex; flex-direction: column; gap: 16px; opacity: 0; animation: fadeInUp 0.8s ease 1.2s forwards; }
@media (min-width:640px) { .btn-group { flex-direction: row; } }

/* Buttons */
.btn-primary { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; background: var(--fg); color: var(--fg-inv); border-radius: 9999px; font-weight: 600; font-size: 15px; overflow: hidden; border: none; transition: transform 0.2s; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary .btn-hover-bg { position: absolute; inset: 0; background: linear-gradient(90deg,#3b82f6,#8b5cf6); opacity: 0; transition: opacity 0.5s; }
.btn-primary:hover .btn-hover-bg { opacity: 1; }
.btn-primary .btn-text, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary .btn-hover-text { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; color: white; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity 0.5s; }
.btn-primary:hover .btn-hover-text { opacity: 1; }

.btn-secondary { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; border: 1px solid rgba(var(--fg-rgb),0.1); color: rgba(var(--fg-rgb),0.7); border-radius: 9999px; font-weight: 600; font-size: 15px; transition: background 0.3s, color 0.3s; }
.btn-secondary:hover { background: rgba(var(--fg-rgb),0.05); color: var(--fg); }

.btn-cta-large { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 20px 40px; background: var(--fg); color: var(--fg-inv); border-radius: 9999px; font-weight: 700; font-size: 18px; overflow: hidden; border: none; transition: transform 0.2s; }
.btn-cta-large:hover { transform: translateY(-2px); }
.btn-cta-large .btn-hover-bg { position: absolute; inset: 0; background: linear-gradient(90deg,#3b82f6,#8b5cf6); opacity: 0; transition: opacity 0.5s; }
.btn-cta-large:hover .btn-hover-bg { opacity: 1; }
.btn-cta-large .btn-text, .btn-cta-large svg { position: relative; z-index: 1; }
.btn-cta-large .btn-hover-text { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; color: white; font-weight: 700; font-size: 18px; opacity: 0; transition: opacity 0.5s; }
.btn-cta-large:hover .btn-hover-text { opacity: 1; }

.btn-text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(var(--fg-rgb),0.4); transition: color 0.3s; }
.btn-text-link:hover { color: var(--fg); }
.btn-text-link svg { transition: transform 0.3s; width: 16px; height: 16px; }
.btn-text-link:hover svg { transform: translateX(4px); }

/* Glow orbs */
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.glow-orb-blue   { background: rgba(59,130,246,0.1); }
.glow-orb-purple { background: rgba(139,92,246,0.1); }
.glow-orb-green  { background: rgba(20,184,166,0.08); }
.glow-orb-cyan   { background: rgba(6,182,212,0.08); }

/* Grid pattern overlay */
.grid-pattern { position: absolute; inset: 0; pointer-events: none; opacity: 0.03; background-image: linear-gradient(rgba(255,255,255,0.1) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,0.1) 1px,transparent 1px); background-size: 80px 80px; }

/* === STATS SECTION === */
.stats-section { padding: 80px 0; border-top: 1px solid rgba(var(--fg-rgb),0.05); border-bottom: 1px solid rgba(var(--fg-rgb),0.05); }
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px 16px; }
@media (min-width:768px) { .stats-grid { grid-template-columns: repeat(4,1fr); gap: 16px; } }
.stat-item { text-align: center; }
.stat-number { font-size: clamp(36px,4vw,48px); font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.stat-label  { font-size: 11px; color: rgba(var(--fg-rgb),0.3); text-transform: uppercase; letter-spacing: 0.1em; }

/* === SECTION COMMON === */
.section-tag { font-size: 12px; color: rgba(var(--fg-rgb),0.3); text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 16px; display: block; }
.section-title { font-size: clamp(32px,4vw,56px); font-weight: 700; color: var(--fg); letter-spacing: -0.03em; line-height: 1.1; }
.section-header { display: flex; flex-direction: column; gap: 24px; margin-bottom: 80px; }
@media (min-width:768px) { .section-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-desc { font-size: 14px; color: rgba(var(--fg-rgb),0.3); max-width: 400px; line-height: 1.6; }
.section-center-header { text-align: center; margin-bottom: 80px; }

/* === BUSINESS AREAS === */
.business-section { padding: 128px 0; }
.business-list { display: flex; flex-direction: column; gap: 16px; }

.business-card { position: relative; padding: 32px 40px; border-radius: 16px; border: 1px solid rgba(var(--fg-rgb),0.05); overflow: hidden; transition: border-color 0.5s; text-decoration: none; display: block; }
.business-card:hover { border-color: rgba(var(--fg-rgb),0.1); }
.business-card .bg-number { position: absolute; top: 24px; right: 32px; font-size: 120px; font-weight: 700; color: rgba(var(--fg-rgb),0.02); line-height: 1; user-select: none; transition: color 0.5s; }
.business-card:hover .bg-number { color: rgba(var(--fg-rgb),0.04); }
.business-card-inner { position: relative; display: flex; flex-direction: column; gap: 24px; }
@media (min-width:768px) { .business-card-inner { flex-direction: row; align-items: center; gap: 48px; } }
.business-icon-wrap { display: flex; align-items: center; gap: 24px; }
@media (min-width:768px) { .business-icon-wrap { width: 33%; } }
.business-icon { padding: 12px; border-radius: 12px; background: rgba(var(--fg-rgb),0.05); color: rgba(var(--fg-rgb),0.6); transition: all 0.3s; }
.business-card:hover .business-icon { background: rgba(var(--fg-rgb),0.1); color: var(--fg); }
.business-icon svg { width: 32px; height: 32px; display: block; }
.business-num-small { font-size: 10px; color: rgba(var(--fg-rgb),0.2); text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.business-title { font-size: clamp(18px,2vw,24px); font-weight: 700; color: var(--fg); }
.business-desc { font-size: 14px; color: rgba(var(--fg-rgb),0.4); line-height: 1.6; transition: color 0.3s; }
@media (min-width:768px) { .business-desc { width: 33%; } }
.business-card:hover .business-desc { color: rgba(var(--fg-rgb),0.6); }
.business-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width:768px) { .business-tags { width: 33%; justify-content: flex-end; } }
.business-tag { padding: 4px 12px; font-size: 10px; font-weight: 500; color: rgba(var(--fg-rgb),0.3); border: 1px solid rgba(var(--fg-rgb),0.05); border-radius: 9999px; transition: all 0.3s; }
.business-card:hover .business-tag { border-color: rgba(var(--fg-rgb),0.1); color: rgba(var(--fg-rgb),0.5); }
.business-arrow { color: rgba(var(--fg-rgb),0.2); transition: all 0.3s; }
.business-arrow svg { width: 20px; height: 20px; display: block; }
.business-card:hover .business-arrow { color: var(--fg); transform: translate(4px,-4px); }

/* Gradient card backgrounds */
.grad-blue-from    { background: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, rgba(37,99,235,0.05) 100%); }
.grad-purple-from  { background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(109,40,217,0.05) 100%); }
.grad-teal-from    { background: linear-gradient(135deg, rgba(20,184,166,0.2) 0%, rgba(13,148,136,0.05) 100%); }
.grad-orange-from  { background: linear-gradient(135deg, rgba(249,115,22,0.2) 0%, rgba(234,88,12,0.05) 100%); }

/* === SHOWCASE === */
.showcase-section { border-top: 1px solid rgba(var(--fg-rgb),0.05); }
.showcase-header-wrap { padding: 80px 0 16px; }
.showcase-header { display: flex; align-items: flex-end; justify-content: space-between; }
.showcase-scroll-area { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 20px 0 40px; }
.showcase-scroll-area::-webkit-scrollbar { display: none; }
.showcase-track { display: flex; gap: 24px; padding-left: max(24px, calc((100vw - 1280px)/2 + 24px)); padding-right: max(24px, calc((100vw - 1280px)/2 + 24px)); }
.showcase-item { flex-shrink: 0; width: 70vw; }
@media (min-width:768px)  { .showcase-item { width: 40vw; } }
@media (min-width:1024px) { .showcase-item { width: 30vw; } }
.showcase-card { aspect-ratio: 4/3; border-radius: 16px; border: 1px solid rgba(var(--fg-rgb),0.05); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; position: relative; overflow: hidden; transition: transform 0.3s; }
.showcase-card:hover { transform: scale(0.98); }
.showcase-card .card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.5s; }
.showcase-card:hover .card-overlay { background: rgba(0,0,0,0.2); }
.showcase-card .card-category { font-size: 10px; color: rgba(var(--fg-rgb),0.4); text-transform: uppercase; letter-spacing: 0.1em; position: relative; z-index: 1; }
.showcase-card .card-title { font-size: clamp(20px,3vw,28px); font-weight: 700; color: var(--fg); margin-top: 4px; position: relative; z-index: 1; }
.grad-blue-cyan    { background: linear-gradient(135deg,rgba(37,99,235,0.3),rgba(6,182,212,0.1)); }
.grad-purple-pink  { background: linear-gradient(135deg,rgba(124,58,237,0.3),rgba(236,72,153,0.1)); }
.grad-orange-yellow{ background: linear-gradient(135deg,rgba(234,88,12,0.3),rgba(234,179,8,0.1)); }
.grad-green-teal   { background: linear-gradient(135deg,rgba(22,163,74,0.3),rgba(20,184,166,0.1)); }
.grad-rose-pink    { background: linear-gradient(135deg,rgba(225,29,72,0.3),rgba(236,72,153,0.1)); }

/* === NEWS SECTION (HOME) === */
.news-section { padding: 128px 0; }
.news-list { display: flex; flex-direction: column; gap: 4px; }
.news-item-link { display: block; padding: 24px 0; border-bottom: 1px solid rgba(var(--fg-rgb),0.05); transition: border-color 0.3s; }
.news-item-link:hover { border-color: rgba(var(--fg-rgb),0.1); }
.news-item-inner { display: flex; flex-direction: column; gap: 16px; }
@media (min-width:768px) { .news-item-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.news-meta { display: flex; align-items: center; gap: 16px; }
.news-badge { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; }
.badge-notice { background: rgba(239,68,68,0.1); color: #f87171; }
.badge-news   { background: rgba(59,130,246,0.1); color: #60a5fa; }
.badge-award  { background: rgba(34,197,94,0.1); color: #4ade80; }
.news-title { font-size: 18px; font-weight: 500; color: rgba(var(--fg-rgb),0.7); transition: color 0.3s; }
.news-item-link:hover .news-title { color: var(--fg); }
.news-date-wrap { display: flex; align-items: center; gap: 16px; }
.news-date { font-size: 12px; color: rgba(var(--fg-rgb),0.2); }
.news-arrow-icon { color: rgba(var(--fg-rgb),0.1); transition: all 0.3s; display: none; }
@media (min-width:768px) { .news-arrow-icon { display: block; } }
.news-arrow-icon svg { width: 16px; height: 16px; display: block; }
.news-item-link:hover .news-arrow-icon { color: var(--fg); transform: translate(2px,-2px); }

/* === CTA SECTION === */
.cta-section { padding: 128px 0; position: relative; overflow: hidden; text-align: center; }
.cta-content { max-width: 720px; margin: 0 auto; position: relative; z-index: 10; }
.cta-title { font-size: clamp(36px,6vw,96px); font-weight: 700; color: var(--fg); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 32px; }
.cta-desc { color: rgba(var(--fg-rgb),0.3); font-size: 15px; margin-bottom: 48px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* === COMPANY PAGE === */
.ceo-section { padding: 128px 0; }
.ceo-grid { display: grid; gap: 64px; }
@media (min-width:768px) { .ceo-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.ceo-portrait { position: relative; }
.ceo-portrait-frame { aspect-ratio: 4/5; border-radius: 16px; background: linear-gradient(135deg,rgba(59,130,246,0.1),rgba(139,92,246,0.05)); border: 1px solid rgba(var(--fg-rgb),0.05); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.ceo-portrait-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,var(--bg),transparent); }
.ceo-portrait-text { color: rgba(var(--fg-rgb),0.1); font-size: 14px; }
.ceo-deco-1 { position: absolute; bottom: -16px; right: -16px; width: 128px; height: 128px; border: 1px solid rgba(var(--fg-rgb),0.05); border-radius: 16px; z-index: -1; }
.ceo-deco-2 { position: absolute; top: -16px; left: -16px; width: 80px; height: 80px; border: 1px solid rgba(59,130,246,0.1); border-radius: 12px; z-index: -1; }
.sub-label { font-size: 12px; color: rgba(var(--fg-rgb),0.3); text-transform: uppercase; letter-spacing: 0.3em; display: block; margin-bottom: 16px; }
.ceo-heading { font-size: clamp(28px,3vw,36px); font-weight: 700; color: var(--fg); margin-bottom: 32px; letter-spacing: -0.03em; line-height: 1.3; }
.ceo-body { display: flex; flex-direction: column; gap: 20px; }
.ceo-body p { font-size: 14px; color: rgba(var(--fg-rgb),0.4); line-height: 1.7; }
.ceo-sig { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(var(--fg-rgb),0.05); }
.ceo-sig .role { font-size: 14px; color: rgba(var(--fg-rgb),0.2); font-style: italic; }
.ceo-sig .name { font-size: 18px; font-weight: 700; color: var(--fg); margin-top: 4px; }

.overview-section { padding: 128px 0; }
.overview-table { display: grid; grid-template-columns: 1fr; border-radius: 16px; overflow: hidden; border: 1px solid rgba(var(--fg-rgb),0.05); }
@media (min-width:768px) { .overview-table { grid-template-columns: 1fr 1fr; } }
.overview-row { padding: 24px; background: var(--raised); display: flex; flex-direction: column; gap: 8px; transition: background 0.3s; border-bottom: 1px solid rgba(var(--fg-rgb),0.03); }
@media (min-width:768px) { .overview-row { flex-direction: row; gap: 16px; } }
.overview-row:last-child, .overview-row:nth-last-child(2) { border-bottom: none; }
.overview-row:hover { background: rgba(var(--fg-rgb),0.02); }
.overview-label { font-size: 11px; color: rgba(var(--fg-rgb),0.2); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
@media (min-width:768px) { .overview-label { width: 112px; flex-shrink: 0; } }
.overview-value { font-size: 14px; color: rgba(var(--fg-rgb),0.6); }

.vision-section { padding: 128px 0; position: relative; overflow: hidden; }
.vision-grid { display: grid; gap: 24px; }
@media (min-width:768px) { .vision-grid { grid-template-columns: repeat(3,1fr); } }
.vision-card { position: relative; padding: 32px; border-radius: 16px; border: 1px solid rgba(var(--fg-rgb),0.05); overflow: hidden; transition: border-color 0.5s; }
.vision-card:hover { border-color: rgba(var(--fg-rgb),0.1); }
.vision-bg-num { position: absolute; top: 16px; right: 24px; font-size: 80px; font-weight: 700; color: rgba(var(--fg-rgb),0.03); line-height: 1; user-select: none; transition: color 0.5s; }
.vision-card:hover .vision-bg-num { color: rgba(var(--fg-rgb),0.06); }
.vision-num   { font-size: 10px; color: rgba(var(--fg-rgb),0.2); text-transform: uppercase; letter-spacing: 0.1em; }
.vision-title { font-size: 22px; font-weight: 700; color: var(--fg); margin-top: 8px; margin-bottom: 16px; }
.vision-desc  { font-size: 14px; color: rgba(var(--fg-rgb),0.4); line-height: 1.6; }
.grad-blue-subtle  { background: linear-gradient(135deg,rgba(59,130,246,0.1),rgba(6,182,212,0.05)); }
.grad-purple-subtle{ background: linear-gradient(135deg,rgba(139,92,246,0.1),rgba(236,72,153,0.05)); }
.grad-teal-subtle  { background: linear-gradient(135deg,rgba(20,184,166,0.1),rgba(34,197,94,0.05)); }

.timeline-section { padding: 128px 0; border-top: 1px solid rgba(var(--fg-rgb),0.05); }
.timeline-list { max-width: 640px; margin: 0 auto; }
.timeline-item { display: flex; gap: 32px; }
.timeline-line { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(var(--fg-rgb),0.1); flex-shrink: 0; margin-top: 6px; transition: background 0.3s; }
.timeline-item:hover .timeline-dot { background: #3b82f6; }
.timeline-connector { width: 1px; flex: 1; background: rgba(var(--fg-rgb),0.05); margin: 4px 0; min-height: 40px; }
.timeline-content { padding-bottom: 48px; }
.timeline-year  { font-size: 12px; color: rgba(96,165,250,0.6); font-family: monospace; }
.timeline-title { font-size: 18px; font-weight: 700; color: rgba(var(--fg-rgb),0.8); margin-top: 4px; transition: color 0.3s; }
.timeline-item:hover .timeline-title { color: var(--fg); }
.timeline-desc  { font-size: 14px; color: rgba(var(--fg-rgb),0.3); margin-top: 4px; }

/* === SERVICE PAGE === */
.service-list { display: flex; flex-direction: column; gap: 48px; padding: 0 0 128px; }
.service-card { position: relative; border-radius: 24px; border: 1px solid rgba(var(--fg-rgb),0.05); overflow: hidden; transition: border-color 0.5s; }
.service-card:hover { border-color: rgba(var(--fg-rgb),0.1); }
.service-bg-num { position: absolute; top: 32px; right: 40px; font-size: 200px; font-weight: 700; color: rgba(var(--fg-rgb),0.015); line-height: 1; user-select: none; }
.service-inner { position: relative; padding: 32px; }
@media (min-width:768px) { .service-inner { padding: 48px; } }
.service-num { font-size: 10px; color: rgba(var(--fg-rgb),0.2); text-transform: uppercase; letter-spacing: 0.1em; font-family: monospace; }
.service-title    { font-size: clamp(24px,3vw,36px); font-weight: 700; color: var(--fg); margin-top: 8px; letter-spacing: -0.03em; }
.service-subtitle { font-size: 14px; color: rgba(var(--fg-rgb),0.3); margin-top: 8px; }
.service-divider  { height: 1px; background: linear-gradient(90deg,rgba(var(--fg-rgb),0.1),transparent); margin: 24px 0; transform-origin: left; transform: scaleX(0); transition: transform 0.8s ease; }
.service-divider.is-revealed { transform: scaleX(1); }
.service-body { display: flex; flex-direction: column; gap: 32px; }
@media (min-width:768px) { .service-body { flex-direction: row; gap: 48px; } }
.service-desc { font-size: 14px; color: rgba(var(--fg-rgb),0.4); line-height: 1.7; }
@media (min-width:768px) { .service-desc { width: 40%; } }
.service-features { }
@media (min-width:768px) { .service-features { width: 60%; } }
.features-grid { display: grid; gap: 16px; }
@media (min-width:640px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.feature-item svg { width: 16px; height: 16px; color: rgba(var(--fg-rgb),0.2); flex-shrink: 0; margin-top: 2px; transition: color 0.3s; display: block; }
.feature-item:hover svg { color: #60a5fa; }
.feature-text { font-size: 14px; color: rgba(var(--fg-rgb),0.5); transition: color 0.3s; }
.feature-item:hover .feature-text { color: rgba(var(--fg-rgb),0.7); }
.platforms-list { display: flex; flex-direction: column; gap: 16px; }
.platform-item { padding: 20px; border-radius: 12px; background: rgba(var(--fg-rgb),0.03); border: 1px solid rgba(var(--fg-rgb),0.05); display: flex; align-items: center; justify-content: space-between; transition: all 0.3s; }
.platform-item:hover { background: rgba(var(--fg-rgb),0.06); border-color: rgba(var(--fg-rgb),0.1); }
.platform-name { font-weight: 700; color: rgba(var(--fg-rgb),0.8); transition: color 0.3s; font-size: 15px; }
.platform-item:hover .platform-name { color: var(--fg); }
.platform-desc-text { font-size: 12px; color: rgba(var(--fg-rgb),0.3); margin-top: 4px; }
.platform-link-btn { padding: 8px; border-radius: 9999px; background: rgba(var(--fg-rgb),0.05); color: rgba(var(--fg-rgb),0.3); transition: all 0.3s; flex-shrink: 0; border: none; display: inline-flex; }
.platform-link-btn:hover { background: rgba(var(--fg-rgb),0.1); color: var(--fg); }
.platform-link-btn svg { width: 16px; height: 16px; display: block; }
.grad-ai       { background: linear-gradient(135deg,rgba(37,99,235,0.2),rgba(37,99,235,0.05),transparent); }
.grad-agency   { background: linear-gradient(135deg,rgba(124,58,237,0.2),rgba(124,58,237,0.05),transparent); }
.grad-platform { background: linear-gradient(135deg,rgba(13,148,136,0.2),rgba(13,148,136,0.05),transparent); }
.grad-play     { background: linear-gradient(135deg,rgba(234,88,12,0.2),rgba(234,88,12,0.05),transparent); }

.process-section { padding: 128px 0; border-top: 1px solid rgba(var(--fg-rgb),0.05); position: relative; overflow: hidden; }
.process-grid { display: grid; gap: 24px; }
@media (min-width:768px) { .process-grid { grid-template-columns: repeat(4,1fr); } }
.process-card { position: relative; padding: 32px; border-radius: 16px; background: rgba(var(--fg-rgb),0.02); border: 1px solid rgba(var(--fg-rgb),0.05); transition: all 0.5s; }
.process-card:hover { border-color: rgba(var(--fg-rgb),0.1); background: rgba(var(--fg-rgb),0.04); }
.process-step  { font-size: 36px; font-weight: 700; color: rgba(var(--fg-rgb),0.05); transition: color 0.5s; }
.process-card:hover .process-step { color: rgba(var(--fg-rgb),0.1); }
.process-title { font-size: 18px; font-weight: 700; color: var(--fg); margin-top: 16px; margin-bottom: 8px; }
.process-desc  { font-size: 14px; color: rgba(var(--fg-rgb),0.3); }
.process-arrow { display: none; position: absolute; top: 50%; right: -12px; width: 24px; height: 1px; background: rgba(var(--fg-rgb),0.1); }
@media (min-width:768px) { .process-arrow { display: block; } }

/* === PORTFOLIO PAGE === */
.portfolio-filter { padding: 32px 0 16px; position: sticky; top: 64px; z-index: 30; background: rgba(var(--bg-rgb),0.8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(var(--fg-rgb),0.04); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.filter-btn { padding: 10px 20px; font-size: 13px; font-weight: 500; border-radius: 9999px; border: 1px solid rgba(var(--fg-rgb),0.06); background: transparent; color: rgba(var(--fg-rgb),0.3); transition: all 0.3s; font-family: inherit; }
.filter-btn:hover { color: rgba(var(--fg-rgb),0.6); border-color: rgba(var(--fg-rgb),0.15); }
.filter-btn.active { background: var(--fg); color: var(--fg-inv); border-color: var(--fg); box-shadow: 0 4px 20px rgba(255,255,255,0.1); }
.portfolio-grid-section { padding: 32px 0 128px; }
.portfolio-count { font-size: 12px; color: rgba(var(--fg-rgb),0.2); font-family: monospace; margin-bottom: 24px; }
.projects-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (min-width:768px)  { .projects-grid { grid-template-columns: repeat(3,1fr); gap: 20px; } }
@media (min-width:1024px) { .projects-grid { grid-template-columns: repeat(4,1fr); } }
.project-card { position: relative; border-radius: 16px; overflow: hidden; background: var(--raised); border: 1px solid rgba(var(--fg-rgb),0.04); transition: all 0.5s; }
.project-card:hover { border-color: rgba(var(--fg-rgb),0.1); box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.project-card.hidden-card { display: none; }
.project-image { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; display: block; }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top,var(--bg) 0%,rgba(var(--bg-rgb),0.2) 40%,transparent 100%); opacity: 0.6; transition: opacity 0.5s; }
.project-card:hover .project-overlay { opacity: 0.8; }
.project-view-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.5s; }
.project-card:hover .project-view-btn { opacity: 1; }
.project-view-circle { width: 56px; height: 56px; border-radius: 50%; background: rgba(var(--fg-rgb),0.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(var(--fg-rgb),0.2); display: flex; align-items: center; justify-content: center; transform: scale(0.75); transition: transform 0.5s; }
.project-card:hover .project-view-circle { transform: scale(1); }
.project-view-circle svg { width: 24px; height: 24px; color: var(--fg); display: block; }
.project-cat-badge { position: absolute; top: 16px; left: 16px; z-index: 10; display: inline-block; padding: 4px 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 9999px; border: 1px solid; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cat-ai       { background: rgba(59,130,246,0.2); color: #93c5fd; border-color: rgba(59,130,246,0.2); }
.cat-agency   { background: rgba(139,92,246,0.2); color: #d8b4fe; border-color: rgba(139,92,246,0.2); }
.cat-platform { background: rgba(20,184,166,0.2); color: #5eead4; border-color: rgba(20,184,166,0.2); }
.cat-play     { background: rgba(249,115,22,0.2); color: #fdba74; border-color: rgba(249,115,22,0.2); }
.project-info { padding: 20px; }
.project-title { font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-desc  { font-size: 12px; color: rgba(var(--fg-rgb),0.3); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-date  { display: flex; align-items: center; gap: 6px; color: rgba(var(--fg-rgb),0.2); }
.project-date svg { width: 12px; height: 12px; display: block; }
.project-date span { font-size: 11px; font-family: monospace; }
.no-projects { text-align: center; padding: 80px 0; display: none; }
.no-projects.active { display: block; }
.no-projects p { font-size: 18px; color: rgba(var(--fg-rgb),0.2); }

/* === NEWS LIST PAGE === */
.news-list-section { padding-bottom: 128px; }
.news-max { max-width: 896px; margin: 0 auto; }
.news-article { display: block; padding: 32px 0; border-bottom: 1px solid rgba(var(--fg-rgb),0.05); transition: border-color 0.3s; }
.news-article:hover { border-color: rgba(var(--fg-rgb),0.1); }
.news-article-inner { display: flex; flex-direction: column; gap: 16px; }
@media (min-width:768px) { .news-article-inner { flex-direction: row; align-items: flex-start; gap: 32px; } }
.news-article-date { font-size: 12px; color: rgba(var(--fg-rgb),0.2); font-family: monospace; }
@media (min-width:768px) { .news-article-date { width: 112px; flex-shrink: 0; } }
.news-article-content { flex: 1; }
.news-article-badges { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-article-title { font-size: clamp(16px,2vw,20px); font-weight: 700; color: rgba(var(--fg-rgb),0.7); margin-bottom: 8px; transition: color 0.3s; }
.news-article:hover .news-article-title { color: var(--fg); }
.news-article-summary { font-size: 14px; color: rgba(var(--fg-rgb),0.25); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s; }
.news-article:hover .news-article-summary { color: rgba(var(--fg-rgb),0.4); }
.news-article-arrow { flex-shrink: 0; align-self: center; display: none; }
@media (min-width:768px) { .news-article-arrow { display: block; } }
.news-article-arrow-inner { padding: 8px; border-radius: 50%; background: transparent; transition: background 0.3s; }
.news-article:hover .news-article-arrow-inner { background: rgba(var(--fg-rgb),0.05); }
.news-article-arrow svg { width: 16px; height: 16px; color: rgba(var(--fg-rgb),0.1); transition: all 0.3s; display: block; }
.news-article:hover .news-article-arrow svg { color: var(--fg); transform: rotate(45deg); }

/* === CONTACT PAGE === */
.contact-content { padding-bottom: 128px; }
.contact-grid { display: grid; gap: 64px; }
@media (min-width:1024px) { .contact-grid { grid-template-columns: 2fr 3fr; gap: 80px; } }
.contact-info-header h2 { font-size: 24px; font-weight: 700; color: var(--fg); margin-bottom: 16px; }
.contact-info-header p  { font-size: 14px; color: rgba(var(--fg-rgb),0.3); line-height: 1.6; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 12px; background: rgba(var(--fg-rgb),0.02); border: 1px solid rgba(var(--fg-rgb),0.05); transition: all 0.3s; }
.contact-info-item:hover { border-color: rgba(var(--fg-rgb),0.1); background: rgba(var(--fg-rgb),0.04); }
.contact-info-icon { padding: 10px; border-radius: 8px; background: rgba(var(--fg-rgb),0.05); color: rgba(var(--fg-rgb),0.3); transition: all 0.3s; flex-shrink: 0; }
.contact-info-item:hover .contact-info-icon { background: rgba(59,130,246,0.1); color: #60a5fa; }
.contact-info-icon svg { width: 20px; height: 20px; display: block; }
.contact-info-label { font-size: 11px; font-weight: 700; color: rgba(var(--fg-rgb),0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-info-value { font-size: 14px; color: rgba(var(--fg-rgb),0.6); }
.contact-info-sub   { font-size: 12px; color: rgba(var(--fg-rgb),0.2); margin-top: 2px; }
.contact-map { margin-top: 40px; border-radius: 12px; background: rgba(var(--fg-rgb),0.02); border: 1px solid rgba(var(--fg-rgb),0.05); aspect-ratio: 16/10; overflow: hidden; position: relative; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; transition: opacity 0.7s; display: block; }
.contact-map:hover img { opacity: 0.45; }
.contact-map-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(59,130,246,0.1),rgba(139,92,246,0.1)); }
.contact-map-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 10; }
.contact-map-label svg { width: 24px; height: 24px; color: rgba(var(--fg-rgb),0.2); display: block; }
.contact-map-label span { font-size: 14px; color: rgba(var(--fg-rgb),0.2); }
.contact-form-wrap { padding: 32px; border-radius: 16px; background: rgba(var(--fg-rgb),0.02); border: 1px solid rgba(var(--fg-rgb),0.05); }
@media (min-width:768px) { .contact-form-wrap { padding: 40px; } }
.form-title { font-size: 20px; font-weight: 700; color: var(--fg); margin-bottom: 32px; }
.form-row-grid { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width:768px) { .form-row-grid { grid-template-columns: repeat(2,1fr); } }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 11px; font-weight: 500; color: rgba(var(--fg-rgb),0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.form-input-wrap { position: relative; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(var(--fg-rgb),0.03); border: 1px solid rgba(var(--fg-rgb),0.05); color: var(--fg); font-size: 14px; outline: none; transition: all 0.3s; -webkit-appearance: none; appearance: none; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(var(--fg-rgb),0.15); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(59,130,246,0.5); background: rgba(var(--fg-rgb),0.05); }
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(240,240,245,0.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
:root.light .form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(15,15,21,0.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
.form-select option { background: var(--raised); color: var(--fg); }
.form-textarea { resize: none; }
.focus-line { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg,#3b82f6,#8b5cf6); border-radius: 0 0 12px 12px; transition: width 0.3s; pointer-events: none; }
.btn-submit { width: 100%; padding: 16px; background: var(--fg); color: var(--fg-inv); border: none; border-radius: 12px; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; transition: opacity 0.3s; font-family: inherit; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-submit .btn-hover-bg { position: absolute; inset: 0; background: linear-gradient(90deg,#3b82f6,#8b5cf6); opacity: 0; transition: opacity 0.5s; }
.btn-submit:hover:not(:disabled) .btn-hover-bg { opacity: 1; }
.btn-submit .btn-label, .btn-submit svg { position: relative; z-index: 1; display: block; }
.btn-submit .btn-hover-text { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; color: white; font-weight: 700; font-size: 16px; opacity: 0; transition: opacity 0.5s; }
.btn-submit:hover:not(:disabled) .btn-hover-text { opacity: 1; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(var(--fg-rgb),0.2); border-top-color: var(--fg-inv); border-radius: 50%; animation: spin 1s linear infinite; position: relative; z-index: 1; }
.form-success { text-align: center; padding: 80px 0; }
.success-icon { width: 64px; height: 64px; background: rgba(34,197,94,0.1); color: #4ade80; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-icon svg { width: 28px; height: 28px; display: block; }
.success-title { font-size: 24px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.success-desc  { font-size: 14px; color: rgba(var(--fg-rgb),0.3); line-height: 1.6; margin-bottom: 32px; }
.success-reset { font-size: 14px; color: #60a5fa; background: none; border: none; transition: color 0.3s; font-family: inherit; }
.success-reset:hover { color: #3b82f6; }

/* === FOOTER === */
#site-footer { position: relative; background: var(--bg); border-top: 1px solid rgba(var(--fg-rgb),0.05); }
.footer-main { padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
@media (min-width:768px) { .footer-grid { grid-template-columns: 4fr 2fr 2fr 4fr; gap: 0; } }
.footer-brand .footer-logo { display: inline-block; margin-bottom: 24px; color: var(--fg); }
.footer-brand .footer-logo svg { height: 40px; width: auto; }
.footer-brand p { font-size: 14px; color: rgba(var(--fg-rgb),0.4); line-height: 1.7; max-width: 280px; }
.footer-col h3 { font-size: 11px; font-weight: 700; color: rgba(var(--fg-rgb),0.6); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links li a { font-size: 14px; color: rgba(var(--fg-rgb),0.3); display: inline-flex; align-items: center; gap: 4px; transition: color 0.3s; }
.footer-links li a:hover { color: var(--fg); }
.footer-links li a svg { width: 12px; height: 12px; opacity: 0; transform: translate(-4px,4px); transition: all 0.3s; display: block; }
.footer-links li a:hover svg { opacity: 1; transform: translate(0,0); }
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact-list svg { width: 16px; height: 16px; color: rgba(59,130,246,0.6); flex-shrink: 0; margin-top: 2px; display: block; }
.footer-contact-list span { font-size: 14px; color: rgba(var(--fg-rgb),0.3); }
.footer-bottom { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; border-top: 1px solid rgba(var(--fg-rgb),0.05); font-size: 11px; color: rgba(var(--fg-rgb),0.2); }
@media (min-width:768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom-info { text-align: center; }
@media (min-width:768px) { .footer-bottom-info { text-align: left; } }
.footer-bottom-info p+p { margin-top: 4px; }
.footer-bottom-links { display: flex; gap: 24px; justify-content: center; }
.footer-bottom-links a { color: rgba(var(--fg-rgb),0.2); transition: color 0.3s; }
.footer-bottom-links a:hover { color: rgba(var(--fg-rgb),0.5); }

/* Tilt card */
.tilt-card { transform-style: preserve-3d; transition: transform 0.3s cubic-bezier(0.03,0.98,0.52,0.99); }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 10; }

/* Magnetic wrapper */
.magnetic { display: inline-flex; transition: transform 0.3s cubic-bezier(0.03,0.98,0.52,0.99); }

/* Mobile only */
.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width:768px) { .mobile-only { display: none; } .desktop-only { display: block; } }
.border-l-nav { border-left: 1px solid rgba(var(--fg-rgb),0.1); padding-left: 16px; margin-left: 8px; }
