/* ============================================================
   HAMURA — public landing page only (index.html). Scoped with an
   "lp-" prefix so nothing here ever collides with the dashboard's
   components.css classes.
   ============================================================ */

body { background: var(--surface); overflow-x: hidden; }

@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lp-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -4%) scale(1.08); }
}
@keyframes lp-float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero-inner, .lp-hero-v2-inner, .lp-feature-card, .lp-step, .lp-role-card, .lp-hero::before, .lp-float-card {
    animation: none !important;
  }
}

/* ---------- Top announcement banner ---------- */
.lp-topbanner {
  background: linear-gradient(90deg, var(--primary), var(--accent-pink));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px 40px;
  position: relative;
}
.lp-topbanner-close {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lp-topbanner-close:hover { opacity: 1; }

/* ---------- Nav ---------- */
.lp-nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
}
.lp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}
.lp-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lp-nav-links a:not(.btn) { color: var(--text); font-weight: 600; }
.lp-nav-links a:not(.btn):hover { color: var(--primary); text-decoration: none; }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--surface) 100%);
  padding: 80px 24px 64px;
  text-align: center;
}
.lp-hero::before,
.lp-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  animation: lp-glow-drift 12s ease-in-out infinite;
}
.lp-hero::before { background: var(--primary); top: -180px; left: -120px; }
.lp-hero::after { background: var(--accent-pink); top: -140px; right: -140px; animation-delay: -6s; }
.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  animation: lp-fade-up 0.7s ease both;
}
.lp-hero h1 {
  font-size: 38px;
  line-height: 1.35;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--text) 30%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero-sub { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; }
.lp-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp-hero-actions .btn { padding: 13px 28px; font-size: 15px; }
.lp-hero-actions .btn-primary {
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.lp-hero-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45); }

/* ---------- Hero v2 (with floating role cards) ---------- */
.lp-hero-v2 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--surface) 75%);
  padding: 64px 24px 48px;
  text-align: center;
  min-height: 600px;
}
.lp-hero-v2-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  animation: lp-fade-up 0.7s ease both;
}
.lp-hero-wordmark {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 14px;
}
.lp-hero-v2-headline { font-size: 42px; line-height: 1.35; margin-bottom: 16px; }
.lp-gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero-v2 .lp-hero-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.lp-badges-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.lp-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.lp-float-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lp-float-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-float-lines line { stroke: var(--border-strong); stroke-width: 1.5; opacity: 0.7; }

.lp-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  width: 190px;
  text-align: right;
  animation: lp-float-bob 5s ease-in-out infinite;
}
.lp-float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.lp-float-title { font-weight: 700; font-size: 14px; }
.lp-float-sub { font-size: 12px; color: var(--text-muted); }

.lp-float-tl { top: 14%; left: 6%; animation-delay: 0s; }
.lp-float-tr { top: 14%; right: 6%; animation-delay: 1.2s; }
.lp-float-bl { bottom: 10%; left: 8%; animation-delay: 2.4s; }
.lp-float-br { bottom: 10%; right: 8%; animation-delay: 0.6s; }

@media (max-width: 1000px) {
  /* Floating cards + connecting lines get too cramped below this width —
     the headline/badges/CTAs alone still make a complete hero. */
  .lp-float-cards { display: none; }
  .lp-hero-v2 { min-height: auto; padding: 48px 20px 36px; }
  .lp-hero-v2-headline { font-size: 30px; }
}

/* ---------- Generic sections ---------- */
.lp-section { max-width: 1200px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.lp-section-alt { background: var(--bg); max-width: none; }
.lp-section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.lp-section-title { font-size: 26px; margin-bottom: 8px; }
.lp-section-sub { color: var(--text-muted); margin-bottom: 40px; }

/* ---------- Feature cards ---------- */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: right;
}
.lp-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  animation: lp-fade-up 0.6s ease both;
}
.lp-feature-card:nth-child(1) { animation-delay: 0.05s; }
.lp-feature-card:nth-child(2) { animation-delay: 0.12s; }
.lp-feature-card:nth-child(3) { animation-delay: 0.19s; }
.lp-feature-card:nth-child(4) { animation-delay: 0.26s; }
.lp-feature-card:nth-child(5) { animation-delay: 0.33s; }
.lp-feature-card:nth-child(6) { animation-delay: 0.4s; }
.lp-feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.lp-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.lp-feature-card:nth-child(6n+1) .lp-feature-icon { background: var(--primary-light); }
.lp-feature-card:nth-child(6n+2) .lp-feature-icon { background: var(--success-light); }
.lp-feature-card:nth-child(6n+3) .lp-feature-icon { background: var(--info-light); }
.lp-feature-card:nth-child(6n+4) .lp-feature-icon { background: var(--warning-light); }
.lp-feature-card:nth-child(6n+5) .lp-feature-icon { background: var(--danger-light); }
.lp-feature-card:nth-child(6n+6) .lp-feature-icon { background: var(--primary-light); }
.lp-feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.lp-feature-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Steps ---------- */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 24px;
}
.lp-step { text-align: center; animation: lp-fade-up 0.6s ease both; }
.lp-step:nth-child(1) { animation-delay: 0.05s; }
.lp-step:nth-child(2) { animation-delay: 0.2s; }
.lp-step:nth-child(3) { animation-delay: 0.35s; }
.lp-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
}
.lp-step:nth-child(1) .lp-step-num { background: var(--primary); }
.lp-step:nth-child(2) .lp-step-num { background: var(--info); }
.lp-step:nth-child(3) .lp-step-num { background: var(--success); }
.lp-step h3 { font-size: 16px; margin-bottom: 6px; }
.lp-step p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Role cards ---------- */
.lp-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: right;
}
.lp-role-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 22px;
  animation: lp-fade-up 0.6s ease both;
  transition: transform var(--transition-fast);
}
.lp-role-card:hover { transform: translateY(-3px); }
.lp-role-card:nth-child(1) { animation-delay: 0.05s; border-top-color: var(--primary); }
.lp-role-card:nth-child(2) { animation-delay: 0.15s; border-top-color: var(--info); }
.lp-role-card:nth-child(3) { animation-delay: 0.25s; border-top-color: var(--success); }
.lp-role-card:nth-child(4) { animation-delay: 0.35s; border-top-color: var(--warning); }
.lp-role-card h3 { font-size: 15px; margin-bottom: 8px; color: var(--primary-hover); }
.lp-role-card p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ---------- Final CTA ---------- */
.lp-cta {
  background: linear-gradient(120deg, var(--sidebar-bg) 0%, var(--primary-hover) 60%, var(--accent-pink) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.lp-cta h2 { color: #fff; margin-bottom: 8px; }
.lp-cta p { color: var(--text-on-dark); margin-bottom: 28px; }
.lp-cta .btn-primary { padding: 13px 28px; font-size: 15px; }

/* ---------- Footer ---------- */
.lp-footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { color: var(--text-muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lp-hero h1 { font-size: 28px; }
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-roles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-roles-grid { grid-template-columns: 1fr; }
  .lp-nav-links { gap: 10px; }
  .lp-hero { padding: 56px 20px 48px; }
}
