:root {
  --bg: #c9f02b;
  --surface: #ffffff;
  --text-dark: #0a2a14;
  --text-body: #14361f;
  --btn-light-bg: #e9e9e9;
  --btn-dark-bg: #0a0a0a;
  --btn-primary-bg: #0f3a1f;
  --radius-pill: 999px;
  --radius-card: 28px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  padding: 22px 28px 80px;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 14px 22px 14px 26px;
  max-width: 1360px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.18s ease, opacity 0.18s ease;
}

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

.btn-light {
  background: var(--btn-light-bg);
  color: #111;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
}

.btn-light:hover {
  background: #dcdcdc;
}

.btn-dark {
  background: var(--btn-dark-bg);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
}

.btn-dark:hover {
  background: #1f1f1f;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-copy {
  padding-left: 28px;
  max-width: 640px;
}

.hero-title {
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 0 0 22px;
}

.hero-sub {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0 0 40px;
  font-weight: 500;
}

/* ---------- Signup form ---------- */
.signup-form {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
}

.input-wrap {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.reels-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 16px 22px;
  border-radius: var(--radius-pill);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  color: #222;
}

.reels-input::placeholder {
  color: #8a8a8a;
  font-weight: 500;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
  padding: 18px 40px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #0a2a16;
}

/* ---------- Hero visual ---------- */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 8px;
}

.hero-image {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal.is-open {
  display: flex;
  animation: modalFadeIn 0.18s ease both;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 12, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 36px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.22s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f2f2f2;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: #e4e4e4;
}

.modal-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.modal-brand img {
  height: 26px;
  width: auto;
}

.modal-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin: 0 0 6px;
  text-align: center;
}

.modal-sub {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #5b6b60;
  margin: 0 0 22px;
  text-align: center;
}

.btn-google {
  width: 100%;
  background: #fff;
  color: #222;
  border: 1px solid #e2e2e2;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.btn-google:hover {
  background: #f7f7f7;
  border-color: #d0d0d0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #9aa39d;
  font-size: 13px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ececec;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: #2a3a30;
  font-family: "Manrope", sans-serif;
}

.field input {
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fafafa;
}

.field input:focus {
  border-color: var(--btn-primary-bg);
  box-shadow: 0 0 0 3px rgba(15, 58, 31, 0.12);
  background: #fff;
}

.btn-block {
  width: 100%;
  margin-top: 4px;
  padding: 14px 22px;
}

.modal-switch {
  text-align: center;
  margin: 18px 0 0;
  font-size: 14px;
  color: #5b6b60;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0 0 0 4px;
  color: var(--btn-primary-bg);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  font-family: "Manrope", sans-serif;
}

.link-btn:hover {
  text-decoration: underline;
}

/* hide signup-only fields when in login mode */
.modal[data-mode="login"] [data-show-on="signup"] {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    padding-left: 0;
    text-align: left;
  }

  .hero-visual {
    justify-content: center;
    padding-right: 0;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 620px) {
  .page {
    padding: 16px 16px 60px;
  }

  .modal-card {
    padding: 30px 22px 22px;
    max-width: 100%;
  }

  .modal-title {
    font-size: 22px;
  }

  .navbar {
    padding: 10px 14px 10px 18px;
  }

  .btn-light,
  .btn-dark {
    padding: 11px 18px;
    font-size: 14px;
  }

  .brand-logo {
    height: 24px;
  }

  .hero-sub br {
    display: none;
  }

  .hero-title br {
    display: none;
  }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary {
    width: 100%;
  }
}
