/* ===== VARIABLES ===== */
:root {
  --grand-base: #fff9f5;
  --grand-lime: #d4ff32;
  --grand-purple: #c084fc;
  --grand-orange: #ffe4d6;
  --grand-dark: #0f172a;
  --grand-dark-2: #1e293b;
  --grand-slate-700: #334155;
  --grand-slate-500: #64748b;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--grand-base);
  color: var(--grand-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--grand-purple);
  color: #fff;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--grand-base);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.orb-1 {
  width: 44vw;
  height: 44vw;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle at center, var(--grand-lime) 0%, transparent 70%);
  animation: float-1 26s ease-in-out infinite;
}

.orb-2 {
  width: 52vw;
  height: 52vw;
  bottom: -12%;
  right: -10%;
  background: radial-gradient(circle at center, var(--grand-purple) 0%, transparent 70%);
  animation: float-2 32s ease-in-out infinite;
}

.orb-3 {
  width: 60vw;
  height: 60vw;
  top: 25%;
  left: 30%;
  background: radial-gradient(circle at center, var(--grand-orange) 0%, transparent 70%);
  animation: float-3 38s ease-in-out infinite;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(30%, 20%); }
  66%      { transform: translate(-10%, 40%); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(-25%, -18%); }
  66%      { transform: translate(10%, -30%); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(18%, -15%) scale(1.15); }
  66%      { transform: translate(-22%, 18%) scale(0.95); }
}

/* ===== LAYOUT ===== */
.container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.content {
  width: 100%;
  max-width: 576px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== LOGO ===== */
.logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  background: var(--grand-dark);
  margin-bottom: 32px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .logo { width: 112px; height: 112px; }
}

/* ===== TITLE ===== */
.title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  color: var(--grand-dark);
}
@media (min-width: 768px) {
  .title { font-size: 4.5rem; }
}

.beta-badge {
  position: absolute;
  top: -8px;
  right: -40px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grand-dark);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== SUBTITLE ===== */
.subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--grand-slate-700);
  max-width: 28rem;
  line-height: 1.625;
  margin: 0;
}
@media (min-width: 768px) {
  .subtitle { font-size: 1.125rem; }
}

/* ===== DOWNLOAD BUTTONS ===== */
.downloads {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
@media (min-width: 640px) {
  .downloads { flex-direction: row; }
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--grand-dark);
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s, background 0.2s;
  width: 100%;
}
@media (min-width: 640px) {
  .dl-btn { width: auto; }
}
.dl-btn:hover {
  background: var(--grand-dark-2);
  transform: scale(1.02);
}
.dl-btn:active {
  transform: scale(0.95);
}

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

.dl-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.dl-small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}
.dl-big {
  font-size: 14px;
  font-weight: 700;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  width: 100%;
  max-width: 28rem;
  margin-top: 48px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 16px;
  color: var(--grand-dark);
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
}

.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
  color: var(--grand-slate-500);
}

.contact-form textarea {
  resize: none;
  min-height: 96px;
  font-size: 15px;
}

/* file chip */
.file-chip {
  margin: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
}
.file-chip span {
  font-size: 12px;
  font-weight: 500;
  color: var(--grand-slate-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-chip button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 9999px;
  color: var(--grand-slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.file-chip button:hover {
  background: #fff;
  color: var(--grand-dark);
}
.file-chip button svg {
  width: 16px;
  height: 16px;
}

/* form actions */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 4px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.attach-btn {
  padding: 12px;
  border-radius: 9999px;
  color: var(--grand-slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.attach-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--grand-dark);
  transform: scale(1.05);
}
.attach-btn:active {
  transform: scale(0.95);
}
.attach-btn svg {
  width: 20px;
  height: 20px;
}

.send-btn {
  padding: 12px 24px;
  background: var(--grand-dark);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.send-btn:hover:not(:disabled) {
  background: var(--grand-dark-2);
}
.send-btn:active:not(:disabled) {
  transform: scale(0.95);
}
.send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.send-btn svg {
  width: 16px;
  height: 16px;
}

.spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hidden { display: none !important; }

/* ===== FOOTNOTE ===== */
.footnote {
  margin-top: 28px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grand-slate-500);
}

/* ===== FADE UP ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--grand-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 260px;
  max-width: 360px;
  pointer-events: auto;
  animation: toastIn 0.3s ease-out;
}
.toast.success { border-left: 4px solid #10b981; }
.toast.error   { border-left: 4px solid #ef4444; }

.toast-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}
.toast-desc {
  font-size: 13px;
  color: var(--grand-slate-700);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.toast.toast-out {
  animation: toastOut 0.3s ease-in forwards;
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-12px); }
}
