/**
 * Homepage 2026 — Page-Specific Styles
 * Loaded only on: / and /en/
 */

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background: var(--bg-subtle);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, var(--purple-light) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -30px) rotate(5deg); }
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #555 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.hero-description {
  font-size: 1.5rem;
  color: var(--secondary);
  max-width: 700px;
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.5;
}

.hero p {
  font-size: 1.1rem;
  color: var(--secondary);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-logo {
  margin-bottom: 1.5rem;
}

.hero-logo svg {
  width: 64px;
  height: 64px;
  animation: float 3s ease-in-out infinite;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* Hero chat input */
.chat-input-wrapper {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.chat-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.chat-input:focus {
  outline: none;
  border-color: var(--purple);
}

.chat-submit {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--secondary);
  transition: color 0.3s;
}

.chat-submit:hover {
  color: var(--primary);
}

/* === AGENT PREVIEW === */
.agent-preview {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.agent-preview-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.agent-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple) 0%, #7a9ae8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.agent-preview-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.agent-preview-header p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.agent-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.message.user {
  flex-direction: row-reverse;
}

.message-bubble {
  background: var(--bg-subtle);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  max-width: 80%;
  font-size: 0.95rem;
}

.message.user .message-bubble {
  background: var(--primary);
  color: white;
}

.typing-indicator {
  display: flex;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--muted);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

/* === DUAL PATH SECTION === */
.dual-path {
  padding: 6rem 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.path-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--purple);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.path-card:hover::before {
  transform: scaleX(1);
}

.path-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.path-icon {
  width: 64px;
  height: 64px;
  background: var(--purple-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.path-card:hover .path-icon {
  background: var(--purple);
  color: white;
}

.path-icon svg {
  stroke: var(--primary);
  transition: stroke 0.3s;
}

.path-card:hover .path-icon svg {
  stroke: white;
}

.path-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.path-card p {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.path-features {
  list-style: none;
  margin-bottom: 2rem;
}

.path-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
  font-size: 0.95rem;
}

.path-features li::before {
  content: '→';
  color: var(--purple);
  font-weight: 600;
}

.path-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s;
}

.path-card:hover .path-cta {
  gap: 1rem;
  color: var(--purple);
}

/* === QUOTE INTERLUDE === */
.quote-interlude {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-white);
}

.interlude-link {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s;
}

.interlude-link:hover {
  color: var(--purple);
}

.interlude-text {
  font-size: 1.75rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* === SELFWARE SECTION === */
.selfware {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.selfware-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.selfware-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.selfware-content > p {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.selfware-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-number {
  width: 32px;
  height: 32px;
  background: var(--purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-text p {
  color: var(--secondary);
  font-size: 0.95rem;
}

.selfware-visual {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-subtle);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.flow-item.agent {
  background: var(--purple-light);
  border-color: var(--purple);
}

.flow-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 1.5rem;
}

/* === TRUST === */
.trust {
  padding: 5rem 0;
  background: var(--bg-white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item h4 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.trust-item p {
  color: var(--secondary);
  font-size: 0.95rem;
}

/* === BLOG PREVIEW === */
.blog-preview {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.blog-image {
  height: 180px;
  background: var(--purple-light);
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-tag {
  color: var(--primary);
}

.blog-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--secondary);
}

/* === WAITLIST === */
.waitlist {
  padding: 6rem 0;
  background: var(--primary);
  color: white;
  text-align: center;
}

.waitlist h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.waitlist > p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.waitlist-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px; /* Prevents iOS auto-zoom */
  font-family: inherit;
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.waitlist-form .btn-primary {
  background: white;
  color: var(--primary);
}

.waitlist-form .btn-primary:hover {
  background: var(--purple);
  color: white;
}

.waitlist-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* === RESPONSIVE — HOMEPAGE === */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p.hero-description {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-logo svg {
    width: 48px;
    height: 48px;
  }

  /* Sections: tighter padding */
  .dual-path,
  .selfware,
  .blog-preview,
  .trust {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h3 {
    font-size: 1.75rem;
  }

  .selfware-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .selfware-content h2 {
    font-size: 1.75rem;
  }

  .selfware-content > p {
    font-size: 1rem;
  }

  /* Quote interlude: tighter on mobile */
  .quote-interlude {
    padding: 2.5rem 0;
  }

  .interlude-text {
    font-size: 1.4rem;
  }

  /* Path cards: compact on mobile */
  .path-card {
    padding: 1.5rem;
  }

  .path-card h3 {
    font-size: 1.35rem;
  }

  .path-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .path-features {
    margin-bottom: 1.5rem;
  }

  .path-features li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .path-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 1rem;
  }

  /* Trust grid → horizontal scroll carousel */
  .trust-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
  }

  .trust-grid::-webkit-scrollbar {
    display: none;
  }

  .trust-item {
    flex: 0 0 45%;
    scroll-snap-align: start;
    background: var(--bg-subtle);
    border-radius: 12px;
    padding: 1.5rem 1rem;
  }

  .trust-item h4 {
    font-size: 2rem;
  }

  .trust-item p {
    font-size: 0.85rem;
  }

  /* Blog preview → horizontal scroll carousel */
  .blog-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
  }

  .blog-grid::-webkit-scrollbar {
    display: none;
  }

  .blog-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }

  .blog-image {
    height: 120px;
  }

  .blog-content {
    padding: 1rem;
  }

  .blog-card h4 {
    font-size: 1rem;
  }

  /* Waitlist */
  .waitlist {
    padding: 3.5rem 0;
  }

  .waitlist h2 {
    font-size: 2rem;
  }

  .waitlist-form {
    flex-direction: column;
  }

  /* Flow diagram */
  .selfware-visual {
    padding: 1.5rem;
  }

  .flow-item {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 0 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  .hero p.hero-description {
    font-size: 1rem;
  }

  .section-header h3 {
    font-size: 1.4rem;
  }

  .path-card {
    padding: 1.25rem;
  }

  .interlude-text {
    font-size: 1.25rem;
  }

  /* Trust: narrower items in carousel */
  .trust-item {
    flex: 0 0 55%;
    padding: 1.25rem 0.75rem;
  }

  .trust-item h4 {
    font-size: 1.75rem;
  }

  /* Blog: near full-width cards */
  .blog-card {
    flex: 0 0 85%;
  }

  .waitlist h2 {
    font-size: 1.6rem;
  }

  .selfware-content h2 {
    font-size: 1.5rem;
  }
}
