:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #101010;
  --panel-hover: #181818;
  --border: #292929;
  --text: #f5f5f5;
  --muted: #929292;
  --accent: #fff;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, #202020 0, transparent 52%),
    repeating-linear-gradient(125deg, #ffffff03 0 1px, transparent 1px 5px),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #080808d9;
  border-color: #252525;
  backdrop-filter: blur(16px);
}

.page {
  max-width: 1320px;
  padding: clamp(24px, 4vw, 58px) clamp(16px, 3vw, 42px);
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -2.4px;
  font-weight: 750;
}

h2 {
  letter-spacing: -.5px;
}

.subtitle {
  color: #a4a4a4;
  max-width: 680px;
  line-height: 1.8;
}

.grid {
  gap: 18px;
  margin-top: 34px;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #151515, #0d0d0d 75%);
  border: 1px solid #292929;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 12px 35px #0002;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #1b1b1b, #101010);
  border-color: #505050;
}

.card h2 {
  font-size: 18px;
  font-weight: 650;
}

.card p {
  color: var(--muted);
  line-height: 1.75;
}

.button {
  min-height: 42px;
  padding: 12px 19px;
  border-radius: 10px;
  background: #f5f5f5;
  border-color: #f5f5f5;
  color: #080808;
  transition: transform .18s ease, background .18s ease;
}

.button:hover {
  background: #dcdcdc;
  transform: translateY(-1px);
}

.button-secondary {
  min-height: 38px;
  border-radius: 9px;
  background: #151515;
  border-color: #343434;
}

.button-secondary:hover {
  background: #222;
  border-color: #555;
}

input,
select,
textarea {
  max-width: 100%;
  background: #101010;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
}

:focus-visible {
  outline: 2px solid #eee;
  outline-offset: 3px;
}

#prices,
#settings,
#tempmail,
#permmail,
#password-generator,
#file-sharer {
  scroll-margin-top: 90px;
}

@media (max-width: 700px) {
  .topbar {
    min-height: 62px;
    height: auto;
    padding: 10px 14px;
  }

  .page {
    padding: 28px 16px;
  }

  h1 {
    font-size: clamp(32px, 9vw, 44px);
    letter-spacing: -1.5px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .card {
    padding: 20px;
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
