/* ============================================
   STEMMA — Venture Studio
   Design: App-like single-viewport landing
   Inspired by yevtam.com aesthetic
   ============================================ */

:root,
[data-theme='light'] {
  /* Backgrounds */
  --color-bg: #f8f8f8;
  --color-bg-edge: #ededed;
  --color-surface: rgba(255, 255, 255, 0.7);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-surface-solid: #ffffff;

  /* Text */
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-text-faint: #9a9a9a;
  --color-text-inverse: #f8f8f8;

  /* Accents */
  --color-accent: #4f5fff;
  --color-accent-subtle: rgba(79, 95, 255, 0.1);

  /* Borders */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.12);
  --color-divider: rgba(0, 0, 0, 0.06);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-default: 720px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  --text-2xl: clamp(2rem, 0.8rem + 4vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 0.5rem + 6vw, 4.5rem);
  --text-hero: clamp(3rem, 0rem + 8vw, 6rem);

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

[data-theme='dark'] {
  --color-bg: #16161a;
  --color-bg-edge: #0d0d0f;
  --color-surface: rgba(30, 30, 35, 0.6);
  --color-surface-hover: rgba(40, 40, 48, 0.8);
  --color-surface-solid: #1c1c22;

  --color-text: #f0f0f2;
  --color-text-muted: #8b8b94;
  --color-text-faint: #5c5c66;
  --color-text-inverse: #16161a;

  --color-accent: #6b7fff;
  --color-accent-subtle: rgba(107, 127, 255, 0.12);

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  --color-divider: rgba(255, 255, 255, 0.06);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #16161a;
    --color-bg-edge: #0d0d0f;
    --color-surface: rgba(30, 30, 35, 0.6);
    --color-surface-hover: rgba(40, 40, 48, 0.8);
    --color-surface-solid: #1c1c22;
    --color-text: #f0f0f2;
    --color-text-muted: #8b8b94;
    --color-text-faint: #5c5c66;
    --color-text-inverse: #16161a;
    --color-accent: #6b7fff;
    --color-accent-subtle: rgba(107, 127, 255, 0.12);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.12);
    --color-divider: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  }
}

/* ============================================
   BASE LAYOUT
   ============================================ */

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, var(--color-bg) 0%, var(--color-bg-edge) 100%);
  font-family: var(--font-body);
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   TOP NAV PILL
   ============================================ */

.nav-pill {
  position: fixed;
  top: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.nav-pill__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  color: var(--color-text-muted);
  cursor: pointer;
  border-right: 1px solid var(--color-divider);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav-pill__item:last-child {
  border-right: none;
}

.nav-pill__item:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
}

.nav-pill__item svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   CENTER CONTENT
   ============================================ */

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  padding: var(--space-4);
  max-width: var(--content-default);
  animation: fadeInUp 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.main__logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

/* Name */
.main__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* Headline */
.main__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3125rem, 1rem + 1.3vw, 1.9375rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  max-width: 20ch;
}

.main__headline-icon {
  display: inline-flex;
  vertical-align: middle;
  width: 0.9em;
  height: 0.9em;
  margin: 0 0.08em;
  position: relative;
  top: -0.02em;
}

/* ============================================
   BOTTOM DOCK
   ============================================ */

.dock {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 2rem);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dock::-webkit-scrollbar {
  display: none;
}

.dock__divider {
  width: 1px;
  height: 32px;
  background: var(--color-divider);
  flex-shrink: 0;
  margin: 0 var(--space-1);
}

.dock__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
  overflow: hidden;
}

.dock__item:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-md);
}

.dock__item:active {
  transform: translateY(-1px) scale(1.02);
}

.dock__item svg {
  width: 22px;
  height: 22px;
  color: white;
  position: relative;
  z-index: 1;
}

.dock__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Dock icon backgrounds */
.dock__item--email { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.dock__item--linkedin { background: linear-gradient(135deg, #0a66c2 0%, #004182 100%); }
.dock__item--instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* ============================================
   TOOLTIP
   ============================================ */

.dock__item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-interactive);
  box-shadow: var(--shadow-sm);
}

.dock__item[data-tooltip]:hover::after {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
  .main__logo {
    width: 96px;
    height: 96px;
  }

  .dock__item {
    width: 40px;
    height: 40px;
  }

  .dock__item svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-height: 700px) {
  .main {
    gap: var(--space-6);
  }
}

@media (min-height: 900px) {
  .main {
    gap: var(--space-8);
  }

  .main__logo {
    width: 128px;
    height: 128px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .main {
    animation: none;
  }

  .dock__item:hover {
    transform: none;
  }
}
