:root {
  --of-blue: #00AEEF;
  --of-blue-hover: #0099d4;
  --google-blue: #4267D6;
  --google-blue-hover: #3a5cc4;
  --text: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-soft: #8a8f94;
  --border: #d6dade;
  --disabled-bg: #dfe3e6;
  --page-bg: #f4f5f7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--of-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ================= HERO ================= */
.hero {
  display: flex;
  /* Fixed band, like the original — deliberately shorter than the viewport
     so "Latest featured posts" peeks into view without scrolling. */
  height: 58vh;
  min-height: 520px;
  max-height: 656px;
}

/* ---- Left blue panel ---- */
.hero-left {
  position: relative;
  flex: 1 1 50%;
  background: var(--of-blue);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 40px;
}

.deco {
  position: absolute;
  opacity: .13;
  pointer-events: none;
  user-select: none;
}
.deco-1 {
  width: 130%;
  left: -18%;
  bottom: -46%;
  transform: rotate(-8deg);
}
.deco-2 {
  width: 70%;
  left: -26%;
  bottom: -30%;
}

.hero-left-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  margin-bottom: 18px;
}

.hero-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 0 26px;
}

.hero-left h1 {
  color: #fff;
  font-size: 40px;
  line-height: 1.22;
  font-weight: 400;
  margin: 0;
  letter-spacing: -.3px;
}

/* ---- Right white panel ---- */
.hero-right {
  flex: 1 1 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 40px;
}

.login-col {
  width: 100%;
  max-width: 400px;
  margin-bottom: 18px;
}

.login-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 10px;
}

#emailInput {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  background: #fff;
}
#emailInput::placeholder { color: #9aa0a6; }
#emailInput:focus { border-color: var(--of-blue); }

.btn-next {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border: none;
  border-radius: 24px;
  background: var(--disabled-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  cursor: not-allowed;
  font-family: inherit;
  transition: background .15s ease;
}
.btn-next.enabled {
  background: var(--of-blue);
  cursor: pointer;
}
.btn-next.enabled:hover { background: var(--of-blue-hover); }

.legal {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 14px 0 0;
}

.signup-link {
  text-align: center;
  font-size: 14px;
  margin: 22px 0 24px;
}

/* ---- Social buttons ---- */
.btn-social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-bottom: 14px;
  border: none;
  border-radius: 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
}
.btn-x { background: var(--of-blue); }
.btn-x:hover { background: var(--of-blue-hover); }
.btn-google { background: var(--google-blue); }
.btn-google:hover { background: var(--google-blue-hover); }

.social-ico {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ico-x { color: #fff; }
.ico-g { background: #fff; }

.form-msg {
  font-size: 13px;
  min-height: 18px;
  margin: 6px 0 0;
  text-align: center;
  color: var(--of-blue);
}

/* ================= FEATURED POSTS ================= */
.featured {
  background: var(--page-bg);
  padding: 46px 20px 70px;
}
.featured-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.featured-title {
  font-size: 34px;
  font-weight: 400;
  color: var(--text-mid);
  margin: 0 0 28px;
}

.post {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  margin-bottom: 26px;
}
.post:last-child { margin-bottom: 0; }

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 10px;
}
.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: 0 0 48px;
}
.post-id { flex: 1; min-width: 0; }
.post-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.verified { flex: 0 0 15px; }
.post-handle {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}
.post-time {
  font-size: 13px;
  color: var(--text-soft);
  white-space: nowrap;
}

.post-body {
  padding: 4px 18px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.post-media {
  display: block;
  width: 100%;
  height: auto;
}

.post-media-empty {
  position: relative;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(
    45deg,
    #e9ecef, #e9ecef 12px,
    #eff2f4 12px, #eff2f4 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #98a0a8;
}
.play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--of-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--page-bg);
  border-top: 1px solid #e4e7ea;
  padding: 22px 20px 30px;
  text-align: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 10px;
}
.site-footer nav a { font-size: 13px; }
.site-footer p {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
}

/* ================= HELP FAB ================= */
.help-fab {
  position: fixed;
  right: 0;
  bottom: 76px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 6px 0 0 6px;
  background: var(--of-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
}
.help-fab:hover { background: var(--of-blue-hover); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero-left { padding: 54px 28px 64px; }
  .hero-left-inner { margin-bottom: 0; max-width: 100%; }
  .hero-left h1 { font-size: 30px; }
  .hero-logo { max-width: 240px; }
  .hero-right { padding: 40px 28px 56px; }
  .login-col { margin-bottom: 0; }
  .featured-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero-left h1 { font-size: 26px; }
  .hero-logo { max-width: 200px; }
  .post-body, .post-head { padding-left: 14px; padding-right: 14px; }
}
