/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --text: #0d1526;
  --text-muted: #5b667a;
  --border: #e7ecf3;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --tg: #229ed9;
  --tg-dark: #1b7fb0;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.05);
  --shadow-md: 0 10px 30px rgba(13, 21, 38, 0.08);
  --shadow-lg: 0 20px 50px rgba(2, 132, 199, 0.16);
  --max: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.brand-name span {
  color: var(--primary);
}

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

.nav-link {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 3px;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn-telegram {
  background: linear-gradient(135deg, var(--tg), var(--tg-dark));
  color: #fff;
  box-shadow: 0 8px 22px rgba(34, 158, 217, 0.32);
}

.btn-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(34, 158, 217, 0.42);
}

.btn-telegram:active {
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: #cfd8e6;
  box-shadow: var(--shadow-md);
}

.tg-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-lg .tg-icon {
  width: 20px;
  height: 20px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 130px) 0 clamp(56px, 9vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(1000px 400px at 50% -10%, rgba(14, 165, 233, 0.09), transparent 70%),
    var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  animation: fadeUp 0.6s ease both;
}

.greeting::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 15ch;
  animation: fadeUp 0.6s 0.08s ease both;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), #6366f1 60%, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.13rem);
  animation: fadeUp 0.6s 0.16s ease both;
}

/* Date & time card */
.datetime-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 5vw, 40px);
  padding: 18px clamp(20px, 5vw, 38px);
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.6s 0.24s ease both;
}

.datetime-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.datetime-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.datetime-value {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.datetime-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  animation: fadeUp 0.6s 0.32s ease both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  animation: fadeUp 0.6s 0.4s ease both;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Decorative glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.glow-1 {
  width: 340px;
  height: 340px;
  background: rgba(14, 165, 233, 0.35);
  top: -90px;
  left: -80px;
}

.glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.28);
  bottom: -80px;
  right: -70px;
}

/* ===== Features ===== */
.features {
  padding: clamp(56px, 9vw, 100px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(34px, 6vw, 54px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #d6e4f3;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(99, 102, 241, 0.14));
  margin-bottom: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== CTA band ===== */
.cta-band {
  padding: clamp(48px, 8vw, 84px) 0;
  background: var(--bg);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 24px;
  background: linear-gradient(135deg, #f2f9ff, #f6f4ff);
  border: 1px solid var(--border);
}

.cta-inner h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-inner p {
  color: var(--text-muted);
  max-width: 52ch;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.84rem;
  opacity: 0.8;
}

/* ===== Animation ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 18px;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .datetime-card {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 340px;
  }

  .datetime-divider {
    width: 100%;
    height: 1px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}
