/* =========================================================
   هم‌ساز — رویداد استارتاپی کوئرا × همراه اول
   تم: تیره، با رنگ‌های کوئرا و آجرهای لگو
   ========================================================= */

:root {
  /* brand */
  --cyan: #91DEF3;      /* کوئرا — برند ۲۰۰ (رنگ اصلی تم دارک) */
  --cyan-d: #5BC3E2;
  --cyan-l: #BDEDFA;
  --teal: #0E7EAA;      /* کوئرا — برند ۵۰۰ */
  --teal-d: #005A80;
  --teal-l: #1B8FBF;
  --blue: #046DE2;      /* همراه اول */
  --blue-d: #0352AB;
  --blue-l: #3D8EEA;

  /* dark surfaces */
  --bg: #0A1424;
  --bg-2: #0D1A2D;
  --surface: #111F35;
  --surface-2: #172A45;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #E6EEF8;
  --muted: #8EA0B8;
  --ink: #1D2531;       /* متن روی دکمه‌ی برند در تم دارک */
  --danger: #FF6B7A;

  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* one stud, used as a mask tile (26px wide) */
  --stud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='9'%3E%3Crect x='5' y='0' width='16' height='12' rx='3'/%3E%3C/svg%3E");
}

/* IRANSansX — فونت رسمی کوئرا */
@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url("../fonts/IRANSansX-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; color-scheme: dark; }
body {
  margin: 0;
  font-family: "IRANSansX", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; color: #fff; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
b { color: #fff; }
[hidden] { display: none !important; }
::selection { background: var(--cyan); color: var(--ink); }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 32px); }

/* logos are dark/colored artwork; show them as white on the dark theme */
.logo-white { filter: brightness(0) invert(1); }

/* ---------- brick ---------- */
.brick {
  --c: var(--blue); --d: var(--blue-d); --l: var(--blue-l); --fg: #fff;
  --w: 2;
  position: relative; display: inline-grid; place-items: center;
  width: calc(var(--w) * 26px); height: 24px; margin-top: 9px;
  background: var(--c); color: var(--fg); font-weight: 700; line-height: 1;
  border-radius: 4px;
  box-shadow: inset 0 -5px 0 var(--d), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brick::before {
  content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 9px;
  background: linear-gradient(var(--l), var(--c));
  -webkit-mask: var(--stud) 0 0 / 26px 9px space no-repeat;
  mask: var(--stud) 0 0 / 26px 9px space no-repeat;
}
.brick--cyan { --c: var(--cyan); --d: var(--cyan-d); --l: var(--cyan-l); --fg: var(--ink); }
.brick--teal { --c: var(--teal); --d: var(--teal-d); --l: var(--teal-l); }
.brick--slate { --c: #24395A; --d: #1A2B45; --l: #304A70; --fg: var(--text); }

.brick-stack { display: inline-grid; justify-items: start; }
.brick-stack .brick:first-child { z-index: 1; }
.brick-stack .brick + .brick { margin-top: 0; }

.label-brick {
  position: relative; display: inline-block; margin-top: 9px;
  padding: .15rem .85rem .25rem; font-size: .82rem; font-weight: 700; line-height: 1.7; letter-spacing: .2px;
  background: rgba(145, 222, 243, .12); color: var(--cyan); border-radius: 5px;
}
.label-brick::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: -8px; height: 9px;
  background: rgba(145, 222, 243, .22);
  -webkit-mask: var(--stud) 0 0 / 26px 9px space no-repeat;
  mask: var(--stud) 0 0 / 26px 9px space no-repeat;
}

/* ---------- buttons (bricks with studs) ---------- */
.btn {
  --c: var(--surface-2); --d: #0F1E33; --l: #22385A; --fg: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 9px; padding: .7rem 1.4rem .85rem;
  font: inherit; font-weight: 700; color: var(--fg); background: var(--c);
  border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 -5px 0 var(--d);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: -8px; height: 9px;
  background: linear-gradient(var(--l), var(--c));
  -webkit-mask: var(--stud) 0 0 / 26px 9px space no-repeat;
  mask: var(--stud) 0 0 / 26px 9px space no-repeat;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--d); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.btn--primary { --c: var(--cyan); --d: var(--cyan-d); --l: var(--cyan-l); --fg: var(--ink); box-shadow: inset 0 -5px 0 var(--d), 0 10px 30px -12px rgba(145, 222, 243, .55); }
.btn--ghost { box-shadow: inset 0 -5px 0 var(--d), 0 0 0 1px var(--line-2); }
.btn--sm { padding: .4rem 1rem .55rem; font-size: .9rem; }
.btn--lg { padding: .85rem 1.8rem 1rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 16px 0; transition: background .25s, box-shadow .25s, padding .25s; }
.nav.is-scrolled { background: rgba(10, 20, 36, .85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 8px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-weight: 700; font-size: 1.3rem; color: #fff; }
.nav__links { display: flex; align-items: center; gap: .2rem; }
.nav__links a:not(.btn) { font-weight: 500; font-size: .95rem; padding: .35rem .8rem; border-radius: 6px; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav__cta { margin-inline-start: .6rem; }
.nav__burger { display: none; width: 44px; height: 44px; padding: 11px; background: none; border: 0; cursor: pointer; }
.nav__burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 5px 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 150px 0 90px; overflow: hidden;
  background:
    radial-gradient(700px 420px at 20% 30%, rgba(145, 222, 243, .14), transparent 70%),
    radial-gradient(600px 400px at 85% 10%, rgba(4, 109, 226, .18), transparent 70%),
    var(--bg);
}
.hero::before {
  /* faint baseplate studs */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1.6px, transparent 2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 65%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__name { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; }
.hero__name b { font-size: 1.5rem; color: var(--cyan); }
.hero__title {
  font-size: clamp(1.55rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.5;
  margin: 1rem 0 .9rem; color: #fff;
}
.hero__title em { font-style: normal; color: var(--cyan); }
.hero__alt { display: inline-block; margin-top: 1rem; color: var(--muted); font-size: .92rem; }
.hero__alt a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.hero__lead { font-size: clamp(1rem, 2vw, 1.12rem); color: var(--muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.partners { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.4rem; color: var(--muted); font-size: .85rem; }
.partners__logos { display: flex; align-items: center; gap: 1.6rem; }
.partners__quera { height: 26px; width: auto; }
.partners__hamrah { height: 46px; width: auto; }
.partners__dot { width: 1px; height: 34px; background: var(--line-2); }

.hero__visual { display: grid; place-items: center; }
.rocket-svg { width: min(340px, 100%); height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(145, 222, 243, .12)); }
.rocket { animation: hover 3.5s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-10px); } }
.flame { transform-box: fill-box; transform-origin: top center; animation: flame .35s ease-in-out infinite alternate; }
@keyframes flame { to { transform: scaleY(.8) scaleX(.92); } }
.float-a { animation: float 6s ease-in-out infinite; opacity: .9; }
.float-b { animation: float 5s ease-in-out infinite reverse; opacity: .9; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; margin: 1rem 0 .7rem; }
.section__head p { color: var(--muted); font-size: 1.02rem; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(145, 222, 243, .35); background: var(--surface-2); }

/* about */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; text-align: center; }
.features li { display: grid; justify-items: center; gap: .1rem; }
.features .brick { margin-bottom: .6rem; }
.features b { font-weight: 700; }
.features small { color: var(--muted); font-size: .88rem; }

/* tracks */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.track h3 { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 .4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.track h3 small { font-size: .75rem; font-weight: 500; color: var(--cyan); direction: ltr; letter-spacing: .3px; }
.track p { color: var(--muted); font-size: .93rem; }
.track--open { border-style: dashed; border-color: var(--line-2); background: transparent; }

/* timeline */
.timeline { position: relative; --p: 0; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; right: 26px; width: 2px; margin-right: -1px; top: 24px;
}
.timeline::before { bottom: 24px; background: var(--line-2); }
.timeline::after { height: calc(var(--p) * (100% - 48px)); background: linear-gradient(var(--teal), var(--cyan)); box-shadow: 0 0 12px rgba(145, 222, 243, .5); transition: height .1s linear; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 1.4rem; align-items: start; padding-bottom: 2.1rem; }
.step:last-child { padding-bottom: 0; }
.step__num { --w: 2; height: 34px; font-size: 1rem; z-index: 1; transition: background .3s, color .3s; }
.step:not(.is-active) .step__num { --c: var(--surface-2); --d: #0F1E33; --l: #22385A; --fg: var(--muted); }
.step h3 { font-size: 1.08rem; font-weight: 700; }
.step p { color: var(--muted); font-size: .94rem; }
.step time { font-size: .8rem; color: var(--muted); border: 1px solid var(--line-2); padding: .05rem .7rem; border-radius: 999px; white-space: nowrap; margin-top: .3rem; }

/* prizes */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 1.2rem; }
.podium__col { width: 200px; text-align: center; }
.podium__stack { display: grid; }
.podium__stack .brick { width: 100%; height: 56px; margin-top: 0; border-radius: 5px; }
.podium__stack .brick:first-child { margin-top: 9px; }
.podium__stack .brick + .brick::before { display: none; }
.podium__stack em { font-style: normal; font-size: 1.5rem; font-weight: 700; }

/* faq */
.faq { display: grid; gap: .7rem; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.qa[open] { border-color: rgba(145, 222, 243, .3); }
.qa summary {
  list-style: none; cursor: pointer; padding: 1rem 1.3rem; font-weight: 700; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); color: var(--cyan); font-size: 1.2rem; transition: transform .25s var(--ease), background .25s, color .25s;
}
.qa[open] summary::after { transform: rotate(45deg); background: var(--cyan); color: var(--ink); }
.qa p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* footer */
.footer { background: #070F1C; padding: 90px 0 2rem; border-top: 1px solid var(--line); }
.cta { text-align: center; display: grid; justify-items: center; gap: 1rem; padding-bottom: 4rem; }
.cta p { color: var(--muted); max-width: 32rem; }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
.footer__orgs { display: flex; align-items: center; gap: 1.6rem; margin-top: 1.2rem; }
.footer__orgs a { transition: opacity .2s; }
.footer__orgs a:hover img { opacity: 1; }
.footer__orgs img { height: 22px; width: auto; }
.footer__orgs a + a img { height: 38px; }

/* ---------- content blocks added from the event brief ---------- */
.key-dates { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.key-dates > div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .95rem; }
.key-dates dt { font-size: .78rem; color: var(--muted); }
.key-dates dd { font-weight: 700; color: #fff; }

.infobar {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 0; margin-top: 4rem;
  background: rgba(17, 31, 53, .7); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem .6rem;
  backdrop-filter: blur(8px);
}
.infobar li { padding: .2rem 1.1rem; font-weight: 700; font-size: .95rem; color: #fff; }
.infobar li + li { border-inline-start: 1px solid var(--line-2); }

.about-grid, .stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.about-grid h3, .stage h3, .res-grid h3 { font-size: 1.2rem; font-weight: 700; margin: 1rem 0 .4rem; }
.about-grid p, .res-grid p { color: var(--muted); }
.subhead { text-align: center; font-size: 1.2rem; font-weight: 700; margin: 3.5rem 0 1.8rem; }

.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.who { display: grid; gap: 1rem; align-content: start; }
.who h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.who p { color: var(--muted); font-size: .95rem; }

.track__soon { font-size: .88rem; color: var(--muted); }

.stage { display: grid; align-content: start; justify-items: start; }
.stage__list { display: grid; gap: .3rem; margin-bottom: 1.2rem; color: var(--muted); }
.stage__list li::before, .tick-list li::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 1px; background: var(--cyan); margin-inline-end: .6rem; vertical-align: middle;
}
.stage__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 1.4rem; margin-bottom: 1.2rem; }
.stage__facts dt { font-size: .78rem; color: var(--muted); }
.stage__facts dd { font-weight: 700; }
.note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 2rem; }

.eval-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.eval__step {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: rgba(145, 222, 243, .12); color: var(--cyan); font-weight: 700;
}
.eval h3 { font-size: 1.12rem; font-weight: 700; margin: .9rem 0 .7rem; }
.tick-list { display: grid; gap: .35rem; color: var(--muted); font-size: .95rem; }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .86rem; padding: .15rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }

.podium__label { font-weight: 700; color: #fff; margin-bottom: .7rem; min-height: 3.2em; display: grid; align-items: end; }
.podium__desc { color: var(--muted); font-size: .88rem; margin-top: 1rem; }

.rules { display: grid; gap: .8rem; }
.rules li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.2rem; color: var(--muted); }
.rules__more { text-align: center; margin-top: 1.6rem; }
.rules__more a, .qa a { color: var(--cyan); }

.org-logos { display: flex; justify-content: center; align-items: center; gap: 3rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.org-logos img:first-child { height: 34px; width: auto; }
.org-logos img:last-child { height: 60px; width: auto; }
.org-logos span { width: 1px; height: 44px; background: var(--line-2); }
.records__intro { text-align: center; color: var(--muted); margin-bottom: 1.2rem; }
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; text-align: center; }
.records > div { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.records dt { color: var(--muted); font-size: .92rem; margin-bottom: .3rem; }
.records dd { color: var(--muted); font-size: .9rem; }
.records b { display: block; font-size: 2rem; font-weight: 700; color: var(--cyan); line-height: 1.4; }

.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.footer__links { display: grid; gap: .5rem; align-content: start; }
.footer__links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer__links a:hover { color: #fff; }

/* links whose final URL isn't set yet (see LINKS in main.js) */
a.is-pending { cursor: default; }
a.is-pending::after { content: " (به‌زودی)"; font-size: .85em; }
.btn.is-pending:hover { transform: none; filter: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .partners, .hero__name, .key-dates { justify-content: center; }
  .partners { align-items: center; }
  .rocket-svg { width: min(260px, 70%); }
  .tracks { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .who-grid, .eval-grid, .res-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 64px 16px auto 16px; display: none; flex-direction: column; align-items: stretch;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: .8rem;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .6rem 1rem; }
  .nav__cta { margin: .8rem 0 0; }
  .features { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .about-grid, .stage-grid, .records { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .infobar { justify-content: flex-start; }
  .infobar li { flex: 1 1 100%; border: 0 !important; text-align: center; }
  .podium { gap: .7rem; }
}
@media (max-width: 600px) {
  .section { padding: 76px 0; }
  .hero { padding: 110px 0 60px; }
  .rocket-svg { width: 200px; }
  .partners { flex-direction: column; gap: .6rem; }
  .org-logos { gap: 1.6rem; }
  .org-logos span { display: none; }
  .org-logos img:first-child { height: 26px; }
  .org-logos img:last-child { height: 46px; }
  .partners__logos { gap: 1.2rem; }
  .partners__quera { height: 22px; }
  .partners__hamrah { height: 40px; }
  .key-dates > div { padding: .45rem .75rem; }
  .infobar { padding: .6rem; }
  .infobar li { font-size: .9rem; padding: .15rem .6rem; }
  .tracks { grid-template-columns: 1fr; }
  .who-grid, .eval-grid, .res-grid { grid-template-columns: 1fr; }
  .podium { flex-direction: column; align-items: stretch; }
  .podium__col { width: 100%; }
  .podium__col--1 { order: -1; }
  .podium__label { min-height: 0; }
  .podium__stack .brick { height: 36px; }
  .stage__facts { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 52px 1fr; }
  .step time { grid-column: 2; justify-self: start; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
