/* === Font Faces === */
/* Brand font: GC Natify Extra Bold */
@font-face {
  font-family: 'GC Natify';
  src: url('/static/fonts/GCNatify-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Headline font: HongKong */
@font-face {
  font-family: 'HongKong';
  src: url('/static/fonts/HongKong-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HongKong';
  src: url('/static/fonts/HongKong-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Body font: Vito */
@font-face {
  font-family: 'Vito';
  src: url('/static/fonts/vito-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vito';
  src: url('/static/fonts/vito-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vito';
  src: url('/static/fonts/vito-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --primary: #23272b;
  --darkblue: #2f374a;
  --yellow: #f8d600;
  --lilac: #dad2e9;
  --mint: #d4e9de;
  --salmon: #f9c3a4;
  --gray2: #b3adba;
  --white: #fff;
  --gray: #c6c6c5;

  --font-brand: 'GC Natify', 'Inter', sans-serif;
  --font-headline: 'HongKong', 'Inter', sans-serif;
  --font-body: 'Vito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--primary);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* === Hero === */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.logo {
  margin-bottom: 1rem;
}

.logo img {
  height: 5.5rem;
  width: auto;
}

.hero h1 {
  font-family: var(--font-brand);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
}

.hero .tagline {
  font-family: var(--font-headline);
  margin-top: 0;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

/* === Preview === */
.preview {
  width: 100%;
  margin-bottom: 3.5rem;
}

.preview-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.3),
    0 0 80px rgba(47,55,74,0.5);
}

.preview-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* === Waitlist === */
.waitlist {
  width: 100%;
  max-width: 520px;
}

.input-group {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.2s;
}

.input-group:focus-within {
  border-color: var(--yellow);
}

.input-group input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--darkblue);
  color: var(--white);
  border: none;
  outline: none;
  min-width: 0;
}

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

.input-group button {
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--yellow);
  color: var(--primary);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.input-group button:hover {
  opacity: 0.88;
}

.input-group button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25rem;
  color: var(--mint);
  font-family: var(--font-body);
}

.form-message.error {
  color: var(--salmon);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  color: var(--gray);
}

footer a {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--white);
}

/* === Responsive === */
@media (max-width: 480px) {
  main {
    padding: 3rem 1rem 1.5rem;
  }

  .logo img {
    height: 3.5rem;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group button {
    padding: 0.875rem;
  }
}
