@font-face {
  font-family: "Recoleta";
  src: url("../DailyGita/Resources/Fonts/Recoleta Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Recoleta";
  src: url("../DailyGita/Resources/Fonts/Recoleta Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f9f6ee;
  --ink: #252321;
  --muted: #7f7d7c;
  --brown: #4f3321;
  --accent: #ffb700;
  --accent-soft: rgba(255, 183, 0, 0.3);
  --accent-pill: rgba(255, 183, 0, 0.5);
  --input-border: #d0d5dd;
  --placeholder: #667085;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
  --serif: "Recoleta", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background: transparent;
}

button,
input {
  font: inherit;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--background);
}

.background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1440px);
  height: 80px;
  margin: 0 auto;
  padding: 0 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand span {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.platform-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  color: var(--brown);
  background: var(--accent-soft);
  border-radius: 24px;
  mix-blend-mode: multiply;
}

.platform-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 183, 0, 0.24);
  transform: scale(1);
  transform-origin: center;
  opacity: 0.78;
  animation: badge-pulse 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

.platform-badge span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 16px;
  background: var(--accent-pill);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: calc(100dvh - 160px);
  padding: 80px 24px 156px;
}

.hero-content {
  width: min(100%, 1024px);
  text-align: center;
}

h1 {
  width: min(100%, 502px);
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 72px;
}

.subtitle {
  width: min(100%, 768px);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.signup-form {
  width: min(100%, 580px);
  margin: 60px auto 0;
}

.signup-form label {
  display: block;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 64px;
  padding: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--input-border);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}

.input-row input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.input-row input:focus,
.input-row input:focus-visible,
.input-row input:-webkit-autofill,
.input-row input:-webkit-autofill:hover,
.input-row input:-webkit-autofill:focus {
  background: transparent;
  outline: none;
  box-shadow: 0 0 0 1000px #ffffff inset;
}

.input-row input::selection {
  background: rgba(255, 183, 0, 0.22);
}

.input-row input::placeholder {
  color: var(--placeholder);
}

.input-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 10px 16px;
  color: var(--brown);
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.input-row button:hover {
  background: #ffc43a;
}

.input-row button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.input-row button:active {
  transform: translateY(1px) scale(0.99);
}

.form-note {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.form-note.is-error {
  color: #b85543;
}

.form-note.is-success {
  color: #527144;
}

.footer {
  position: fixed;
  right: 80px;
  bottom: 40px;
  left: 80px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  width: auto;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.footer p,
.footer span {
  flex: 1 0 0;
  min-width: 0;
  margin: 0;
}

.footer span {
  text-align: right;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 28px;
  }

  .hero {
    min-height: auto;
    padding: 72px 24px 220px;
  }

  h1 {
    font-size: clamp(44px, 8vw, 60px);
    line-height: 1.12;
  }

  .footer {
    right: 28px;
    bottom: 28px;
    left: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .footer span {
    text-align: left;
  }
}

@keyframes badge-pulse {
  0% {
    transform: scale(1);
    opacity: 0.72;
  }

  72% {
    transform: scale(1.12);
    opacity: 0;
  }

  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand span {
    font-size: 24px;
  }

  .platform-badge {
    padding: 4px;
  }

  .platform-badge span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero {
    padding: 70px 18px 220px;
  }

  h1 {
    font-size: 43px;
    letter-spacing: -0.8px;
  }

  .subtitle {
    margin-top: 18px;
    font-size: 17px;
    line-height: 25px;
  }

  .signup-form {
    margin-top: 48px;
  }

  .signup-form label {
    margin-bottom: 18px;
    font-size: 18px;
  }

  .input-row {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
  }

  .input-row input {
    height: 52px;
    padding: 0 4px;
    font-size: 20px;
    line-height: 28px;
  }

  .input-row button {
    height: 52px;
    border-radius: 18px;
    font-size: 18px;
    line-height: 24px;
  }
}
