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

:root {
  /* Apple Design System Tokens — Red, White, Black */
  --color-primary-ink: #1d1d1f;
  --color-pure-black: #08080a;
  --color-mid-gray: #707070;
  --color-deep-gray: #474747;
  --color-hairline: #e5e5ea;
  --color-canvas: #f5f5f7;
  --color-paper: #ffffff;
  --color-cool-wash: #e8e8ed;
  --color-faded-surface: #fafafc;
  --color-quiet-dot: #777779;
  
  /* Signature Chromatic Red Accent (Apple Style) */
  --accent-red: #e3001b;
  --accent-red-hover: #c70017;
  --c-action: #e3001b;
  
  --text-gray: #707070;
  --text-dark: #1d1d1f;
  --text-white: #ffffff;
  
  --c-bg: #ffffff;
  --c-content: #1d1d1f;
  --radius-card: 28px;
  --radius-pill: 980px;

  /* Typography Font Stack */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* ========================================= */
/* БАЗОВЫЕ НАСТРОЙКИ (APPLE LIGHT CANVAS)   */
/* ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Фирменное красное выделение текста (Apple Red Selection) */
::selection {
  background-color: #e3001b !important;
  color: #ffffff !important;
}

::-moz-selection {
  background-color: #e3001b !important;
  color: #ffffff !important;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-paper);
  color: var(--color-primary-ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.47;
  letter-spacing: -0.022em;
}

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

/* Background Ambient Glow (Apple subtle chromatic touch) */
.background-blobs {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  animation: float 14s infinite alternate ease-in-out;
}

.blob.red {
  width: 550px; height: 550px;
  background: var(--accent-red);
  top: -15%; right: -5%;
}

.blob.dark-gray {
  width: 450px; height: 450px;
  background: #1d1d1f;
  bottom: -15%; left: -5%;
  animation-delay: -7s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.08); }
}

/* ========================================= */
/* APPLE FROSTED GLASS & PANELS              */
/* ========================================= */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  color: var(--color-primary-ink);
}

.glass-panel-dark {
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  color: #ffffff;
}

/* Apple Pill Buttons */
.liquid-btn, .hero-btn {
  background-color: var(--accent-red);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: -0.015em;
  box-shadow: 0 4px 14px rgba(227, 0, 27, 0.22);
}

.liquid-btn:hover, .hero-btn:hover {
  background-color: var(--accent-red-hover);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(227, 0, 27, 0.3);
}

.liquid-btn:active, .hero-btn:active {
  transform: scale(0.98);
}

.ghost-pill-btn {
  background: transparent;
  color: var(--color-primary-ink) !important;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ghost-pill-btn:hover {
  background: var(--color-canvas);
  border-color: var(--color-primary-ink);
}

/* Micro-animations */
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.animate-float {
  animation: subtleFloat 4s ease-in-out infinite;
}