@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: #0A0A0F;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 431px) {
  body {
    align-items: center;
    padding: 40px 20px;
  }

  .container {
    min-height: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
      0 4px 24px rgba(30, 58, 95, 0.5),
      0 0 60px rgba(74, 158, 255, 0.15),
      0 0 120px rgba(74, 158, 255, 0.08);
  }

  .buttons {
    border-radius: 28px 28px 0 0;
  }
}

/* Header */
.header {
  position: relative;
  height: 370px;
  background: url('assets/header-bg.png') center / cover no-repeat;
  flex-shrink: 0;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.header-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  height: 100%;
}

/* Logo */
.logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}

.logo-border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(to bottom, #1E3A5F, #4A9EFF) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) border-box;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) border-box;
  mask-composite: exclude;
}

.logo-svg {
  width: 160px;
  height: 160px;
}

.tagline {
  color: #f2f2f2;
  font-weight: 700;
  font-size: 20px;
  margin-top: 24px;
}

/* Buttons section */
.buttons {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  background: #0A0A0F;
  border-radius: 28px 28px 0 0;
  padding: 32px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* Button */
.btn {
  display: flex;
  align-items: center;
  position: relative;
  height: 56px;
  padding: 0 20px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08), rgba(30, 58, 95, 0.12));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 3px 12px rgba(74, 158, 255, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  text-decoration: none;
  transition: filter 0.25s ease, transform 0.2s ease;
  z-index: 1;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 13px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 260deg,
    #4A9EFF 290deg,
    #89d9e8 320deg,
    #4A9EFF 350deg,
    transparent 360deg
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 3.5px;
}

.btn:hover::before {
  opacity: 1;
  animation: border-spin 2.5s linear infinite;
}

.btn img,
.btn svg {
  flex-shrink: 0;
}

.btn span {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.btn:hover {
  border-color: transparent;
  transform: scale(1.03);
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

.btn:active {
  transform: scale(0.98);
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
}

.footer p {
  color: #3A4555;
  font-weight: 400;
  font-size: 11px;
}
