/* ===========================
   RLC App Solutions — Styles
   =========================== */

:root {
  --blue:      #1B3BA8;
  --blue-deep: #0D1F5C;
  --blue-mid:  #1a3494;
  --gold:      #C8A020;
  --gold-light:#F0C840;
  --white:     #FFFFFF;
  --off-white: #F7F8FC;
  --gray-100:  #F0F2F8;
  --gray-300:  #C4C9D8;
  --gray-600:  #5A617A;
  --gray-900:  #0F1224;
  --hailo:     #5B6EE8;
  --hailo-sec: #FF9B4E;
  --hailo-acc: #4DD0A8;
  --datea:     #F2C08D;
  --datea-sec: #ECC165;
  --datea-acc: #A84B6F;
  --radius:    16px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── UTILITIES ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--gray-900);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,160,32,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(13, 31, 92, 0.97);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 50%, #2A4FC7 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(200,160,32,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(91,110,232,0.25) 0%, transparent 70%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  box-shadow:
    inset 0 0 0 80px rgba(255,255,255,0.02),
    0 0 0 80px rgba(255,255,255,0.01),
    0 0 0 160px rgba(255,255,255,0.005);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}


.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scroll-bounce 1.8s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ── MISSION ── */
.mission {
  padding: 100px 0;
  background: var(--white);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.mission-grid.visible {
  opacity: 1;
  transform: none;
}

.mission-text p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.mission-text em {
  color: var(--blue);
  font-style: normal;
  font-weight: 600;
}

.mission-pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--gray-100);
  border-radius: 14px;
  padding: 20px 24px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pillar.visible { opacity: 1; transform: none; }
.pillar:nth-child(2) { transition-delay: 0.1s; }
.pillar:nth-child(3) { transition-delay: 0.2s; }

.pillar-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, var(--blue), #3A5FD8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.65rem;
  margin-top: 2px;
}

.pillar-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pillar h3 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
  line-height: 1.3;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ── APPS ── */
.apps {
  padding: 100px 0;
  background: var(--off-white);
}

.app-card {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.app-card.visible {
  opacity: 1;
  transform: none;
}

.app-card-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 480px;
}

.app-card-inner.reverse {
  grid-template-columns: 420px 1fr;
}

.app-card-inner.reverse .app-info { order: 2; }
.app-card-inner.reverse .app-visual { order: 1; }

.app-info {
  padding: 52px 48px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.app-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.hailo-name { color: var(--hailo); }
.datea-name { color: var(--datea-acc); }

.app-tagline {
  font-size: 1rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 20px;
}

.app-desc {
  font-size: 0.97rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 24px;
}

.app-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.app-features li {
  font-size: 0.88rem;
  color: var(--gray-600);
  padding-left: 20px;
  position: relative;
}

.app-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.hailo-card .app-features li::before { color: var(--hailo); }
.datea-card .app-features li::before { color: var(--datea-acc); }

.app-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 500;
}

.app-free-badge {
  background: #E8FFE8;
  color: #1a7a2e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.app-tier-badge {
  background: rgba(242,192,141,0.2);
  color: #8a5a2a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* App Visual Panels */
.app-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  gap: 24px;
}

.hailo-visual {
  background: linear-gradient(145deg, #4A5FD8, #2A3CA8);
}

.datea-visual {
  background: linear-gradient(145deg, #1C1C1C, #2A1F1F);
}

.app-icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hailo-icon {
  background: linear-gradient(135deg, #6B7EF8, #FF9B4E);
}

.datea-icon {
  background: linear-gradient(135deg, #F2C08D, #A84B6F);
}

.app-icon-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.app-dots {
  display: flex;
  gap: 8px;
}

.app-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.8;
}

.theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 300px;
}

.theme-pills span {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.datea-features-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 220px;
}

.pitch-bubble {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(242,192,141,0.25);
  color: rgba(255,255,255,0.85);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.83rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.pitch-bubble:hover {
  background: rgba(242,192,141,0.15);
  border-color: rgba(242,192,141,0.5);
}

/* ── CONTACT ── */
.contact {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact.visible {
  opacity: 1;
  transform: none;
}

.contact .section-label { color: var(--gold); }
.contact .section-title { color: var(--white); }

.contact-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
}

.contact-btn {
  font-size: 1rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--gray-900);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-company {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.footer-legal {
  font-size: 0.72rem;
  color: var(--gray-300);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-600);
  width: 100%;
  text-align: center;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blue-deep);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
  }
  .nav { position: fixed; }
  .nav:not(.scrolled) {
    background: rgba(13, 31, 92, 0.9);
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-card-inner,
  .app-card-inner.reverse {
    grid-template-columns: 1fr;
  }

  .app-card-inner.reverse .app-info { order: unset; }
  .app-card-inner.reverse .app-visual { order: unset; }

  .app-visual {
    min-height: 280px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .app-info { padding: 36px 28px; }
  .section-title { font-size: 1.8rem; }
  .hero-title { font-size: 2.6rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .app-name { font-size: 2.2rem; }
}
