/* AGORA ART — minimal, modern, artistic landing */
/* Fonts */
:root{
  --bg: #070a10;
  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.64);
  --muted2: rgba(255,255,255,.42);
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --accent: rgba(255,255,255,.92);
  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --radius: 22px;
  --radius2: 16px;
  --max: 1140px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color: var(--fg);
  background: var(--bg);
  font-family: "Noto Kufi Arabic", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Background */
.bg{ position: fixed; inset:0; z-index:-2; }
.grain{
  position: absolute; inset:-40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .28;
  transform: rotate(8deg);
  animation: drift 10s linear infinite;
}

@keyframes drift{
  0%{ transform: translate3d(0,0,0) rotate(8deg); }
  100%{ transform: translate3d(-6%, 6%,0) rotate(8deg); }
}

.orb{
  position:absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(40px);
  opacity:.22;
  transform: translate3d(0,0,0);
}
.orb-a{ left:-20vmax; top:-18vmax; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(255,255,255,0) 60%); }
.orb-b{ right:-22vmax; top:8vmax; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.55), rgba(255,255,255,0) 62%); opacity:.16; }
.orb-c{ left:10vmax; bottom:-26vmax; background: radial-gradient(circle at 45% 45%, rgba(255,255,255,.35), rgba(255,255,255,0) 64%); opacity:.14; }

.topbar{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mini{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}
.brand-mini .dot{
  width: 10px; height:10px; border-radius:50%;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}
.brand-mini .txt{
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: .12em;
  font-size: 12px;
  opacity:.92;
}

.lang{
  display:flex; align-items:center; gap:10px;
  font-family: Inter, system-ui, sans-serif;
}
.lang-link{
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.lang-link:hover{ color: var(--fg); border-color: var(--stroke); background: rgba(255,255,255,.04); }
.lang-link.active{ color: var(--fg); border-color: var(--stroke); background: rgba(255,255,255,.05); }
.sep{ opacity:.35; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px 56px;
}

.hero{
  display:grid;
  grid-template-columns: 420px 1fr;
  align-items: start;
  gap: 28px;
  padding: 22px 0 10px;
}

/* 3D logo */
.logo3d{
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.logo3d-inner{
  width: 86%;
  height: 78%;
  position: relative;
  transform-style: preserve-3d;
  animation: floaty 7.5s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{ transform: rotateX(10deg) rotateY(-14deg) translateY(0); }
  50%{ transform: rotateX(14deg) rotateY(12deg) translateY(-8px); }
}
.logo-face{
  position:absolute; inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(120% 120% at 30% 30%, rgba(255,255,255,.16), rgba(255,255,255,.03) 60%, rgba(0,0,0,.05));
  backdrop-filter: blur(10px);
}
.face-front{ transform: translateZ(22px); }
.face-back{ transform: rotateY(180deg) translateZ(22px); }

.logo-face .arabic{
  font-size: 62px;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.logo-face .latin{
  font-family: Inter, system-ui, sans-serif;
  font-size: 28px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .90;
}
.logo-face .latin span{
  opacity:.8;
}
.logo-glow{
  position:absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  filter: blur(14px);
  animation: glow 5s ease-in-out infinite;
  pointer-events:none;
}
@keyframes glow{
  0%,100%{ transform: translate(-10%, -6%) scale(1); opacity:.55; }
  50%{ transform: translate(8%, 10%) scale(1.08); opacity:.35; }
}

/* Copy */
.hero-copy{ padding-top: 6px; }
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.pulse{
  width: 10px; height:10px; border-radius:50%;
  background: rgba(255,255,255,.8);
  box-shadow: 0 0 0 0 rgba(255,255,255,.18);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(255,255,255,.18); }
  100%{ box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}

h1{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: .01em;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0 18px;
}
.card{
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: var(--radius2);
  padding: 16px 16px;
  backdrop-filter: blur(12px);
}
.card h2{
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: .02em;
}
.card p, .card li{
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.card ul{ margin: 10px 0 0; padding: 0 20px; }
.card li{ margin: 6px 0; }

.cta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  text-decoration:none;
  color: var(--fg);
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  font-family: Inter, "Noto Kufi Arabic", system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}
.btn.primary{
  background: rgba(255,255,255,.92);
  color: rgba(0,0,0,.92);
  border-color: rgba(255,255,255,.92);
}
.btn.primary:hover{ background: rgba(255,255,255,.86); }
.btn.ghost{
  color: var(--fg);
}

.note{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.note .k{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}

/* Contact */
.contact{
  margin-top: 28px;
}
.contact-card{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
.contact-card h3{
  margin: 0 0 6px;
  font-size: 16px;
}
.contact-card p{ margin: 0 0 12px; color: var(--muted); }

.contact-row{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 14px;
}
.chip{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
}
.contact-card a{
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.contact-card a:hover{ border-bottom-color: rgba(255,255,255,.45); }

.form{
  margin-top: 10px;
}
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
label span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: Inter, "Noto Kufi Arabic", system-ui, sans-serif;
}
input, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--fg);
  padding: 12px 12px;
  outline: none;
  font-family: inherit;
}
input:focus, textarea:focus{
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.tiny{
  margin: 10px 0 0;
  color: var(--muted2);
  font-size: 12px;
}

.footer{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 2px;
}
.footer .mark{
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: .18em;
  font-size: 12px;
  opacity: .9;
}
.muted{
  color: var(--muted);
  font-size: 12px;
  text-decoration:none;
}
.muted:hover{ color: var(--fg); }

/* Toast */
.toast{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 20;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 16, .72);
  color: var(--fg);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 70px rgba(0,0,0,.45);
  transform: translateY(20px);
  opacity: 0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  font-family: Inter, "Noto Kufi Arabic", system-ui, sans-serif;
}
.toast.show{
  opacity: 1;
  transform: translateY(0);
}


/* Featured issue thumbnail */
.featured-issue{
  margin: 14px 0 6px;
  padding: 14px 14px 10px;
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
}
.issue-link{ text-decoration: none; display:block; }
.issue-frame{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(4deg) rotateY(-8deg);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  box-shadow: 0 18px 70px rgba(0,0,0,.45);
}
.issue-frame img{
  width: 100%;
  display:block;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: translateZ(30px);
}
.issue-badge{
  position:absolute;
  inset: auto 12px 12px 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,12,16,.55);
  color: var(--fg);
  font-family: Inter, "Noto Kufi Arabic", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  backdrop-filter: blur(12px);
}
.issue-glow{
  position:absolute;
  inset:-30%;
  background: radial-gradient(circle at 30% 35%, rgba(255,255,255,.32), rgba(255,255,255,0) 55%),
              radial-gradient(circle at 70% 65%, rgba(255,255,255,.18), rgba(255,255,255,0) 58%);
  filter: blur(14px);
  opacity: .55;
  animation: issuePulse 1.9s ease-in-out infinite;
  pointer-events:none;
}
@keyframes issuePulse{
  0%,100%{ opacity: .35; transform: scale(1) rotate(0deg); }
  50%{ opacity: .65; transform: scale(1.03) rotate(1deg); }
}
.issue-frame::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,.10);
  opacity:.0;
  transition: opacity .25s ease;
  pointer-events:none;
}
.issue-frame:hover{
  transform: perspective(900px) rotateX(8deg) rotateY(10deg);
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.02);
}
.issue-frame:hover::after{ opacity: 1; }
.issue-frame:hover .issue-glow{
  animation: issuePulseFast .95s ease-in-out infinite;
}
@keyframes issuePulseFast{
  0%,100%{ opacity: .45; transform: scale(1.01) rotate(-1deg); }
  50%{ opacity: .85; transform: scale(1.06) rotate(2deg); }
}
.issue-note{
  margin: 10px 4px 0;
  color: var(--muted2);
  font-size: 12px;
}


/* Responsive */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .logo3d{ height: 340px; }
  .grid{ grid-template-columns: 1fr; }
  h1{ font-size: 30px; }
}
@media (max-width: 520px){
  .topbar{ padding: 14px 14px; }
  .wrap{ padding: 10px 14px 44px; }
  .logo3d{ height: 300px; }
  h1{ font-size: 26px; }
  .logo-face .arabic{ font-size: 52px; }
  .logo-face .latin{ font-size: 22px; }
}
