/*
  Styles for Minfinity one-page landing
*/

:root {
  /* Palette tuned to screenshot */
  --bg: #ffffff;
  --text: #0d1420;         /* body copy very dark navy */
  --muted: #8a94a6;        /* light grey-blue for helper line */
  --navy: #11233f;         /* subheadline navy */
  --pink: #ff3f9e;         /* primary accent */
  --pink-600: #e2388f;     /* hover */
  --ring: rgba(255, 63, 158, 0.35);
  --container: 1120px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 16px 36px rgba(17,20,32,0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, #fff0f7, transparent), var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a { color: var(--pink); text-decoration: none; }
a:hover { filter: brightness(0.95); }
a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); border-radius: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0a0b0f;
  border-bottom: none;
  box-shadow: 0 6px 16px rgba(10,11,15,0.22);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; }
.logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.site-nav { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: transparent; border: 0; font-size: 22px; line-height: 1; padding: 8px; border-radius: 10px; color: #ffffff; }
.nav-link { color: #e7ebf5; font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 8px; position: relative; }
.nav-link:hover { color: #ffffff; }
.nav-link.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--pink); border-radius: 2px; }
.cta-link { background: var(--pink); color: #fff; box-shadow: 0 8px 16px var(--ring); border-radius: 10px; }
.cta-link:hover { filter: none; background: var(--pink-600); }

/* Hero */
.section { scroll-margin-top: 90px; padding-top: 72px; padding-bottom: 72px; }
.section + .section { border-top: 1px solid #eef0f4; }
.section-alt { background: linear-gradient(180deg, #fafbfe, #ffffff); }

.hero {
  padding: 86px 0 32px;
  text-align: center;
}
.eyebrow {
  margin: 6px 0 14px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
}
.headline {
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.01em;
}
.headline .highlight { color: var(--pink); }
.headline .highlight { background: linear-gradient(90deg, #ff3f9e, #a16bfe); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Fancy title underline */
.fx-title { position: relative; }
.fx-title::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -10px; width: 120px; height: 4px; background: linear-gradient(90deg, rgba(255,63,158,0.2), rgba(161,107,254,0.5), rgba(255,63,158,0.2)); border-radius: 4px; opacity: .9; }

.subheadline {
  margin: 6px 0 6px;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--navy);
  font-weight: 700;
}

.kicker {
  margin: 6px 0 24px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
}

.cta {
  display: inline-block;
  background: linear-gradient(180deg, var(--pink), #ff4fa7);
  color: white;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 16px 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 20px var(--ring), var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.cta:hover { background: var(--pink-600); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta.small { padding: 12px 16px; font-weight: 700; }
.cta:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring), var(--shadow-sm); }
.cta.secondary { background: #fff; color: var(--pink); border: 1px solid #ffd1e8; }

.mockup { margin: 40px auto 0; max-width: 860px; }
.mockup img { width: 100%; height: auto; display: block; animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Testimonials */
.testimonials { padding: 72px 0; }
.section-title { margin: 0 0 6px; font-size: 28px; text-align: center; }
.section-sub { margin: 0 0 28px; color: var(--muted); text-align: center; }

/* Reviews Slider */
.reviews-slider-wrapper { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.reviews-slider { overflow: hidden; }
.reviews-track { display: flex; gap: 22px; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.reviews-track .review-card { flex: 0 0 calc(33.333% - 15px); min-width: 0; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: var(--pink); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 8px 16px var(--ring); transition: background .2s ease, transform .2s ease; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: var(--pink-600); transform: translateY(-50%) scale(1.1); }
.slider-btn:active { transform: translateY(-50%) scale(0.95); }
.slider-btn-prev { left: -24px; }
.slider-btn-next { right: -24px; }
.slider-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.review-card { background: linear-gradient(180deg, rgba(255,255,255,0.98), #ffffff); border: 1px solid #eef0f4; border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-lg); transition: transform .22s cubic-bezier(.2,.6,.2,1), box-shadow .22s ease, border-color .22s ease; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(17,20,32,0.12); border-color: #e6e8ee; }

.video-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-wrap .poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-video { width: 100%; height: auto; display: block; }

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(transparent, rgba(0,0,0,0.35));
  border: 0;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
}
.play-overlay .triangle { width: 0; height: 0; border-left: 22px solid white; border-top: 13px solid transparent; border-bottom: 13px solid transparent; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)); transition: transform .2s ease; }
.play-overlay::after { content: ""; position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--pink); opacity: .88; z-index: -1; box-shadow: 0 10px 24px var(--ring); }
.play-overlay:hover .triangle { transform: scale(1.05) translateX(1px); }
.play-overlay.is-hidden { display: none; }

.controls { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; }
.mute-toggle { background: #0a0b0f; color: #fff; border: 0; border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; box-shadow: 0 6px 14px rgba(10,11,15,0.18); }
.mute-toggle:hover { filter: brightness(1.05); }
.volume { flex: 1; appearance: none; height: 6px; background: #e6e8ee; border-radius: 6px; outline: none; }
.volume::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--ring); }
/* Firefox */
.volume::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--ring); }

.caption { margin: 10px 6px 4px; font-weight: 600; color: var(--navy); }
.attribution { margin: 0 6px 6px; color: var(--muted); font-size: 14px; }

/* Info section */
.info-section { position: relative; padding: 88px 0; color: var(--text); }
.info-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.85); }
.info-inner { position: relative; }
.info-title { margin: 4px 0 6px; text-align: center; font-size: clamp(28px, 4vw, 44px); font-family: "Playfair Display", Georgia, serif; letter-spacing: -0.01em; color: var(--navy); }
.info-sub { margin: 0 0 28px; text-align: center; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; }
.info-card { position: relative; background: var(--pink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 16px 36px var(--ring), var(--shadow-md); min-height: 280px; cursor: pointer; }
.info-card .card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease, transform .4s ease; }
.info-card .card-title { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 20px 22px; font-size: 18px; font-weight: 700; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.4), transparent); z-index: 2; transition: opacity .4s ease, transform .4s ease; }
.info-card .card-content { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; background: var(--pink); z-index: 3; }
.info-card:hover .card-image,
.info-card.active .card-image { opacity: 0; transform: scale(1.05); }
.info-card:hover .card-title,
.info-card.active .card-title { opacity: 0; transform: translateY(10px); }
.info-card:hover .card-content,
.info-card.active .card-content { opacity: 1; transform: translateY(0); }
.info-card .card-content h3 { margin: 0 0 8px; font-size: 18px; }
.info-card p { margin: 0; color: #ffe8f4; }
.info-cta { text-align: center; margin-top: 28px; }

/* About section */
.about-section { padding: 96px 0 72px; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.about-title { margin: 4px 0 14px; font-size: clamp(32px, 5vw, 52px); color: var(--navy); font-family: "Playfair Display", Georgia, serif; letter-spacing: -0.01em; }
.about-text { max-width: 62ch; }
.about-text p { margin: 0 0 18px; color: #4a5160; }
.about-text .accent { color: var(--pink); font-weight: 800; }
.about-media { display: flex; justify-content: center; }
.about-photo { width: 100%; max-width: 420px; border-radius: 10px; box-shadow: 0 16px 40px rgba(17,20,32,0.16); }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; margin-bottom: 12px; }
  .about-photo { max-width: 520px; }
}

/* CTA section */
.cta-section { padding: 64px 0 72px; text-align: center; }
.cta-section h2 { margin: 0 0 8px; font-size: 28px; }
.cta-section p { margin: 0 0 18px; color: var(--muted); }

.signup { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; max-width: 680px; margin: 0 auto; }
.signup input {
  width: 100%;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  padding: 14px 14px;
  font-size: 16px;
}
.signup input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Footer */
.site-footer { border-top: 1px solid #f1f2f5; padding: 20px 0; color: #8b8f99; font-size: 14px; text-align: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Stagger utilities */
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.stagger.in-view > * { opacity: 1; transform: translateY(0); }
.stagger.in-view > *:nth-child(1) { transition-delay: .05s; }
.stagger.in-view > *:nth-child(2) { transition-delay: .12s; }
.stagger.in-view > *:nth-child(3) { transition-delay: .18s; }
.stagger.in-view > *:nth-child(4) { transition-delay: .24s; }
.stagger.in-view > *:nth-child(5) { transition-delay: .30s; }

/* Responsive - Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding: 64px 0 24px; }
  .info-grid { gap: 18px; }
  .info-card { min-height: 260px; }
  .about-grid { gap: 28px; }
  .reviews-track .review-card { flex: 0 0 calc(50% - 11px); }
  .slider-btn { width: 44px; height: 44px; font-size: 26px; }
  .slider-btn-prev { left: -22px; }
  .slider-btn-next { right: -22px; }
}

/* Responsive - Tablet Portrait (max 768px) */
@media (max-width: 768px) {
  .section { padding-top: 48px; padding-bottom: 48px; scroll-margin-top: 70px; }
  .hero { padding: 48px 0 20px; }
  .header-inner { padding: 12px 16px; }
  .nav-toggle { display: inline-block; }
  .site-nav { 
    position: absolute; 
    left: 0; 
    right: 0; 
    top: 100%; 
    background: rgba(10,11,15,0.98); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08); 
    box-shadow: 0 16px 28px rgba(17,20,32,0.5); 
    display: none; 
    flex-direction: column; 
    gap: 0; 
    padding: 12px 16px; 
  }
  .site-nav.open { display: flex; }
  .nav-link { font-size: 15px; padding: 14px 16px; width: 100%; border-radius: 10px; color: #e7ebf5; }
  .cta-link { width: 100%; text-align: center; }
  
  .headline { font-size: clamp(32px, 8vw, 44px); }
  .subheadline { font-size: clamp(18px, 4.5vw, 24px); }
  .kicker { font-size: 12px; }
  .cta { padding: 14px 22px; font-size: 14px; }
  
  .reviews-slider-wrapper { padding: 0 32px; }
  .reviews-track .review-card { flex: 0 0 calc(50% - 8px); }
  .slider-btn { width: 40px; height: 40px; font-size: 24px; }
  .slider-btn-prev { left: -16px; }
  .slider-btn-next { right: -16px; }
  .review-card { padding: 12px; }
  .controls { padding: 10px 4px 0; gap: 8px; }
  .mute-toggle { padding: 6px 8px; font-size: 14px; }
  .volume { height: 5px; }
  .volume::-webkit-slider-thumb { width: 14px; height: 14px; }
  .volume::-moz-range-thumb { width: 14px; height: 14px; }
  
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-card { min-height: 240px; }
  .info-card .card-title { padding: 16px 18px; font-size: 16px; }
  .info-card .card-content { padding: 18px; }
  .info-card .card-content h3 { font-size: 16px; }
  .info-card p { font-size: 14px; }
  
  .about-section { padding: 64px 0 48px; }
  .about-text { max-width: 100%; }
  .about-text p { font-size: 15px; margin-bottom: 14px; }
  .about-photo { max-width: 100%; }
  
  .testimonials { padding: 56px 0; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 14px; }
  
  .signup { grid-template-columns: 1fr; gap: 10px; }
  .signup input { padding: 12px 14px; font-size: 16px; }
  .cta-section { padding: 48px 0 56px; }
  .cta-section h2 { font-size: 24px; }
  
  .mockup { margin: 28px auto 0; }
  .fx-title::after { width: 80px; height: 3px; bottom: -8px; }
}

/* Responsive - Mobile (max 480px) */
@media (max-width: 480px) {
  .section { padding-top: 40px; padding-bottom: 40px; }
  .hero { padding: 40px 0 16px; }
  .headline { font-size: clamp(28px, 10vw, 36px); line-height: 1.15; }
  .subheadline { font-size: clamp(16px, 5vw, 20px); }
  .eyebrow { font-size: 11px; }
  .kicker { font-size: 11px; margin-bottom: 20px; }
  .cta { padding: 12px 20px; font-size: 13px; }
  
  .reviews-slider-wrapper { padding: 0 28px; }
  .reviews-track .review-card { flex: 0 0 100%; }
  .slider-btn { width: 36px; height: 36px; font-size: 20px; }
  .slider-btn-prev { left: -14px; }
  .slider-btn-next { right: -14px; }
  .review-card { padding: 10px; }
  .caption { font-size: 14px; }
  .attribution { font-size: 12px; }
  
  .info-card { min-height: 220px; }
  .info-card .card-title { padding: 14px 16px; font-size: 15px; }
  .info-card .card-content { padding: 16px; }
  .info-card .card-content h3 { font-size: 15px; margin-bottom: 6px; }
  .info-card p { font-size: 13px; line-height: 1.5; }
  
  .about-section { padding: 56px 0 40px; }
  .about-title { font-size: clamp(26px, 8vw, 32px); }
  .about-text p { font-size: 14px; margin-bottom: 12px; }
  
  .section-title { font-size: 22px; }
  .info-title { font-size: clamp(24px, 6vw, 28px); }
  .info-sub { font-size: 13px; margin-bottom: 20px; }
  
  .cta-section h2 { font-size: 20px; }
  .cta-section p { font-size: 14px; }
  
  .site-footer { padding: 16px 0; font-size: 12px; }
  .fx-title::after { width: 60px; height: 2px; }
}

/* Touch device support - show content on tap for info cards */
@media (hover: none) and (pointer: coarse) {
  .info-card { cursor: pointer; }
  .info-card.active .card-image,
  .info-card:active .card-image { opacity: 0; transform: scale(1.05); }
  .info-card.active .card-content,
  .info-card:active .card-content { opacity: 1; transform: translateY(0); }
  
  /* Better touch targets */
  .cta { min-height: 44px; min-width: 44px; }
  .mute-toggle { min-height: 44px; min-width: 44px; }
  .play-overlay { min-height: 44px; }
  .nav-link { min-height: 44px; }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { padding: 32px 0 16px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .info-card { min-height: 200px; }
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


