:root {
  --color-bg: #000000;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.06);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text-main: #ffffff;
  --color-text-muted: #a1a1aa;
  --color-text-light: #71717a;
  --color-accent: #ff5a00;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(60px) saturate(160%);
  -webkit-backdrop-filter: blur(60px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.17),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5),
    0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.glass-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 0.45),
    0 18px 50px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

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

.glass-nav {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(40px) saturate(180%) contrast(110%);
  -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(110%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 251, 0.94) 52%, rgba(232, 234, 241, 0.86) 100%);
  color: #000000;
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-top-color: #ffffff;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 2px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 8px 22px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.glass-button:hover {
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(249, 250, 253, 0.98) 52%, rgba(239, 241, 247, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 2px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 26px rgba(0, 0, 0, 0.2),
    0 0 18px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px) scale(1.02);
}

.apple-cta-icon {
  display: inline-block;
  height: 1.2em;
  width: auto;
  flex: none;
  object-fit: contain;
  transform: translateY(-0.08em);
}

.glass-button-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
  color: var(--color-text-main);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.14);
  border-left-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.glass-button-muted:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
}

.text-subtle-gloss {
  background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-link {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-text-main);
}
