/* ==========================================================================
   DIGITAL LINK - 2026 Modern Swiss Editorial Design System
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-dark: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1C1C1C;
  --bg-elevated: #1E1E1E;
  --border-color: #262626;
  --border-color-light: #333333;
  --border-active: #0052FF;
  
  --text-main: #FFFFFF;
  --text-muted: #A3A3A3;
  --text-subtle: #737373;
  --text-dark: #0A0A0A;

  --accent: #0052FF;
  --accent-hover: #2563EB;
  --accent-glow: rgba(0, 82, 255, 0.25);
  
  /* Typography */
  --font-sans: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --container-max: 1360px;
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Subtle Layout Grid Overlay */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1440px) {
  .container {
    padding: 0 40px;
  }
}

/* Typography Classes */
.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.section-title-lg {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.section-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

/* Header Component */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), height var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  height: 70px;
}

.header.scrolled .header-logo-img {
  height: 58px !important;
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #00A3FF);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 900;
  border-radius: 6px;
  box-shadow: 0 0 16px var(--accent-glow);
}

.desktop-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1A1A1A;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header .nav-cta {
  color: #1A1A1A;
  border-color: rgba(0, 0, 0, 0.15);
}

.header .nav-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(0, 82, 255, 0.06);
}

/* Mobile Toggle Hamburger */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 6px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #1A1A1A;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@media (max-width: 991px) {
  .desktop-nav, .nav-cta {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 999;
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-close-btn {
  font-size: 2.25rem;
  color: var(--text-muted);
  line-height: 1;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mobile-nav-link:hover, .mobile-nav-link.highlight {
  color: var(--accent);
}

.mobile-drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.mobile-slogan {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
