/* ============================================
   HOME — Scoutzera Landing Page (dark theme)
   ============================================ */

html, body { margin: 0; background: #0a0a0f; }

@keyframes h-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes h-float-reverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(20px) rotate(-2deg); }
}

@keyframes h-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes h-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Root Wrapper --- */
.home {
  --h-bg-deep: #0a0a0f;
  --h-bg: #12121a;
  --h-bg-surface: #1a1a2e;
  --h-bg-elevated: #1e1e32;
  --h-bg-glass: rgba(255, 255, 255, 0.04);
  --h-bg-glass-strong: rgba(255, 255, 255, 0.08);
  --h-border: rgba(255, 255, 255, 0.06);
  --h-border-strong: rgba(255, 255, 255, 0.12);
  --h-text: #9ca3af;
  --h-text-heading: #f3f4f6;
  --h-text-muted: #6b7280;
  --h-accent-purple: #b774fa;
  --h-accent-blue: #60a5fa;
  --h-accent-cyan: #22d3ee;
  --h-accent-pink: #f472b6;
  --h-accent-green: #34d399;
  --h-gradient-primary: linear-gradient(135deg, #b774fa, #aa33ff);
  --h-gradient-secondary: linear-gradient(135deg, #22d3ee, #f472b6);
  --h-gradient-success: linear-gradient(135deg, #34d399, #60a5fa);

  background: var(--h-bg-deep);
  color: var(--h-text);
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow-x: hidden;
  position: relative;
  font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
  text-align: left;
  line-height: 1.6;

  & *, & *::before, & *::after {
    box-sizing: border-box;
  }

  & h1, & h2, & h3, & h4, & h5, & h6 {
    color: var(--h-text-heading);
    font-weight: 600;
    line-height: 1.2;
  }

  & a { color: inherit; text-decoration: none; }
  & button { cursor: pointer; font-family: inherit; }
  & textarea { font-family: inherit; }
}

/* --- Background Orbs --- */
.h-bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.h-bg-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.14), transparent 70%);
  top: -120px;
  right: -120px;
  animation: h-float 8s ease-in-out infinite;
}
.h-bg-orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.11), transparent 70%);
  top: 35%;
  left: -160px;
  animation: h-float-reverse 10s ease-in-out infinite;
}
.h-bg-orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.09), transparent 70%);
  bottom: 8%;
  right: -120px;
  animation: h-float 12s ease-in-out infinite;
}

/* --- Layout Helpers --- */
.h-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Navbar --- */
.h-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--h-border);

  & .h-navbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  & .h-logo {
    font-size: 20px;
    font-weight: 700;
    background: var(--h-gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
  }

  & .h-nav-links {
    display: flex;
    gap: 8px;

    & a {
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 14px;
      color: var(--h-text);
      transition: all 0.2s;

      &:hover {
        color: var(--h-text-heading);
        background: var(--h-bg-glass-strong);
      }
    }
  }

  & .h-nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;

    & .h-nav-login {
      padding: 8px 16px;
      border-radius: 8px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--h-text);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;

      &:hover {
        color: var(--h-text-heading);
        background: var(--h-bg-glass-strong);
      }
    }

    & .h-nav-signup {
      padding: 8px 18px;
      border-radius: 8px;
      border: none;
      background: var(--h-gradient-primary);
      color: white;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;

      &:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(192, 132, 252, 0.4);
      }
    }
  }
}

/* --- Hero --- */
.h-hero {
  padding: 96px 0 40px;
  text-align: center;
  animation: h-fade-in-up 0.7s ease both;

  & .h-hero-tag {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--h-accent-purple);
    border: 1px solid rgba(192, 132, 252, 0.3);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
    background: rgba(192, 132, 252, 0.06);
  }

  & .h-hero-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--h-text-heading);

    @media (max-width: 768px) {
      font-size: 38px;
      letter-spacing: -1px;
    }
  }

  & .h-hero-subtitle {
    font-size: 19px;
    color: var(--h-text);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;

    @media (max-width: 768px) {
      font-size: 16px;
    }
  }
}

.h-gradient-text {
  background: var(--h-gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Idea Input Card --- */
.h-idea-wrap {
  padding: 24px 0 80px;
  animation: h-fade-in-up 0.8s ease 0.1s both;
}

.h-idea-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--h-bg-surface);
  border: 1px solid var(--h-border-strong);
  border-radius: 20px;
  padding: 8px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(183, 116, 250, 0.08);
  transition: border-color 0.25s, box-shadow 0.25s;

  &:focus-within {
    border-color: rgba(183, 116, 250, 0.5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(192, 132, 252, 0.15), 0 0 60px rgba(183, 116, 250, 0.18);
  }
}

.h-idea-inner {
  background: var(--h-bg);
  border-radius: 14px;
  padding: 20px 22px 16px;
}

.h-idea-textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: transparent;
  border: none;
  outline: none;
  color: var(--h-text-heading);
  font-size: 16px;
  line-height: 1.6;
  padding: 0;

  &::placeholder {
    color: var(--h-text-muted);
  }
}

.h-idea-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--h-border);
}

.h-idea-hint {
  font-size: 12px;
  color: var(--h-text-muted);
  letter-spacing: 0.2px;

  @media (max-width: 520px) {
    display: none;
  }
}

.h-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  background: var(--h-gradient-primary);
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  background-size: 200% 200%;

  &:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(192, 132, 252, 0.35);
    animation: h-gradient-shift 3s ease infinite;
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  & svg {
    transition: transform 0.25s;
  }

  &:hover:not(:disabled) svg {
    transform: translateX(3px);
  }
}

/* --- Features --- */
.h-features {
  padding: 40px 0 100px;
}

.h-features-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--h-accent-purple);
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.h-features-heading {
  font-size: 28px;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--h-text-heading);
}

.h-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.h-feature-card {
  background: var(--h-bg-surface);
  border: 1px solid var(--h-border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;

  &:hover {
    border-color: var(--h-border-strong);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  & .h-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
  }

  & .h-feature-icon-purple {
    background: rgba(192, 132, 252, 0.12);
    color: var(--h-accent-purple);
  }
  & .h-feature-icon-cyan {
    background: rgba(34, 211, 238, 0.12);
    color: var(--h-accent-cyan);
  }
  & .h-feature-icon-green {
    background: rgba(52, 211, 153, 0.12);
    color: var(--h-accent-green);
  }

  & .h-feature-title {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--h-text-heading);
  }

  & .h-feature-desc {
    font-size: 14px;
    color: var(--h-text-muted);
    line-height: 1.6;
  }
}

/* --- Shared Section Header --- */
.h-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--h-accent-purple);
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.h-section-heading {
  font-size: 28px;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--h-text-heading);

  @media (max-width: 768px) {
    font-size: 24px;
  }
}

/* --- How it works --- */
.h-how {
  padding: 40px 0 100px;
}

.h-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.h-how-card {
  background: var(--h-bg-surface);
  border: 1px solid var(--h-border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;

  &:hover {
    border-color: var(--h-border-strong);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  & .h-how-num {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--h-accent-purple);
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.25);
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 16px;
  }

  & .h-how-title {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--h-text-heading);
  }

  & .h-how-desc {
    font-size: 14px;
    color: var(--h-text-muted);
    line-height: 1.6;
  }
}

/* --- Sample output --- */
.h-sample {
  padding: 40px 0 100px;
}

.h-sample-subline {
  text-align: center;
  color: var(--h-text-muted);
  font-size: 14px;
  margin-top: -28px;
  margin-bottom: 36px;

  & em {
    color: var(--h-text);
    font-style: normal;
    background: var(--h-bg-glass);
    padding: 2px 8px;
    border-radius: 6px;
  }
}

.h-sample-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h-sample-row {
  display: flex;
  gap: 16px;
  background: var(--h-bg-surface);
  border: 1px solid var(--h-border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.25s ease;

  &:hover {
    border-color: var(--h-border-strong);
    transform: translateX(2px);
  }
}

.h-sample-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}
.h-sample-avatar-purple { background: linear-gradient(135deg, #b774fa, #8b5cf6); }
.h-sample-avatar-blue   { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.h-sample-avatar-cyan   { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.h-sample-avatar-green  { background: linear-gradient(135deg, #34d399, #10b981); }
.h-sample-avatar-pink   { background: linear-gradient(135deg, #f472b6, #ec4899); }

.h-sample-main {
  flex: 1;
  min-width: 0;
}

.h-sample-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.h-sample-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--h-text-heading);
}

.h-sample-tag {
  font-size: 13px;
  color: var(--h-text);
  margin-bottom: 4px;
}

.h-sample-why {
  font-size: 12.5px;
  color: var(--h-text-muted);
  font-style: italic;
}

.h-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
}
.h-badge-direct {
  background: rgba(192, 132, 252, 0.12);
  color: var(--h-accent-purple);
  border: 1px solid rgba(192, 132, 252, 0.3);
}
.h-badge-adjacent {
  background: rgba(34, 211, 238, 0.12);
  color: var(--h-accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.h-badge-incumbent {
  background: rgba(52, 211, 153, 0.12);
  color: var(--h-accent-green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* --- Testimonials --- */
.h-testimonials {
  padding: 40px 0 100px;
}

.h-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  @media (max-width: 900px) {
    grid-template-columns: 1fr;
  }
}

.h-testimonial-card {
  background: var(--h-bg-surface);
  border: 1px solid var(--h-border);
  border-radius: 16px;
  padding: 28px;
  margin: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;

  &:hover {
    border-color: var(--h-border-strong);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }
}

.h-testimonial-quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--h-text-heading);
  flex: 1;

  &::before {
    content: '"';
    font-size: 40px;
    line-height: 0.2;
    color: var(--h-accent-purple);
    vertical-align: -14px;
    margin-right: 4px;
  }
}

.h-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;

  & p {
    margin: 0;
  }
}

.h-testimonial-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
}
.h-testimonial-avatar-purple { background: var(--h-gradient-primary); }
.h-testimonial-avatar-cyan   { background: var(--h-gradient-secondary); }
.h-testimonial-avatar-green  { background: var(--h-gradient-success); }

.h-testimonial-name {
  font-size: 14px;
  color: var(--h-text-heading);
  font-weight: 600;
}

.h-testimonial-role {
  font-size: 12px;
  color: var(--h-text-muted);
  margin-top: 2px;
}

/* --- FAQ --- */
.h-faq {
  padding: 40px 0 100px;
}

.h-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h-faq-item {
  background: var(--h-bg-surface);
  border: 1px solid var(--h-border);
  border-radius: 14px;
  padding: 0;
  transition: border-color 0.25s;

  &[open] {
    border-color: rgba(192, 132, 252, 0.3);
  }

  & summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--h-text-heading);
    user-select: none;

    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      content: '+';
      flex-shrink: 0;
      width: 22px;
      height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: 300;
      color: var(--h-accent-purple);
      transition: transform 0.25s ease;
    }
  }

  &[open] summary::after {
    transform: rotate(45deg);
  }

  & p {
    padding: 0 22px 20px;
    color: var(--h-text);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;

    & a {
      color: var(--h-accent-purple);
      text-decoration: underline;
      text-underline-offset: 3px;

      &:hover {
        color: var(--h-accent-blue);
      }
    }
  }
}

/* --- Footer --- */
.h-footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--h-border);
  color: var(--h-text-muted);
  font-size: 13px;

  & a {
    color: var(--h-accent-purple);
    transition: color 0.2s;

    &:hover {
      color: var(--h-accent-blue);
    }
  }
}
