/* ============================================================
   Baturhan Cloud — Exaggerated Minimalism · Dark
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Core palette */
  --bg:        #0F0F23;
  --bg-soft:   #15152e;
  --fg:        #F8FAFC;
  --muted:     #9aa0c0;
  --muted-2:   #6b7099;
  --surface:   #181834;
  --surface-2: #1f1f40;
  --border:    #2a2a52;
  --border-soft: #232347;

  --primary:   #4338CA;
  --primary-2: #6366F1;
  --accent:    #22C55E;
  --accent-2:  #16a34a;
  --danger:    #EF4444;

  /* Brand accents */
  --jelly:   #AA5CC3;
  --jelly-2: #00A4DC;
  --immich:  #FF6B6B;
  --immich-2:#F9C74F;
  --immich-3:#4895EF;

  /* Type scale */
  --fs-h1: clamp(2.6rem, 8vw, 6rem);
  --fs-h2: clamp(2rem, 4.5vw, 3.4rem);
  --fs-h3: 1.15rem;
  --fs-lead: clamp(1.05rem, 2.2vw, 1.3rem);

  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ic { width: 18px; height: 18px; flex: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Background decor ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.orb-1 { width: 540px; height: 540px; top: -160px; left: -120px;
  background: radial-gradient(circle, var(--primary-2), transparent 70%); }
.orb-2 { width: 600px; height: 600px; top: 30%; right: -200px;
  background: radial-gradient(circle, var(--jelly), transparent 70%); opacity: .22; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap; min-height: 48px;
}
.btn:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 3px; }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #052e13; box-shadow: 0 8px 24px -8px rgba(34,197,94,.5); }
.btn-primary:hover { background: #2ee06a; transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(34,197,94,.6); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--primary-2); transform: translateY(-2px); }

.btn-wa   { background: #25D366; color: #042b12; }
.btn-tg   { background: #2AABEE; color: #04263b; }
.btn-mail { background: var(--surface-2); color: var(--fg); border-color: var(--border); }
.btn-wa:hover, .btn-tg:hover, .btn-mail:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(15,15,35,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border-soft); background: rgba(15,15,35,.88); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-2), var(--jelly)); color: #fff; }
.brand-accent { color: var(--primary-2); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language dropdown */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--fg); padding: 8px 12px; border-radius: 10px; cursor: pointer;
  font-size: .88rem; font-weight: 600; transition: background .2s, border-color .2s;
}
.lang-btn:hover { background: rgba(255,255,255,.1); }
.lang-btn:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; }
.lang-btn .chev { transition: transform .2s; }
.lang.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  min-width: 168px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 50;
}
.lang.open .lang-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-menu li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .92rem; font-weight: 500;
  transition: background .15s;
}
.lang-menu li:hover, .lang-menu li[aria-selected="true"] { background: rgba(99,102,241,.18); }
.lang-code { font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .05em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 11vw, 130px) 0 clamp(40px, 7vw, 80px); text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3); color: #c7c9ff;
  margin-bottom: 28px;
}
.hero-title {
  font-size: var(--fs-h1); font-weight: 900; line-height: 1.02; letter-spacing: -0.04em;
  margin: 0 auto 24px; max-width: 16ch;
}
.grad-text {
  background: linear-gradient(110deg, var(--primary-2) 0%, var(--jelly) 50%, var(--jelly-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: var(--fs-lead); color: var(--muted); max-width: 56ch; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }

.trust-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 44px); justify-content: center;
  color: var(--muted); font-size: .92rem; font-weight: 500;
}
.trust-row li { display: inline-flex; align-items: center; gap: 9px; }
.trust-row .ic { color: var(--accent); }

/* ---------- Section heads ---------- */
.service { padding: clamp(60px, 10vw, 120px) 0; position: relative; }
.service-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015), transparent); }
.service-head { max-width: 720px; margin-bottom: 52px; }
.service-head.center { margin-inline: auto; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-2); margin-bottom: 16px;
}
.kicker-jelly  { color: var(--jelly); }
.kicker-immich { color: var(--immich-2); }
.section-title { font-size: var(--fs-h2); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.section-lead { font-size: var(--fs-lead); color: var(--muted); margin: 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px;
}
.feature-item {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.feature-item:hover { transform: translateY(-4px); border-color: var(--border); background: var(--surface-2); }
.feat-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(170,92,195,.25), rgba(0,164,220,.2));
  color: #e7c9ff; margin-bottom: 16px;
}
.feat-ic svg { width: 24px; height: 24px; }
.feat-ic-immich { background: linear-gradient(135deg, rgba(255,107,107,.22), rgba(72,149,239,.22)); color: #ffd6c2; }
.feature-item h3 { font-size: var(--fs-h3); font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.feature-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Plan pair (free vs pro) ---------- */
.plan-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan-card {
  position: relative; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s;
}
.plan-card:hover { transform: translateY(-3px); }
.plan-card-pro { border-color: var(--accent); background: linear-gradient(180deg, rgba(34,197,94,.06), var(--surface)); box-shadow: 0 0 0 1px rgba(34,197,94,.2), 0 24px 50px -24px rgba(34,197,94,.25); }
.plan-card-immich { border-color: var(--immich-2); background: linear-gradient(180deg, rgba(249,199,79,.06), var(--surface)); box-shadow: 0 0 0 1px rgba(249,199,79,.2), 0 24px 50px -24px rgba(249,199,79,.18); }

.popular {
  position: absolute; top: -13px; inset-inline-start: 30px;
  background: var(--accent); color: #052e13; font-size: .74rem; font-weight: 800;
  letter-spacing: .03em; padding: 6px 14px; border-radius: 999px; text-transform: uppercase;
}
.popular-immich { background: var(--immich-2); color: #3a2c00; }
.popular-bundle { background: linear-gradient(90deg, var(--jelly), var(--jelly-2)); color: #fff; }

.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.plan-tag { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.plan-tag-pro    { color: var(--accent); }
.plan-tag-immich { color: var(--immich-2); }
.plan-price { display: flex; align-items: baseline; gap: 3px; }
.plan-price .price, .pc-price .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-price .per, .pc-price .per { font-size: .95rem; color: var(--muted); font-weight: 500; }

.plan-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.plan-list li { position: relative; padding-inline-start: 30px; font-size: .96rem; color: var(--fg); }
.plan-list li::before {
  position: absolute; inset-inline-start: 0; top: 1px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; font-size: .7rem; font-weight: 900;
}
.plan-list li.yes::before { content: "✓"; background: rgba(34,197,94,.18); color: var(--accent); }
.plan-list li.no  { color: var(--muted-2); }
.plan-list li.no::before  { content: "✕"; background: rgba(239,68,68,.16); color: #f87171; }
.plan-list li.lim::before { content: "•"; background: rgba(154,160,192,.18); color: var(--muted); }
.plan-list li.hl { font-weight: 600; }
.plan-list strong { color: var(--fg); font-weight: 800; }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(60px, 10vw, 120px) 0; }
.billing-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px; position: relative;
}
.bill-opt {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-weight: 600; font-size: .92rem; padding: 9px 20px; border-radius: 999px; transition: color .2s, background .2s;
}
.bill-opt.is-active { background: var(--primary); color: #fff; }
.bill-opt:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; }
.save-badge { font-size: .76rem; font-weight: 700; color: var(--accent); padding-inline: 10px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border); }
.price-card-pro { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(34,197,94,.25), 0 26px 55px -26px rgba(34,197,94,.35); }
.price-card-bundle { border-color: var(--jelly); background: linear-gradient(180deg, rgba(170,92,195,.08), var(--surface)); }
.pc-name { font-size: 1.2rem; font-weight: 700; margin: 0 0 10px; }
.pc-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 6px; }
.pc-desc { color: var(--muted); font-size: .9rem; margin: 0 0 22px; min-height: 2.6em; }
.pricing-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(60px, 10vw, 110px) 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px;
  padding: 4px 22px; transition: border-color .2s, background .2s;
}
.faq-item[open] { border-color: var(--border); background: var(--surface-2); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--primary-2); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s;
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item p { margin: 0 0 20px; color: var(--muted); font-size: .98rem; line-height: 1.7; }

/* ---------- Final CTA ---------- */
.cta-final {
  padding: clamp(64px, 10vw, 120px) 0; margin: 0 clamp(16px, 4vw, 40px) 40px;
  border-radius: 32px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 120% at 50% -10%, rgba(99,102,241,.35), transparent 70%),
    radial-gradient(ellipse 60% 100% at 80% 110%, rgba(170,92,195,.3), transparent 70%),
    var(--bg-soft);
  border: 1px solid var(--border);
}
.cta-title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.cta-sub { font-size: var(--fs-lead); color: var(--muted); max-width: 50ch; margin: 0 auto 34px; }
.contact-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 8px 0 0; max-width: 40ch; }
.footer-copy { color: var(--muted-2); font-size: .88rem; margin: 0; }

/* ============================================================
   RTL (Arabic)
   ============================================================ */
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] .hero-title, [dir="rtl"] .section-title, [dir="rtl"] .cta-title { letter-spacing: 0; }
[dir="rtl"] .orb-1 { left: auto; right: -120px; }
[dir="rtl"] .orb-2 { right: auto; left: -200px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .plan-pair { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero-cta .btn, .contact-row .btn { width: auto; }
  .nav-actions .btn { width: auto; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .btn:hover, .feature-item:hover, .plan-card:hover, .price-card:hover { transform: none; }
}
