/* ─────────────────────────────────────────
   Affi Landing – Complete Stylesheet
   (includes watermark spiral in Use‑Cases)
   ───────────────────────────────────────── */

/* === Brand Palette === */
:root{
  --coral:#F17870;
  --coral-light:#F9A7A0;
  --mint:#8AD7C3;
  --mint-light:#CFF0E8;
  --teal:#11756D;
  --beige:#F9F6F0;
  --dark-teal:#0A4440;
  --mint-soft:#ECF8F4;
  --peach-soft:#FFF3F0;
  --text-light: #FFFFFF;
}

/* === Base Reset === */
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:"Inter",system-ui,sans-serif;
  background:linear-gradient(
    180deg,
    #2A1B31 0%,
    #4B4361 60%,
    #E9F5F3 100%
  );
  color:var(--dark-teal);
  line-height:1.6;
  min-height:100vh;
}




/* === Headings === */
h1, h2{
  font-family:'Varela Round', sans-serif;
  font-weight:400;               /* single weight in this family */
}

h1{
  font-size:clamp(2.2rem,4vw,3rem);
  line-height:1.2;
  margin-bottom:1rem;
}

h2{
  font-size:1.7rem;
  margin-bottom:1rem;
  text-align:center;
}

ul{list-style:none}

/* === Buttons === */
button{
  font-size:1rem;
  padding:.75rem 1.5rem;
  border-radius:999px;
  border:0;
  cursor:pointer;
  transition:.25s;
}
button.primary{background:var(--coral);color:#fff}
button.primary:hover{filter:brightness(.9)}
button.secondary{
  background:transparent;border:2px solid var(--teal);color:var(--teal)
}
button.secondary:hover{background:var(--mint-soft)}

/* === Sections & Cards === */
section{padding:2.5rem 1rem}

.color-mint{background:rgba(138,215,195,.20);}
	.color-peach{background:rgba(241,120,112,.20);}

.card{
  max-width:720px;margin:auto;background:#fff;border-radius:1rem;
  padding:2rem 1.5rem;box-shadow:0 4px 14px rgba(0,0,0,.05)
}
.card.text-right{text-align:right}
.card.centered{text-align:center}
.card.narrow{max-width:550px}

/* === Hero === */
.hero{
  display:flex;flex-direction:column-reverse;align-items:center;text-align:center;
  padding:3.5rem 1rem 2.5rem;
}
/* Light text on dark hero background */
.hero h1,
.hero p {
  color: var(--text-light);
}
.hero-logo img{width:240px;margin-bottom:2rem}
.buttons{margin-top:1.2rem;gap:1rem;display:inline-flex}

@media(min-width:800px){
  .hero{
    flex-direction:row;max-width:720px;margin:auto;
    justify-content:center;padding:4rem 1.5rem;
  }
  .hero-text,.hero-logo{flex:0 0 50%;padding:0 1.2rem}
  .hero-text{text-align:left}
  .hero-logo{display:flex;justify-content:center}
  .hero-logo img{width:380px;margin-bottom:0}
}

@media(min-width:800px){
  .buttons button {
    white-space: nowrap;
  }
}
/* === Feature Lists (About & Use‑Cases) === */
.feature-list{
  margin-top:1.5rem;padding:1.2rem 1rem;border-radius:12px;
  display:flex;flex-direction:column;gap:1rem;
}
.feature-list.left{
  border:2px solid var(--mint-light);background:#fff;
}
.feature-list.right{
  border:2px solid var(--coral-light);background:#fff;
}
.feature-list li{font-size:1.05rem}
.feature-list.left li{
  display:flex;align-items:center;gap:.6rem;text-align:left;
}
.feature-list .icon{font-size:1.35rem;line-height:1}
.feature-list.right.no-icons li{text-align:right}

/* === Watermark Spiral for Use‑Cases === */
.card.text-right{
  position:relative;                /* establish stacking context */
  overflow:hidden;                  /* clip spill */
}
.card.text-right::before{
  content:"";
  position:absolute;
  left:-35%; top:-15%;
  width:130%; height:130%;
  background:url('assets/Spiral.svg') center/contain no-repeat;
  opacity:.08;
  transform:rotate(8deg);
  pointer-events:none;
}

/* === Prototype Preview === */
.prototype .video-placeholder{
  width:100%;height:220px;background:var(--mint);border-radius:1rem;
  display:flex;align-items:center;justify-content:center;
  font-size:4rem;color:#fff;margin-bottom:1rem;
}
.prototype blockquote{margin-top:1rem;font-style:italic}
.prototype span{font-style:normal;color:var(--teal)}

/* === Roadmap Grid === */
.timeline-grid{
  position:relative;display:grid;grid-template-columns:repeat(4,1fr);
  padding:3.5rem 0;
}
.timeline-grid::before{
  content:"";position:absolute;top:50%;left:0;right:0;height:4px;background:var(--mint)
}
.timeline-grid li{text-align:center;position:relative}
.timeline-grid .dot{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:1.1rem;height:1.1rem;background:var(--coral);
  border:3px solid #fff;border-radius:50%;
  z-index:1;
}
.timeline-grid .step{
  width:max-content;max-width:160px;font-size:1.05rem;line-height:1.3;
  position:absolute;left:50%;transform:translateX(-50%);
}
.timeline-grid li:nth-child(odd)  .step{top:-3.2rem}
.timeline-grid li:nth-child(even) .step{bottom:-3.2rem}
.timeline-grid small{font-size:.85rem;color:var(--teal)}

/* === Newsletter Form === */
.newsletter form{
  display:flex;gap:.8rem;flex-wrap:wrap;margin-top:.8rem;
  justify-content: center; /* center-align when wrapping */
}
.newsletter input{
  flex:1 1 240px;padding:.75rem;border:1px solid var(--dark-teal);border-radius:8px;
}
.newsletter button{background:var(--coral);color:#fff;min-width:130px;}

/* === Footer & Contact === */
footer{
  text-align:center;padding:2.5rem 1rem;font-size:.9rem;color:var(--teal);
}
.contact-links{
  margin-bottom:.8rem;display:flex;justify-content:center;gap:.6rem;flex-wrap:wrap;
}
.contact-links a{
  color:var(--teal);text-decoration:none;font-weight:600;
}
.contact-links a:hover{text-decoration:underline}
footer span{color:var(--teal)}


/* === Fade‑up Scroll Animation === */
.fade-up{
  opacity:0;transform:translateY(40px);
  transition:opacity .6s ease, transform .6s ease;
}
.fade-up.in-view{
  opacity:1;transform:translateY(0);
}

@media(min-height: 700px) and (min-width: 800px) {
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
 
}



/* ─── Hamburger & overlay menu ───────────── */
.site-nav {
  position:fixed;
  top:1rem;
  right:1rem;
  z-index:999;
   transition: opacity .3s ease;   /* smooth fade both ways */
}

/* fade-out helper */
.site-nav.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}



#menu-toggle {
  width:38px;
  height:30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center; /* ← added */
  background:none;
  border:none;
  padding:0;
  cursor:pointer; 
}

#menu-toggle span {
  display:block;
  height:4px;
  width:100%;
  background:#FFF;
  border-radius:2px;
  transition:.3s;
  z-index: 1001; 
}




/* full-screen menu hidden by default */
.menu-links{
  position:fixed;inset:0;display:flex;flex-direction:column;
  justify-content:center;align-items:center;
  gap:2rem;font-size:1.4rem;list-style:none;
  background:rgba(0,0,0,.85);
  transform:translateY(-100%);transition:.4s ease-in-out;
}

/* open state */
.menu-open .menu-links{transform:translateY(0);}
.menu-open #menu-toggle span:nth-child(1){transform:rotate(45deg) translate(6px,6px);}
.menu-open #menu-toggle span:nth-child(2){opacity:0;}
.menu-open #menu-toggle span:nth-child(3){transform:rotate(-45deg) translate(7px,-7px);}

.menu-links a{
  color:#FFF;text-decoration:none;font-weight:600;
}
.menu-links a:hover{text-decoration:underline;}


/* ─── Desktop-only menu: small dropdown instead of full screen ─── */
@media (min-width: 800px) {
  .menu-links{
    position:absolute;         /* relative to .site-nav corner */
    inset:auto;                /* cancel the mobile "inset:0" */
    top:3.2rem;                /* just below the button */
    right:0;
    width:220px;
    padding:1.5rem 1rem;
    background:rgba(0,0,0,.9);
    border-radius:0.75rem;
    display:flex;flex-direction:column;gap:1rem;
    transform:translateY(-20px);opacity:0;pointer-events:none;
    transition:.25s ease;
  }
  .menu-links li{text-align:right;}

  /* open state */
  .menu-open .menu-links{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
}

/* keep 16:9 and limit width on large screens */
.prototype-video{
  aspect-ratio: 16 / 9;      /* reserves height so the poster is visible */
  max-width: 640px;          /* tweak to taste – 100% below 640 px */
  width: 100%;
  height: auto;
  object-fit: cover;         /* poster + frames fill the box nicely */
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

@media (max-width: 700px){    /* on phones keep it fluid */
  .prototype-video{
    max-width: 100%;
  }
}

