@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
  --bg: #070c14;
  --bg-alt: #0b1420;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(14, 22, 34, 0.74);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.2);
  --border-hover: rgba(148, 163, 184, 0.36);
  --text: #e7edf6;
  --text-sub: #b0bfd2;
  --text-light: #7f8da1;
  --accent-blue: #7ab0f8;
  --accent-purple: #87dbc9;
  --accent-green: #64d1b5;
  --accent-pink: #d9b37c;
  --accent-orange: #d89a66;
  --accent-red: #d88383;
  --shadow-soft: 0 10px 30px rgba(2, 8, 23, 0.3);
  --shadow-lift: 0 20px 48px rgba(2, 8, 23, 0.42);
  --radius: 16px;
  --radius-sm: 12px;
  /* Nav & card backgrounds */
  --nav-bg: rgba(7, 12, 20, 0.72);
  --nav-mobile-bg: rgba(7, 12, 20, 0.96);
  --card-bg: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  --card-bg-hover: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  --body-bg-solid: #060b13;
}

[data-theme="light"] {
  --bg: #f0f4f8;
  --bg-alt: #e2e8f0;
  --surface: rgba(0, 0, 0, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --surface-hover: rgba(0, 0, 0, 0.06);
  --border: rgba(100, 116, 139, 0.22);
  --border-hover: rgba(100, 116, 139, 0.4);
  --text: #1a202c;
  --text-sub: #4a5568;
  --text-light: #718096;
  --accent-blue: #2563eb;
  --accent-purple: #0d9488;
  --accent-green: #059669;
  --accent-pink: #b45309;
  --accent-orange: #c2410c;
  --accent-red: #dc2626;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lift: 0 20px 48px rgba(0, 0, 0, 0.15);
  /* Nav & card backgrounds */
  --nav-bg: rgba(240, 244, 248, 0.82);
  --nav-mobile-bg: rgba(240, 244, 248, 0.98);
  --card-bg: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
  --card-bg-hover: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
  --body-bg-solid: #e8edf3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #060b13 0%, #0a121d 44%, #09101a 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
  background: linear-gradient(180deg, #e8edf3 0%, #f0f4f8 44%, #eaeff5 100%);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(1200px 560px at 12% -4%, rgba(59, 130, 246, 0.1), transparent 64%),
    radial-gradient(900px 500px at 86% 8%, rgba(20, 184, 166, 0.08), transparent 68%),
    radial-gradient(760px 520px at 50% 100%, rgba(99, 102, 241, 0.06), transparent 72%);
}

[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  opacity: 0.35;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(1200px 560px at 12% -4%, rgba(125, 170, 238, 0.18), transparent 64%),
    radial-gradient(900px 500px at 86% 8%, rgba(120, 214, 193, 0.12), transparent 68%),
    radial-gradient(760px 520px at 50% 100%, rgba(110, 130, 170, 0.1), transparent 72%);
  filter: blur(8px) saturate(88%);
}

body::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.24;
}

a { color: inherit; }

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(2, 8, 23, 0.25);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-links a:hover {
  color: var(--accent-blue);
  background: rgba(122, 176, 248, 0.12);
  box-shadow: inset 0 0 0 1px rgba(122, 176, 248, 0.22);
}

.nav-links a.active {
  color: var(--accent-blue);
  background: rgba(122, 176, 248, 0.16);
  box-shadow: inset 0 0 0 1px rgba(122, 176, 248, 0.28);
}

/* ========== Theme Toggle Button ========== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  margin-left: 8px;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--accent-blue);
  transform: rotate(15deg) scale(1.08);
}

/* Hamburger button - hidden on desktop */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  gap: 5px;
  z-index: 201;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-sub);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Layout ========== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #dbe8f8, #91b4e6 55%, #83c8ba);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 52% at 50% 24%, rgba(122, 176, 248, 0.14) 0%, transparent 72%),
    radial-gradient(ellipse 45% 45% at 68% 54%, rgba(135, 219, 201, 0.1) 0%, transparent 74%),
    linear-gradient(135deg, rgba(122, 176, 248, 0.08), rgba(135, 219, 201, 0.06), rgba(217, 179, 124, 0.04), rgba(122, 176, 248, 0.08));
  background-size: 100% 100%, 100% 100%, 300% 300%;
  animation: gradientShift 12s ease infinite;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  animation: float 4s ease-in-out infinite;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #eef4ff 0%, #b7d0f1 52%, #93cbbf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 8px 28px rgba(122, 176, 248, 0.22);
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(122, 176, 248, 0.48);
  color: var(--accent-blue);
  background: rgba(122, 176, 248, 0.14);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.stat-suffix {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-blue);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-sub);
  font-weight: 500;
  margin-top: 4px;
}

.hero-proof {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-sub);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* ========== Category Title ========== */
.category-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin: 32px 0 14px;
  padding-left: 4px;
}

/* ========== Service Grid ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Category-specific hover glows */
.card-tools:hover {
  border-color: rgba(100, 209, 181, 0.38);
}

.card-game:hover {
  border-color: rgba(216, 154, 102, 0.38);
}

.card-test:hover {
  border-color: rgba(122, 176, 248, 0.38);
}

.service-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.service-info p {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.service-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  letter-spacing: 0.03em;
}

.service-badge.hot {
  background: rgba(248, 113, 113, 0.15);
  color: var(--accent-red);
}

/* ========== Portfolio Section ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  padding: 22px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  top: -70px;
  right: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 176, 248, 0.16), transparent 70%);
  pointer-events: none;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 176, 248, 0.4);
  box-shadow: var(--shadow-lift);
}

.portfolio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.portfolio-type {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.portfolio-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.portfolio-status.live {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
}

.portfolio-card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.portfolio-card p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-tags span {
  font-size: 0.7rem;
  color: var(--text-sub);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* ========== AI Section ========== */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.ai-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  overflow: hidden;
}

.ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(122, 176, 248, 0.38), rgba(135, 219, 201, 0.22));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.ai-card:hover {
  background: var(--card-bg-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.ai-card-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(122, 176, 248, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ai-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.ai-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ai-info p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.ai-status {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.ai-status.live {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
}

.ai-status.dev {
  background: rgba(251, 146, 60, 0.15);
  color: var(--accent-orange);
}

.ai-message {
  text-align: center;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.ai-message p {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ========== App Section ========== */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.app-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-soft);
}

.app-card.app-featured {
  border-color: rgba(122, 176, 248, 0.36);
  background: linear-gradient(135deg, rgba(122, 176, 248, 0.08) 0%, rgba(135, 219, 201, 0.05) 100%);
  padding: 24px;
}

.app-card.app-featured:hover {
  box-shadow: var(--shadow-lift);
}

.app-icon-large {
  font-size: 2.8rem;
  flex-shrink: 0;
}

.app-icon-small {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.app-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-info p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.app-meta {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.app-platform {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface-hover);
  color: var(--text);
  transition: background 0.3s ease;
}

.app-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.app-status.live {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
}

.app-status.dev {
  background: rgba(251, 146, 60, 0.15);
  color: var(--accent-orange);
}

/* ========== About Section ========== */
.about-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.about-intro p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.9;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.value-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.value-item:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-soft);
}

.value-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.value-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--text);
}

.value-item span {
  font-size: 0.82rem;
  color: var(--text-sub);
}

/* ========== Timeline ========== */
.timeline-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(122, 176, 248, 0.7), rgba(135, 219, 201, 0.6), rgba(217, 179, 124, 0.5));
  opacity: 0.42;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(122, 176, 248, 0.22);
  z-index: 1;
}

.timeline-item:nth-child(2) .timeline-dot { background: var(--accent-purple); box-shadow: 0 0 0 4px rgba(135, 219, 201, 0.2); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--accent-green); box-shadow: 0 0 0 4px rgba(100, 209, 181, 0.2); }
.timeline-item:nth-child(4) .timeline-dot { background: var(--accent-orange); box-shadow: 0 0 0 4px rgba(216, 154, 102, 0.2); }
.timeline-item:nth-child(5) .timeline-dot { background: var(--accent-pink); box-shadow: 0 0 0 4px rgba(217, 179, 124, 0.2); }
.timeline-item:nth-child(6) .timeline-dot { background: var(--accent-red); box-shadow: 0 0 0 4px rgba(216, 131, 131, 0.2); }

.timeline-content {
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-soft);
}

.timeline-date {
  font-family: 'Inter', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.03em;
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 4px 0;
}

.timeline-content p {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ========== Process Section ========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.process-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.process-card:hover {
  border-color: rgba(122, 176, 248, 0.4);
  background: linear-gradient(160deg, rgba(122, 176, 248, 0.1), rgba(135, 219, 201, 0.05));
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.process-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.process-card p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.process-card ul {
  list-style: none;
  display: grid;
  gap: 7px;
}

.process-card li {
  font-size: 0.8rem;
  color: var(--text-light);
  padding-left: 14px;
  position: relative;
}

.process-card li::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  left: 0;
  top: 7px;
  background: var(--accent-blue);
}

/* ========== Business Section ========== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.business-card {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: all 0.25s ease;
}

.business-card:hover {
  border-color: rgba(148, 163, 184, 0.44);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.business-kicker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-blue);
  background: rgba(122, 176, 248, 0.16);
  border: 1px solid rgba(122, 176, 248, 0.32);
}

.business-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.business-card p {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 10px;
}

.business-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.business-card li {
  font-size: 0.8rem;
  color: var(--text-light);
  padding-left: 14px;
  position: relative;
}

.business-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  position: absolute;
  left: 0;
  top: 8px;
}

.business-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(122, 176, 248, 0.12), rgba(100, 209, 181, 0.1));
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.business-cta h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.business-cta p {
  font-size: 0.86rem;
  color: var(--text-sub);
}

/* ========== Blog CTA ========== */
.blog-cta {
  text-align: center;
  padding: 48px 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.blog-cta h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.blog-cta p {
  color: var(--text-sub);
  margin-bottom: 24px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #274a7e, #356eb1);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(170, 200, 240, 0.28);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 12px 24px rgba(20, 50, 94, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(20, 50, 94, 0.45);
  filter: brightness(1.05);
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
}

/* Shimmer effect on primary CTA */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

/* ========== Footer ========== */
.footer {
  margin-top: 20px;
  padding: 40px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.footer-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-subtitle {
  font-size: 0.78rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 4px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-sub);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.08);
}

.footer-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-services a {
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface);
  transition: all 0.2s;
}

.footer-services a:hover {
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-light);
}

.footer-mini {
  display: flex;
  gap: 12px;
}

.footer-mini a {
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-mini a:hover {
  color: var(--text-sub);
}

/* ========== Scroll To Top ========== */
.scroll-to-top {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-sub);
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.3s, color 0.2s, border-color 0.3s;
  z-index: 900;
  cursor: pointer;
}

.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border-color: rgba(56, 189, 248, 0.3);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  /* Mobile nav: hamburger + dropdown */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    gap: 2px;
    transition: background-color 0.3s ease;
  }

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

  .nav-links a {
    padding: 12px 16px;
    font-size: 0.92rem;
    border-radius: 8px;
  }

  .nav {
    position: sticky;
  }

  .hero { padding: 70px 0 40px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-tagline { font-size: 1.15rem; }
  .hero-stats { gap: 28px; }
  .stat-number { font-size: 2rem; }
  .hero-actions { margin-bottom: 30px; }
  .hero-proof { margin-top: 20px; }

  .service-grid,
  .ai-grid,
  .portfolio-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .business-cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .value-item { padding: 20px 16px; }
  .blog-cta { padding: 32px 24px; }
  .section { margin-bottom: 60px; }

  .timeline {
    padding-left: 32px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -28px;
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 430px) {
  .nav-inner {
    padding: 0 16px;
    height: 52px;
  }

  .nav-links a {
    font-size: 0.86rem;
    padding: 6px 10px;
  }

  .container { padding: 0 16px; }

  .hero { padding: 60px 0 30px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-tagline { font-size: 1rem; }
  .hero-desc { font-size: 0.88rem; }
  .hero-actions a { width: 100%; text-align: center; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat-number { font-size: 1.6rem; }
  .hero-proof span { font-size: 0.7rem; }

  .section-title { font-size: 1.6rem; }

  .footer-top { flex-direction: column; align-items: flex-start; }

  .timeline { padding-left: 28px; }
  .timeline::before { left: 8px; }
  .timeline-dot { left: -25px; width: 8px; height: 8px; }
  .timeline-content { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { animation: none !important; }
}
