/* ==========================================================================
   TRIBO IA - HIGH CONVERSION MARKETING & FLUID DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Brand Color Tokens */
  --brand-blue: #2F6FEA;
  --brand-blue-bright: #0265FD;
  --brand-blue-soft: #6EA8FF;
  
  --ai-purple: #8A5CF6;
  --ai-purple-bright: #9D4EDD;
  --ai-purple-soft: #C77DFF;
  
  --community-cyan: #22D3EE;
  --community-cyan-bright: #00F0FF;
  
  --spice-pink: #FF2E93;
  --gold-coin: #FFC72C;

  /* Theme Backgrounds */
  --bg-deep: #080C14;
  --bg-base: #0C121E;
  --bg-surface: #131B2A;
  --bg-glass-card: rgba(19, 27, 42, 0.7);

  /* Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-tertiary: rgba(255, 255, 255, 0.55);

  /* UI Borders & Shadows */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(34, 211, 238, 0.4);
  --shadow-glow-blue: 0 0 50px rgba(47, 111, 234, 0.3);
  --shadow-glow-purple: 0 0 50px rgba(138, 92, 246, 0.35);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Fluid Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fluid: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 15% 10%, rgba(47, 111, 234, 0.18) 0%, transparent 40%),
              radial-gradient(circle at 85% 55%, rgba(138, 92, 246, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 50% 88%, rgba(34, 211, 238, 0.12) 0%, transparent 40%),
              var(--bg-deep);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #00F0FF 0%, var(--brand-blue-soft) 40%, var(--ai-purple-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-spice {
  background: linear-gradient(135deg, #FF6B9B 0%, var(--spice-pink) 50%, var(--ai-purple-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Clean PNG Image Handling (No ugly square boxes or forced borders!) */
.logo-icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.5));
  transition: var(--transition-fast);
}

.logo-icon-img:hover {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.8));
}

.coin-mini-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 15px rgba(255, 199, 44, 0.6));
  animation: pulse-coin 2.5s ease-in-out infinite;
}

@keyframes pulse-coin {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(6deg); filter: drop-shadow(0 0 22px rgba(255, 199, 44, 0.9)); }
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fluid);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue-bright) 0%, var(--brand-blue) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 25px rgba(47, 111, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(2, 101, 253, 0.6);
}

.btn-glow {
  background: linear-gradient(135deg, #00F0FF 0%, var(--brand-blue-bright) 50%, var(--ai-purple-bright) 100%);
  color: #FFFFFF;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.btn-glow:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 45px rgba(138, 92, 246, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--community-cyan);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* HERO SECTION (Marketing Hook) */
.hero {
  padding: 160px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--community-cyan-bright);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--community-cyan-bright);
  box-shadow: 0 0 12px var(--community-cyan-bright);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 18px var(--community-cyan-bright); }
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.2rem;
  max-width: 600px;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.badge-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Fluid 3D Mockup Container */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.visual-3d-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), var(--shadow-glow-purple);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-fluid);
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
}

.visual-3d-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 240, 255, 0.4);
}

.visual-3d-img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  display: block;
}

/* MARKETING STORY SECTIONS (FLUID LAYOUT) */
.story-section {
  padding: 100px 0;
  position: relative;
}

.story-section-alt {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0) 0%, rgba(12, 18, 30, 0.85) 50%, rgba(8, 12, 20, 0) 100%);
}

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

.story-grid-reverse {
  grid-template-columns: 1fr 1fr;
}

.story-grid-reverse .story-content {
  order: 2;
}

.story-grid-reverse .story-visual-wrap {
  order: 1;
}

.story-tag {
  color: var(--community-cyan-bright);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.story-title {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}

.story-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.story-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.story-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  color: var(--community-cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.story-card-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: var(--transition-fluid);
}

.story-card-frame:hover {
  transform: translateY(-8px);
  border-color: var(--community-cyan-bright);
  box-shadow: 0 30px 70px rgba(0, 240, 255, 0.3);
}

.story-card-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

/* INTEGRATED TRICOCOIN REWARDS CARD */
.rewards-banner-card {
  background: linear-gradient(135deg, rgba(255, 199, 44, 0.1) 0%, rgba(19, 27, 42, 0.9) 100%);
  border: 1px solid rgba(255, 199, 44, 0.3);
  border-radius: 24px;
  padding: 2.2rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(255, 199, 44, 0.12);
}

.rewards-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.rewards-title {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

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

/* TESTIMONIALS & SOCIAL PROOF */
.social-proof-section {
  padding: 90px 0;
}

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

.testimonial-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(14px);
  transition: var(--transition-fluid);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--community-cyan);
}

.stars-row {
  color: #FFC72C;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-avatar-dummy {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--ai-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.user-info-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.user-info-handle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* HIGH CONVERSION CTA BANNER */
.cta-banner-section {
  padding: 100px 0;
}

.cta-conversion-box {
  background: linear-gradient(135deg, rgba(2, 101, 253, 0.2) 0%, rgba(138, 92, 246, 0.25) 100%), var(--bg-surface);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 36px;
  padding: 4.5rem 3rem;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), var(--shadow-glow-purple);
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #FFFFFF;
  transition: var(--transition-fluid);
  backdrop-filter: blur(10px);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--community-cyan-bright);
  transform: translateY(-3px) scale(1.02);
}

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

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-btn-main {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* ==========================================================================
   CONTACT PAGE & FOOTER
   ========================================================================== */

.page-header {
  padding: 160px 0 60px;
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  padding-bottom: 100px;
}

.contact-info-card, .contact-form-container {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(16px);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border-radius: 12px;
  background: rgba(12, 18, 30, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--community-cyan-bright);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  fill: var(--community-cyan-bright);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.8rem 1.4rem;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  background: var(--bg-surface);
  border: 1px solid var(--community-cyan-bright);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  background: rgba(8, 12, 20, 0.95);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--community-cyan-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #20D68F;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #20D68F;
  box-shadow: 0 0 8px #20D68F;
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
  .hero-grid, .story-grid, .story-grid-reverse, .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-grid-reverse .story-content {
    order: 1;
  }

  .story-grid-reverse .story-visual-wrap {
    order: 2;
  }

  .hero-title {
    font-size: 3rem;
  }

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

  .rewards-banner-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links, .nav-actions {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .story-title {
    font-size: 2.1rem;
  }

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

  .cta-title {
    font-size: 2.2rem;
  }

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