/* ==========================================
   Ovify Style System & Shared Layouts
   ========================================== */

:root {
  /* Colors */
  --navy: #13233C;
  --navy-deep: #091220;
  --navy-light: #F0F4FA;
  --lavender: #9E8CEF;
  --lavender-deep: #7E6BD3;
  --lavender-light: #F5F3FF;
  --blush: #FFA8A8;
  --blush-deep: #E58C8C;
  --blush-light: #FFF5F5;
  --ivory: #FDFDFB;
  --white: #FFFFFF;
  --dark-slate: #091220;
  --dark-slate-2: #050B14;
  --success: #9E8CEF;
  --warning: #FFA8A8;
  --error: #E55767;

  /* Text and Lines */
  --text-dark: #132035;
  --text-light: #EDF2F7;
  --text-dim-dark: rgba(19, 32, 53, 0.66);
  --text-dim-light: rgba(237, 242, 247, 0.66);
  --line-dark: rgba(19, 32, 53, 0.12);
  --line-light: rgba(255, 255, 255, 0.1);

  /* Dimensions & Settings */
  --maxw: 1200px;
  --radius: 20px;
  --radius-sm: 10px;

  /* Typography */
  --head: 'DM Sans', sans-serif;
  --body: 'Manrope', sans-serif;
  --data: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background-color: var(--ivory);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

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

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

/* ==========================================
   Utility Classes
   ========================================== */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--data);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-block;
  margin-bottom: 16px;
}

.eyebrow.light {
  color: var(--lavender);
}

.grad-text {
  background: linear-gradient(100deg, var(--navy), var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-text-light {
  background: linear-gradient(100deg, var(--lavender), #E6E0FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Containers */
section {
  padding: 50px 0;
}

section.dark {
  background-color: var(--dark-slate);
  color: var(--text-light);
}

section.dark h1,
section.dark h2,
section.dark h3,
section.dark h4 {
  color: var(--text-light);
}

section.alt {
  background-color: var(--navy-light);
}

.sec-head {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
}

.sec-head h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.sec-head p {
  color: var(--text-dim-dark);
  font-size: 1.1rem;
  margin-top: 16px;
}

.sec-head.light p {
  color: var(--text-dim-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(100deg, var(--navy), var(--navy-deep));
  color: var(--white);
  box-shadow: 0 10px 24px -6px rgba(19, 35, 60, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(19, 35, 60, 0.6);
}

.btn-accent {
  background: linear-gradient(100deg, var(--lavender), var(--lavender-deep));
  color: var(--white);
  box-shadow: 0 10px 24px -6px rgba(158, 140, 239, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(158, 140, 239, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--line-dark);
}

.btn-ghost:hover {
  background: rgba(19, 35, 60, 0.06);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--line-light);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--navy);
  box-shadow: 0 16px 36px -12px rgba(19, 35, 60, 0.15);
}

.card.dark {
  background: linear-gradient(165deg, var(--navy-deep), var(--dark-slate));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.card.dark:hover {
  border-color: var(--lavender);
  box-shadow: 0 16px 36px -12px rgba(158, 140, 239, 0.2);
}

.card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card.dark .icon-wrap {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lavender);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-dim-dark);
  font-size: 0.95rem;
}

.card.dark p {
  color: var(--text-dim-light);
}

/* ==========================================
   Header Navigation
   ========================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: all 0.25s ease;
}

header.scrolled {
  box-shadow: 0 8px 30px -10px rgba(30, 46, 37, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-dark);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.93rem;
  color: var(--text-dim-dark);
  font-weight: 550;
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width 0.2s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.8rem;
  cursor: pointer;
}

.mmenu {
  display: none;
  position: fixed;
  inset: 84px 0 0;
  z-index: 90;
  background: rgba(250, 249, 246, 0.98);
  padding: 40px 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line-dark);
  animation: slideDown 0.3s ease forwards;
}

.mmenu.open {
  display: flex;
}

.mmenu a {
  padding: 14px 8px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--line-dark);
}

.mmenu a.active {
  color: var(--navy);
  border-left: 4px solid var(--navy);
  padding-left: 14px;
}

/* ==========================================
   Footer Layout
   ========================================== */

footer {
  background-color: var(--dark-slate);
  color: var(--text-light);
  padding: 40px 0 20px;
  border-top: 1px solid var(--line-light);
}

footer .brand {
  color: var(--white);
  margin-bottom: 18px;
}

footer .brand span {
  color: var(--lavender);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.foot-about {
  color: var(--text-dim-light);
  font-size: 0.95rem;
  max-width: 340px;
}

.foot-col h4 {
  color: var(--lavender);
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.foot-col a {
  display: block;
  color: var(--text-dim-light);
  font-size: 0.92rem;
  padding: 8px 0;
  transition: color 0.15s ease;
}

.foot-col a:hover {
  color: var(--white);
}

.foot-bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--data);
  font-size: 0.82rem;
  color: var(--text-dim-light);
  flex-wrap: wrap;
  gap: 16px;
}

.foot-bottom span:last-child {
  color: var(--lavender);
}

/* ==========================================
   Scroll Reveal Animation
   ========================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Keyframes */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================
   Why exists section cards (Challenge vs Solution)
   ========================================== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 20px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 10px 30px -10px rgba(19, 32, 53, 0.05);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(19, 32, 53, 0.08);
}

.why-card.challenge-card {
  border-top: 4px solid var(--blush-deep);
  background: linear-gradient(180deg, var(--white) 0%, var(--blush-light) 100%);
}

.why-card.solution-card {
  border-top: 4px solid var(--lavender);
  background: linear-gradient(180deg, var(--white) 0%, var(--lavender-light) 100%);
}

.why-stat-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.why-stat-number {
  font-family: var(--data);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.why-card.challenge-card .why-stat-number {
  color: var(--error);
  text-shadow: 0 0 20px rgba(229, 87, 103, 0.2);
}

.why-card.solution-card .why-stat-number {
  color: var(--lavender-deep);
  text-shadow: 0 0 20px rgba(158, 140, 239, 0.25);
}

.why-stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  line-height: 1.3;
}

.why-card h3 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.98rem;
  color: var(--text-dim-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}

.why-card .bullet-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.why-card .bullet-list li {
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text-dim-dark);
}

.why-card .bullet-list li strong {
  color: var(--text-dark);
}

/* Ecosystem Essence Background Styling */
.bg-ecosystem {
  position: relative;
  background-image: linear-gradient(135deg, rgba(9, 18, 32, 0.93), rgba(20, 16, 45, 0.96)), url('assets/ecosystem_essence.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* ==========================================
   Modern Visual Design Upgrades & Glassmorphism
   ========================================== */

:root {
  --glow-lavender: 0 0 30px rgba(158, 140, 239, 0.45);
  --glow-navy: 0 0 30px rgba(19, 35, 60, 0.25);
  --glow-blush: 0 0 30px rgba(255, 168, 168, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-dark: rgba(9, 18, 32, 0.85);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-border-dark: rgba(255, 255, 255, 0.09);
  --gold: #FFBD2E;
  --gold-deep: #D48E00;
}

/* Base modifications */
section.alt {
  background: radial-gradient(60% 60% at 50% 50%, rgba(158, 140, 239, 0.04) 0%, var(--navy-light) 100%);
}

/* Glassmorphic card adjustments */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 35px -10px rgba(19, 32, 53, 0.04);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--lavender);
  box-shadow: 0 20px 45px -12px rgba(158, 140, 239, 0.15), var(--glow-lavender);
}

/* Button glow effects */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.6s ease;
}

.btn:hover::before {
  left: 150%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px -6px rgba(19, 35, 60, 0.5);
}

.btn-accent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px -6px rgba(158, 140, 239, 0.5);
}

/* Why Exists Cards design update */
.why-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 36px -12px rgba(19, 32, 53, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card.challenge-card {
  border-top: 5px solid var(--blush-deep);
  background: linear-gradient(180deg, var(--white) 0%, rgba(255, 168, 168, 0.06) 100%);
}

.why-card.challenge-card:hover {
  transform: translateY(-4px);
  border-color: var(--blush-deep);
  box-shadow: 0 24px 50px -15px rgba(229, 87, 103, 0.12), var(--glow-blush);
}

.why-card.solution-card {
  border-top: 5px solid var(--lavender);
  background: linear-gradient(180deg, var(--white) 0%, rgba(158, 140, 239, 0.06) 100%);
}

.why-card.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--lavender);
  box-shadow: 0 24px 50px -15px rgba(158, 140, 239, 0.16), var(--glow-lavender);
}

/* Stakeholder Cards styling update */
.stakeholder-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(19, 32, 53, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stakeholder-card:hover {
  transform: translateY(-5px);
  border-color: var(--lavender);
  box-shadow: 0 20px 45px -12px rgba(158, 140, 239, 0.12), var(--glow-lavender);
}

.stakeholder-card .tag {
  background: linear-gradient(135deg, rgba(158, 140, 239, 0.12), rgba(19, 35, 60, 0.06));
  border: 1px solid rgba(158, 140, 239, 0.15);
  box-shadow: 0 4px 12px rgba(19, 35, 60, 0.03);
  padding: 6px 14px;
}

/* Floating Spotlight dark card for Final CTA */
.cta-dark-card {
  background: radial-gradient(circle at 50% 50%, rgba(158, 140, 239, 0.16) 0%, transparent 65%), linear-gradient(135deg, var(--navy-deep), var(--dark-slate));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.cta-dark-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 140, 239, 0.3), transparent);
}

/* Glow Blobs container for backgrounds */
.hero-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 12s infinite ease-in-out alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--navy);
  top: -12%;
  right: -8%;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: var(--lavender);
  bottom: -15%;
  left: -10%;
  animation-delay: -3s;
}

.blob-3 {
  width: 320px;
  height: 320px;
  background: var(--blush);
  top: 35%;
  left: 45%;
  animation-delay: -6s;
}

@keyframes pulseGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -25px) scale(1.12); }
}

/* Upgrades to Device mockups & previews inside HTML */
.phone-mockup {
  position: relative;
}

.phone-mockup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.01) 50.1%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 8;
}

/* Double-ring breathing assist */
.breathing-circle-wrap::before {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px dashed rgba(158, 140, 239, 0.4);
  border-radius: 50%;
  animation: breatheOuter 8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes breatheOuter {
  0%, 100% { transform: scale(1.25); opacity: 0.8; }
  50% { transform: scale(2.2); opacity: 0.05; }
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav .btn {
    display: none;
  }

  .burger {
    display: block;
  }

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

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

  .sec-head h2 {
    font-size: 1.85rem;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
