/* ============================================
   PEMSTD — GLOBAL STYLES
   Dark theme, red accent, iOS-26-style glass header
   ============================================ */

:root {
  --bg-color: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #161616;
  --border-color: #262626;
  --text-primary: #f5f5f5;
  --text-secondary: #9a9a9a;
  --accent-red: #e0262c;
  --accent-red-hover: #ff3339;
  --accent-red-dim: rgba(224, 38, 44, 0.15);
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-smooth: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 68px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

ul {
  list-style: none;
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--transition-smooth), background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(224, 38, 44, 0.25);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(224, 38, 44, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ============================================
   HEADER — sticky, glass blur, iOS-26 style
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo .logo-accent {
  color: var(--accent-red);
}

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

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-smooth);
}

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

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width var(--transition-smooth);
}

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

/* Mobile menu icon (no hamburger text, icon only) */
.nav-toggle {
  display: none;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-smooth);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-primary);
  transition: transform var(--transition-smooth);
}

.nav-toggle.open svg {
  transform: rotate(90deg);
}

/* Mobile nav drawer */
.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  z-index: 999;
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile a {
  padding: 16px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

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

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============================================
   TOAST NOTIFICATION (custom, no alert())
   ============================================ */

.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 90vw;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast .toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.toast.success .toast-icon {
  background: #1fa34a;
  color: #fff;
}

.toast.error .toast-icon {
  background: var(--accent-red);
  color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   SCROLLBAR (subtle, dark)
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* ============================================
   UTILITY
   ============================================ */

.section-label {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
}

.section-sub {
  color: var(--text-secondary);
  margin-top: 10px;
  font-size: 1rem;
}

.fade-in {
  animation: fadeIn 0.6s var(--transition-smooth) both;
}

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