/* TrayQuest Landing Page Stylesheet */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #f5f3ff;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-pink: #ec4899;
  --bg: #faf7f2;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.06);
  --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.12);
  --shadow-clay: 0 4px 0 #6d28d9;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 0 var(--primary-dark);
  transition: transform 0.1s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #ddd6fe;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: #111827;
}

.hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111827;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #1f2937;
}

.store-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.store-btn-text {
  text-align: left;
  line-height: 1.2;
}

.store-btn-text small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  font-weight: 600;
}

.store-btn-text span {
  font-size: 1.05rem;
  font-weight: 800;
}

.badge-tag {
  background: var(--accent-gold);
  color: #78350f;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* App Hero Mockup */
.hero-preview {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 32px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.hero-preview-inner {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mascot-cluster {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
}

.mascot-avatar {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 3px solid #ffffff;
  transition: transform 0.2s ease;
}

.mascot-avatar.main {
  width: 120px;
  height: 120px;
  transform: translateY(-8px);
}

.mascot-avatar:hover {
  transform: scale(1.08);
}

/* Feature Grid */
.features-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* About Us / Philosophy */
.about-section {
  padding: 72px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--primary-light);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}

.about-card h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.about-card p {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
}

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

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Legal Sections (EULA & Privacy Policy) */
.legal-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.legal-card {
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 32px;
}

.legal-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #111827;
}

.legal-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  max-height: 320px;
  overflow-y: auto;
}

.legal-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  margin: 14px 0 6px;
}

.legal-box p {
  margin-bottom: 10px;
}

.indemnity-callout {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  font-weight: 700;
  color: #991b1b;
}

/* Footer */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1f2937;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
  .mascot-avatar {
    width: 64px;
    height: 64px;
  }
  .mascot-avatar.main {
    width: 90px;
    height: 90px;
  }
}
