/* Roasted Beans landing — layout; tokens from shared design-tokens.css */

@import "design-tokens.css";

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(180deg, #faf8f6 0%, var(--gray-100) 100%);
}

/* Shared content width — header, main, footer */
.container,
.header-inner {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.container {
  padding-top: 0;
  padding-bottom: 0;
}

.header-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--color-cream) 0%, rgba(255, 248, 240, 0.98) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(74, 64, 99, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-brand-purple);
  letter-spacing: -0.03em;
}

.pill {
  display: none; /* hidden on mobile */
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
}

@media (min-width: 640px) {
  .pill {
    display: inline-block;
  }
}

.btn-header {
  box-shadow: 0 4px 14px rgba(255, 140, 66, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  background: var(--color-brand-orange);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(255, 140, 66, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.btn:focus {
  outline: 2px solid var(--color-brand-purple);
  outline-offset: 2px;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-cream);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  min-height: min(85vh, 640px);
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #352d4a 0%, var(--color-brand-purple) 35%, #2a2238 100%);
  color: var(--color-cream);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
}

.hero-blob-1 {
  width: 22rem;
  height: 22rem;
  background: var(--color-brand-orange);
  top: -10rem;
  right: -8rem;
  animation: blobFloat 14s ease-in-out infinite;
}

.hero-blob-2 {
  width: 18rem;
  height: 18rem;
  background: var(--color-brand-yellow);
  bottom: -6rem;
  left: -6rem;
  animation: blobFloat 16s ease-in-out infinite reverse;
  animation-delay: -3s;
}

.hero-blob-3 {
  width: 14rem;
  height: 14rem;
  background: var(--color-cream);
  top: 40%;
  left: 15%;
  opacity: 0.1;
  animation: blobFloat 12s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.05); }
  66% { transform: translate(-12px, 14px) scale(0.98); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 900px) {
  .hero-text {
    text-align: left;
  }
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-cream);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.05s forwards;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.15s forwards;
}

.hero-title br {
  display: block;
}

.hero-tagline {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 28rem;
  line-height: 1.65;
  color: rgba(255, 248, 240, 0.9);
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.25s forwards;
}

@media (min-width: 900px) {
  .hero-tagline {
    margin-left: 0;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.35s forwards;
}

@media (min-width: 900px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.hero-cta .btn-lg {
  min-width: 10rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.4s forwards;
}

/* Hero screenshot (already includes phone mockup) */
.hero-screenshot {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35);
}

/* Sections */
.section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-brand-purple);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 42rem;
}

.section-lead strong {
  color: var(--gray-800);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  padding: 1.75rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: inherit;
}

.card-green .card-icon { background: var(--color-brand-green); color: #134e48; }
.card-orange .card-icon { background: var(--color-brand-orange); color: white; }
.card-purple .card-icon { background: var(--color-brand-purple); color: white; }
.card-yellow .card-icon { background: var(--color-brand-yellow); color: #713f12; }

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-800);
}

.card-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Sections with centered text — What, Invite */
.section-what,
.section-invite {
  text-align: center;
}

.section-what .section-lead,
.section-invite .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Platforms + Who — side by side */
.section-platforms-who {
  padding: 5rem 0;
}

.platforms-who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .platforms-who-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.section-platforms .section-title,
.section-who .section-title {
  margin-top: 0;
}

.section-platforms .section-lead,
.section-who .section-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

.section-platforms,
.section-who {
  text-align: center;
}

/* Platforms section — smaller image to avoid quality issues */
.section-platforms .platform-visual {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.section-platforms .platform-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
}

/* Why use it — centered title only */
.section-why .section-title {
  text-align: center;
}

.invite-cta {
  margin-top: 2rem;
}

.invite-cta .btn-lg {
  min-width: 12rem;
}

/* Invite section — dark CTA */
.section-invite {
  position: relative;
  padding: 5rem 0 6rem;
  background: linear-gradient(160deg, #2a2238 0%, var(--color-brand-purple) 40%, #352d4a 100%);
  color: var(--color-cream);
  text-align: center;
  overflow: hidden;
}

.invite-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.invite-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
}

.invite-blob-1 {
  width: 20rem;
  height: 20rem;
  background: var(--color-brand-orange);
  top: -6rem;
  right: -6rem;
  animation: blobFloat 14s ease-in-out infinite;
}

.invite-blob-2 {
  width: 14rem;
  height: 14rem;
  background: var(--color-brand-yellow);
  bottom: -4rem;
  left: -4rem;
  animation: blobFloat 12s ease-in-out infinite reverse;
  animation-delay: -4s;
}

.invite-content {
  position: relative;
  z-index: 1;
}

.invite-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-cream);
}

.invite-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 248, 240, 0.9);
}

.btn-invite {
  box-shadow: 0 6px 24px rgba(255, 140, 66, 0.45);
}

.btn-invite:hover {
  box-shadow: 0 8px 32px rgba(255, 140, 66, 0.5);
}

/* Screenshots section */
.section-screenshots {
  background: transparent;
  padding: 5rem 0;
}

.section-screenshots .section-title,
.section-screenshots .section-lead {
  text-align: center;
}

.section-screenshots .section-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .screenshots-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 0;
  background: transparent;
  border: none;
}

.screenshot-card .screenshot-img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 9 / 19;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.screenshot-card .card {
  width: 100%;
  margin: 0;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  background: white;
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-contact {
  margin: 0;
  font-size: 0.875rem;
}

.footer-contact a {
  color: var(--color-brand-purple);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact a:focus {
  outline: 2px solid var(--color-brand-purple);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fixed feedback button (bottom-right) */
.feedback-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-brand-purple);
  background: var(--color-cream);
  border: 2px solid rgba(74, 64, 99, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.feedback-trigger:hover {
  background: #fff;
  border-color: var(--color-brand-purple);
  box-shadow: var(--shadow-purple);
}

.feedback-trigger:focus {
  outline: 2px solid var(--color-brand-purple);
  outline-offset: 2px;
}
