/* OnlyFans Landing Page — 1:1 replica */

:root {
  --of-blue: #00aff0;
  --of-blue-hover: #0091cc;
  --of-blue-dark: #0088c2;
  --x-blue: #1da1f2;
  --google-blue: #4285f4;
  --text-dark: #242529;
  --text-body: #3a3b3c;
  --text-muted: #8a96a3;
  --text-light: #b0b7bf;
  --border: #dce1e6;
  --border-input: #cdd4db;
  --bg-white: #ffffff;
  --bg-gray: #f5f7f8;
  --bg-cookie: #f0f3f5;
  --btn-disabled: #c4cdd5;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
  --radius-input: 8px;
  --radius-btn: 1000px;
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

.link {
  color: var(--of-blue);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ── Cookie Banner ── */
.cookie-banner {
  background: var(--bg-cookie);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  position: relative;
  z-index: 100;
}

.cookie-banner--hidden {
  display: none;
}

.cookie-banner__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: 13px;
  color: var(--text-body);
  flex: 1;
  min-width: 200px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--of-blue);
  padding: 8px 12px;
  white-space: nowrap;
}

.cookie-banner__link:hover {
  text-decoration: underline;
}

.cookie-banner__accept {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #fff;
  background: var(--of-blue);
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: background 0.15s;
}

.cookie-banner__accept:hover {
  background: var(--of-blue-hover);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: min(720px, 100vh);
  background: var(--bg-white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__wave {
  position: absolute;
  filter: drop-shadow(4px 0 24px rgba(0, 140, 200, 0.18));
}

.hero__wave--desktop {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.hero__wave--mobile {
  display: none;
}

.hero__left {
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 48px 56px;
  pointer-events: none;
  z-index: 1;
}

.hero__left .logo {
  pointer-events: auto;
}

.hero__watermark {
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 500px;
  height: 500px;
  color: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.hero__watermark svg {
  width: 100%;
  height: 100%;
}

.hero__brand {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-bottom: 32px;
}

.logo--form {
  display: flex;
  justify-content: center;
  color: var(--of-blue);
  margin-bottom: 28px;
}

.logo--form .logo__icon {
  width: 36px;
  height: 36px;
}

.logo--form .logo__text {
  font-size: 26px;
}

.logo__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo__text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero__headline {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* ── Login (centered) ── */
.hero__login {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  z-index: 3;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.login-form {
  width: 100%;
}

.login-form__title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: center;
}

.login-form__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Fields ── */
.field {
  position: relative;
}

.field__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field__input::placeholder {
  color: var(--text-muted);
}

.field__input:focus {
  border-color: var(--of-blue);
  box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.15);
}

.field--phone {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  background: var(--bg-white);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field--phone:focus-within {
  border-color: var(--of-blue);
  box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.15);
}

.field__prefix {
  padding: 0 0 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  flex-shrink: 0;
  user-select: none;
}

.field--phone .field__input {
  border: none;
  box-shadow: none;
  padding-left: 8px;
}

.field--phone .field__input:focus {
  box-shadow: none;
}

.field--password .field__input {
  padding-right: 48px;
}

.field__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field__toggle:hover {
  color: var(--text-body);
}

.field__toggle svg {
  width: 22px;
  height: 22px;
}

/* ── Buttons ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius-btn);
  transition: background 0.15s, opacity 0.15s;
}

.btn--login {
  height: 48px;
  color: #fff;
  background: var(--btn-disabled);
  margin-top: 4px;
  text-transform: uppercase;
}

.btn--login:not(:disabled) {
  background: var(--of-blue);
  cursor: pointer;
}

.btn--login:not(:disabled):hover {
  background: var(--of-blue-hover);
}

.btn--login:disabled {
  cursor: not-allowed;
}

/* ── Legal & Links ── */
.login-form__legal {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 4px;
}

.login-form__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 4px;
}

.login-form__sep {
  color: var(--text-light);
}

/* ── Social Login ── */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn--social {
  height: 48px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  gap: 12px;
  padding: 0 20px;
  justify-content: flex-start;
}

.btn--social__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn--social__icon svg {
  width: 18px;
  height: 18px;
}

.btn--social__icon--google {
  background: #fff;
  border-radius: 4px;
  width: 28px;
  height: 28px;
}

.btn--social__icon--google svg {
  width: 20px;
  height: 20px;
}

.btn--x {
  background: var(--x-blue);
}

.btn--x:hover {
  background: #1a91da;
}

.btn--google {
  background: var(--google-blue);
}

.btn--google:hover {
  background: #3b78e7;
}

.btn--passwordless {
  background: var(--of-blue);
}

.btn--passwordless:hover {
  background: var(--of-blue-hover);
}

/* ── Featured Posts ── */
.featured {
  background: var(--bg-gray);
  padding: 48px 56px 64px;
}

.featured__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
  text-align: center;
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.post-card {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.post-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}

.post-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-gray);
}

.post-card__meta {
  display: flex;
  flex-direction: column;
}

.post-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--of-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.post-card__handle {
  font-size: 12px;
  color: var(--of-blue);
  font-weight: 400;
}

.post-card__time {
  font-size: 12px;
  color: var(--text-muted);
}

.post-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__image--locked img {
  filter: blur(18px) brightness(0.75) saturate(1.3);
  transform: scale(1.08);
}

.post-card__lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  text-align: center;
  padding: 16px;
}

.post-card__lock svg {
  opacity: 0.95;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.post-card__lock span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.post-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.post-card__body {
  padding: 12px 16px;
}

.post-card__text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 16px;
}

.post-card__stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.post-card__stat svg {
  opacity: 0.6;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .featured__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    background: var(--bg-white);
    padding-bottom: 48px;
  }

  .hero__wave--desktop {
    display: none;
  }

  .hero__wave--mobile {
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    filter: drop-shadow(0 4px 20px rgba(0, 140, 200, 0.12));
  }

  .hero__left {
    position: relative;
    width: 100%;
    height: auto;
    padding: 32px 24px 24px;
    pointer-events: auto;
    z-index: 1;
  }

  .hero__login {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    padding: 0 24px 40px;
    z-index: 2;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .hero__watermark {
    width: 280px;
    height: 280px;
    bottom: -50px;
    left: -40px;
  }

  .hero__headline {
    font-size: 26px;
  }

  .featured {
    padding: 32px 24px 48px;
  }

  .featured__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__accept {
    text-align: center;
  }
}
