/* ================================================================
   SABZABI — Under Construction  2025
   Light cream/mint background · Emerald green + teal accents
   Mobile-first · RTL/LTR support
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ──────────────────────────── */
:root {
  /* Backgrounds — light, airy */
  --bg:        #f0fdfa;
  --bg2:       #fafffe;
  --bg3:       #ecfdf5;
  --surface:   #ffffff;
  --surface2:  rgba(255,255,255,.85);

  /* Text */
  --ink:       #134e4a;
  --ink2:      #1e7a74;
  --ink3:      #5eaaa8;
  --muted:     #6b8b89;

  /* Accents */
  --green:     #0d9488;
  --green2:    #14b8a6;
  --green3:    #2dd4bf;
  --blue:      #0891b2;
  --blue2:     #22d3ee;
  --emerald:   #059669;

  /* Borders */
  --border:    rgba(13,148,136,.18);
  --border2:   rgba(13,148,136,.32);
  --border3:   rgba(8,145,178,.2);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13,148,136,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(13,148,136,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(13,148,136,.18), 0 4px 16px rgba(0,0,0,.08);
  --glow:      0 0 30px rgba(13,148,136,.22), 0 0 60px rgba(13,148,136,.08);

  /* Glassmorphism (light variant) */
  --glass:     rgba(255,255,255,.72);
  --glass2:    rgba(240,253,250,.85);

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* Fonts */
  --font-fa: 'NotoArabic', 'Vazirmatn', Tahoma, sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Easing */
  --ease:   cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 90% 55% at 10% 0%,   rgba(13,148,136,.09)  0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 100%,  rgba(8,145,178,.07)   0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%,   rgba(5,150,105,.05)   0%, transparent 70%),
    linear-gradient(170deg, var(--bg) 0%, var(--bg2) 50%, var(--bg3) 100%);
  color: var(--ink);
  font-family: var(--font-en);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

[lang="fa"], [lang="ar"] {
  direction: rtl;
  font-family: var(--font-fa);
}

/* ── CUSTOM CURSOR ──────────────────────────── */
#c-dot {
  position: fixed;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(13,148,136,.6), 0 0 16px rgba(13,148,136,.3);
  opacity: 0;
  transition: opacity .2s, transform .07s;
}
#c-ring {
  position: fixed;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(13,148,136,.45);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    width .3s var(--spring),
    height .3s var(--spring),
    border-color .25s,
    background .25s,
    opacity .2s;
}
#c-ring.big {
  width: 52px; height: 52px;
  border-color: var(--green);
  background: rgba(13,148,136,.06);
}
@media (hover: none) {
  #c-dot, #c-ring { display: none; }
  body { cursor: auto; }
}

/* ── BACKGROUND CANVAS ──────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100% !important;
  height: 100% !important;
  opacity: .7;
}

/* ── SHELL ──────────────────────────────────── */
.shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── TOPNAV ─────────────────────────────────── */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark svg {
  width: 38px; height: 38px;
  filter: drop-shadow(0 2px 8px rgba(13,148,136,.25));
  transition: filter .3s;
}
.brand:hover .brand-mark svg {
  filter: drop-shadow(0 4px 16px rgba(13,148,136,.45));
}
.brand-txt {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-en);
  background: linear-gradient(120deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .02em;
}

/* Language buttons */
.langs {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lbtn {
  display: flex;
  align-items: center;
  gap: .32rem;
  padding: .28rem .62rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  font-family: var(--font-en);
  letter-spacing: .06em;
  cursor: pointer;
  white-space: nowrap;
  transition: .2s var(--spring);
  box-shadow: var(--shadow-sm);
}
.lbtn img {
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}
.lbtn:hover {
  background: rgba(13,148,136,.08);
  border-color: var(--border2);
  color: var(--green);
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow);
}
.lbtn.active {
  background: rgba(13,148,136,.12);
  border-color: var(--green2);
  color: var(--green);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(13,148,136,.15), var(--shadow-sm);
}

/* ── HERO ───────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3rem 5vw 2rem;
}
.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

/* RTL hero flip */
[lang="fa"] .hero-inner,
[lang="ar"] .hero-inner { direction: rtl; }

/* ── COPY COLUMN ────────────────────────────── */
.hcopy {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}
[lang="fa"] .hcopy,
[lang="ar"] .hcopy { text-align: right; align-items: flex-end; }
[lang="en"] .hcopy,
[lang="de"] .hcopy,
[lang="tr"] .hcopy { text-align: left;  align-items: flex-start; }

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  background: rgba(13,148,136,.1);
  border: 1px solid var(--border2);
  border-radius: var(--r-full);
  padding: .3rem .95rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(13,148,136,.12);
}
.s-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: blinkDot 1.8s ease-in-out infinite;
}

/* Heading */
.htitle {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--ink);
}
[lang="fa"] .htitle,
[lang="ar"] .htitle {
  font-family: var(--font-fa);
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  line-height: 1.4;
  letter-spacing: 0;
}
.line { display: block; }

.hl-grad {
  background: linear-gradient(110deg, var(--green) 0%, var(--green3) 40%, var(--blue) 80%, var(--blue2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 16px rgba(13,148,136,.25));
  background-size: 200% 100%;
  animation: gradShift 5s ease-in-out infinite alternate;
}

/* Brand story card */
.brand-story {
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.brand-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,148,136,.05) 0%, rgba(8,145,178,.03) 100%);
  pointer-events: none;
}
.brand-story p {
  font-size: .9rem;
  color: var(--ink2);
  line-height: 1.9;
  position: relative;
}
[lang="fa"] .brand-story p,
[lang="ar"] .brand-story p {
  font-family: var(--font-fa);
  line-height: 2.15;
}
.brand-story p strong {
  color: var(--green);
  font-weight: 700;
}

/* Tagline */
.tagline {
  font-size: clamp(.85rem, 1.4vw, .97rem);
  color: var(--ink3);
  line-height: 1.85;
  font-weight: 400;
  max-width: 460px;
}
[lang="fa"] .tagline,
[lang="ar"] .tagline {
  font-family: var(--font-fa);
  line-height: 2.1;
}

/* CTA soon button */
.soon-cta { display: flex; gap: .85rem; flex-wrap: wrap; }
[lang="fa"] .soon-cta,
[lang="ar"] .soon-cta { flex-direction: row-reverse; }

.soon-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: linear-gradient(120deg, rgba(13,148,136,.12), rgba(8,145,178,.1));
  border: 1.5px solid var(--border2);
  border-radius: var(--r-xl);
  padding: .78rem 1.7rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--green);
  box-shadow: var(--glow), var(--shadow);
  animation: ctaPulse 3.2s ease-in-out infinite;
  cursor: default;
}
[lang="fa"] .soon-btn,
[lang="ar"] .soon-btn { font-family: var(--font-fa); }
.soon-btn svg { flex-shrink: 0; color: var(--green2); }

/* ── VISUAL COLUMN ──────────────────────────── */
.hvisual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

#helix-canvas {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--r-lg);
  /* transparent — Three.js handles background */
}

/* Info badges */
.info-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--glass);
  border: 1px solid var(--border2);
  border-radius: var(--r-full);
  padding: .45rem 1.1rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--green);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
[lang="fa"] .info-badge,
[lang="ar"] .info-badge { font-family: var(--font-fa); }

.ib-1 {
  top: 8%; right: 2%;
  animation: ibFloat  4.2s ease-in-out infinite;
}
.ib-2 {
  bottom: 8%; left: 0%;
  animation: ibFloat2 4.8s .9s ease-in-out infinite;
}
.ib-icon { font-size: 1rem; }

/* ── SOCIAL BAR ─────────────────────────────── */
.social-bar {
  padding: 1.8rem 5vw 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.soc-lbl {
  font-size: .65rem;
  font-weight: 700;
  color: var(--ink3);
  letter-spacing: .14em;
  text-transform: uppercase;
}
[lang="fa"] .soc-lbl,
[lang="ar"] .soc-lbl {
  font-family: var(--font-fa);
  letter-spacing: 0;
  font-size: .75rem;
}

.soc-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
}

/* Social button base */
.sb {
  display: flex;
  align-items: center;
  gap: .42rem;
  padding: .52rem 1.05rem;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid rgba(13,148,136,.15);
  color: var(--ink2);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-en);
  box-shadow: var(--shadow-sm);
  transition: .26s var(--spring);
  position: relative;
  overflow: hidden;
}
.sb svg { width: 16px; height: 16px; flex-shrink: 0; position: relative; z-index: 1; }
.sb span { position: relative; z-index: 1; }
.sb::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .22s;
}
.sb:hover {
  color: #fff;
  transform: translateY(-5px) scale(1.07);
  border-color: transparent;
}
.sb:hover::before { opacity: 1; }

/* Brand colors */
.sb-ig  { }
.sb-ig::before  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #bc1888); }
.sb-ig:hover    { box-shadow: 0 8px 24px rgba(220,39,67,.4); }

.sb-x::before   { background: #1a1a2e; }
.sb-x:hover     { box-shadow: 0 8px 24px rgba(0,0,0,.4); }

.sb-tg { color: #0ea5e9; }
.sb-tg::before  { background: #229ED9; }
.sb-tg:hover    { box-shadow: 0 8px 24px rgba(34,158,217,.45); }

.sb-tgd { color: var(--blue); }
.sb-tgd::before { background: linear-gradient(135deg, #0088cc, #33a8e0); }
.sb-tgd:hover   { box-shadow: 0 8px 24px rgba(0,136,204,.4); }

.sb-ei { color: #f97316; }
.sb-ei::before  { background: linear-gradient(135deg, #ea580c, #c2410c); }
.sb-ei:hover    { box-shadow: 0 8px 24px rgba(234,88,12,.4); }

.sb-rb { color: #8b5cf6; }
.sb-rb::before  { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.sb-rb:hover    { box-shadow: 0 8px 24px rgba(124,58,237,.4); }

.sb-wa { color: #16a34a; }
.sb-wa::before  { background: #25D366; }
.sb-wa:hover    { box-shadow: 0 8px 24px rgba(37,211,102,.45); }

/* ── FOOTER ─────────────────────────────────── */
.foot {
  text-align: center;
  padding: 1.1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.5);
  font-size: .72rem;
  color: var(--muted);
}
[lang="fa"] .foot,
[lang="ar"] .foot { font-family: var(--font-fa); }

/* ── KEYFRAMES ──────────────────────────────── */
@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .2; transform: scale(.5); }
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: var(--glow), var(--shadow), 0 0 0 0  rgba(13,148,136,.3); }
  50%       { box-shadow: var(--glow), var(--shadow), 0 0 0 8px rgba(13,148,136,0); }
}

@keyframes ibFloat  {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes ibFloat2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes gradShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes floatUp {
  0%   { transform: translateY(0);    opacity: .7; }
  100% { transform: translateY(-40px); opacity: 0; }
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 2.5rem 1.5rem 2rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hcopy { order: 1; text-align: center; align-items: center; }
  [lang="fa"] .hcopy,
  [lang="ar"] .hcopy { text-align: center; align-items: center; }
  .tagline { max-width: 500px; text-align: center; }
  .hvisual { order: 2; max-width: 420px; margin: 0 auto; min-height: 300px; }
  .ib-1 { top: 3%; right: 0; }
  .ib-2 { bottom: 3%; left: 0; }
}

@media (max-width: 600px) {
  .topnav { padding: .7rem 1rem; }
  .lbtn { padding: .24rem .5rem; font-size: .62rem; }
  .lbtn img { width: 17px; height: 13px; }
  .sb { padding: .46rem .82rem; font-size: .7rem; }
  .sb svg { width: 15px; height: 15px; }
  .hvisual { min-height: 240px; }
  .brand-txt { font-size: .9rem; }
}

@media (max-width: 420px) {
  .langs { gap: .2rem; }
  .lbtn span { display: none; }
  .lbtn img { width: 22px; height: 16px; }
  .lbtn { padding: .26rem .44rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── TRAIL & RIPPLE ─────────────────────────── */
.trail {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.55) 0%, rgba(13,148,136,0) 100%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  animation: floatUp .54s var(--ease) forwards;
}

#ripples {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
  overflow: hidden;
}
.rip {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(13,148,136,.35);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut .95s var(--ease) forwards;
}

@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
