/* ── Homepage redesign ─────────────────────────────────────────────────── */

/* Background */
.home-body {
  background: #0d1f2d;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,153,0,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,102,204,0.10) 0%, transparent 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle dot grid */
.home-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.home-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
}

.home-nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.home-nav-accent { color: #FF9900; }

.home-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.18s;
}

.home-nav-link:hover { color: #FF9900; }

/* ── Main / Hero ───────────────────────────────────────────────────────── */
.home-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 56px;
}

.home-hero {
  width: 100%;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── Badge ─────────────────────────────────────────────────────────────── */
.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,153,0,0.1);
  border: 1px solid rgba(255,153,0,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #FF9900;
  letter-spacing: 0.3px;
}

.home-badge-dot {
  width: 6px;
  height: 6px;
  background: #FF9900;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Title ─────────────────────────────────────────────────────────────── */
.home-title {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0;
}

.home-title-highlight {
  background: linear-gradient(90deg, #FF9900 0%, #ffb84d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

/* ── Search card ───────────────────────────────────────────────────────── */
.search-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 24px 20px;
  box-shadow:
    0 0 0 1px rgba(255,153,0,0.15),
    0 24px 64px rgba(0,0,0,0.4),
    0 4px 16px rgba(0,0,0,0.2);
}

/* Format guide */
.format-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f2f5;
}

.fg-sep {
  color: #d0d5dd;
  font-size: 13px;
}

.fg-part {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid;
}

.fg-role   { color: #0066CC; background: #eef4ff; border-color: #b8d4f8; }
.fg-goal   { color: #00897B; background: #e8f5f3; border-color: #b2dfdb; }
.fg-reason { color: #7C3AED; background: #f3f0ff; border-color: #d8b4fe; }

.fg-part em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.75;
}

/* Textarea */
.search-textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #16191f;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  overflow: hidden;       /* never shows scrollbar */
  min-height: 52px;
  display: block;
  padding: 0;
  margin-bottom: 16px;
}

.search-textarea::placeholder {
  color: #b0b8c1;
}

/* Footer row inside card */
.search-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-card-tip {
  font-size: 12px;
  color: #b0b8c1;
}

.search-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF9900;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
  box-shadow: 0 4px 12px rgba(255,153,0,0.35);
}

.search-card-btn:hover {
  background: #e08600;
  box-shadow: 0 6px 20px rgba(255,153,0,0.45);
}

.search-card-btn:active { transform: scale(0.97); }

/* ── Examples ──────────────────────────────────────────────────────────── */
.home-examples {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.home-examples-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.3);
}

.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.home-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 13px;
  font-family: inherit;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.18s;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.home-chip:hover {
  background: rgba(255,153,0,0.12);
  border-color: rgba(255,153,0,0.35);
  color: #FF9900;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.home-footer {
  position: relative;
  z-index: 1;
  padding: 20px 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.home-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.home-footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.18s;
}

.home-footer a:hover { color: #FF9900; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .home-nav   { padding: 18px 20px; }
  .home-title { font-size: 32px; letter-spacing: -0.8px; }
  .home-subtitle { font-size: 14px; }
  .search-card { padding: 20px 18px 16px; }
  .format-guide { gap: 4px; }
  .home-chip { max-width: 100%; white-space: normal; }
  .search-card-tip { display: none; }
}
