/* =========================================================
   Artclick Gallery Lite — Landing Page
   Clean light theme. Plain CSS, no frameworks.
   ========================================================= */

:root {
  --ink:    #0f1729;
  --text:   #3a4257;
  --muted:  #6b7280;
  --line:   #e6e8ee;
  --soft:   #f6f7fb;
  --soft-2: #eef1f8;
  --white:  #ffffff;
  --brand:  #2563eb;
  --brand-2:#6366f1;
  --navy:   #0b1226;
  --grad:   linear-gradient(100deg, #2563eb, #6366f1);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.06);
  --shadow-md: 0 10px 30px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.16);
  --maxw: 1340px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Global image safety — never distort, never overflow */
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.16; letter-spacing: -0.022em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1rem; text-wrap: pretty; }
figcaption { text-wrap: pretty; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .98rem; padding: .82rem 1.45rem; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,99,235,.36); }
.btn--ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn--ghost:hover { transform: translateY(-2px); border-color: #cdd3e0; box-shadow: var(--shadow-sm); }
.btn--light { color: var(--brand); background: #fff; box-shadow: var(--shadow-md); }
.btn--light:hover { transform: translateY(-2px); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; border-radius: 9px; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase; color: var(--brand);
  background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.16);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow--light { color: #c7d2fe; background: rgba(99,102,241,.16); border-color: rgba(129,140,248,.3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); }
.brand__name { font-size: 1.05rem; }
.brand__accent { color: var(--brand); font-weight: 650; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero (dark) ---------- */
.hero { position: relative; overflow: hidden; color: #e8edf9;
  background: radial-gradient(1100px 480px at 78% -8%, #233158 0%, var(--navy) 58%); }
.hero__glow { position: absolute; width: 520px; height: 520px; right: -120px; top: -60px;
  background: radial-gradient(circle, rgba(99,102,241,.5), transparent 62%); filter: blur(20px); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr;
  gap: 36px; align-items: center;
  padding-top: clamp(52px, 8vw, 92px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero__copy, .hero__media { min-width: 0; }

/* Desktop: centered container with equal margins; image gets the larger share */
@media (min-width: 941px) {
  .hero__inner {
    grid-template-columns: minmax(0, 440px) 1fr;
    gap: 48px;
  }
  .hero__media .frame { max-width: none; margin: 0; }
}
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.13rem; color: #b7c2db; max-width: 30rem; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.4rem 0 1.9rem; }
.hero__badges li { font-size: .84rem; color: #d4dcf0; padding: .38rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: inline-flex; align-items: center; gap: .45rem; }
.hero__badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #818cf8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.3rem; }
.hero__note { font-size: .86rem; color: #8b97b6; display: flex; align-items: center; gap: .5rem; }
.hero__note svg { width: 16px; height: 16px; stroke: #34d399; flex: none; }
.hero__media { position: relative; }

/* ---------- Frame (screenshots) ---------- */
.frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); width: 100%;
}
.frame__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  background: #f3f5f9; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; }
.frame__bar i:nth-child(1){ background:#f87171; } .frame__bar i:nth-child(2){ background:#fbbf24; } .frame__bar i:nth-child(3){ background:#34d399; }
.frame img { width: 100%; }
.hero__media .frame { max-width: 100%; margin: 0 auto; }

/* ---------- Trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--soft); }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.6rem; padding: 18px 24px; }
.trust__row span { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-size: .92rem; font-weight: 500; }
.trust__row svg { width: 17px; height: 17px; stroke: var(--brand); fill: none; stroke-width: 2; flex: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(58px, 8vw, 96px) 0; }
.section--soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 42rem; margin: 0 auto clamp(36px, 5vw, 52px); text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8deea; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(99,102,241,.10)); border: 1px solid rgba(37,99,235,.12); }
.card__icon svg { width: 23px; height: 23px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Detailed feature cards ---------- */
.fcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8deea; }
.fcard__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .25rem; }
.fcard__icon { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(99,102,241,.10)); border: 1px solid rgba(37,99,235,.12); }
.fcard__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fcard__head h3 { margin: 0; }
.fcard__tag { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .55rem; color: var(--text); font-size: .95rem; line-height: 1.5; }
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 2px 6px rgba(37,99,235,.30); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks code { background: var(--soft-2); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .35rem;
  font-size: .85em; color: var(--ink); }

/* ---------- Tabbed showcase ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.tab {
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--text); cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.2rem;
  transition: all .18s var(--ease);
}
.tab:hover { border-color: #c9d1e2; }
.tab.is-active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px rgba(37,99,235,.26); }
.tab-stage { display: grid; place-items: center; }
.tab-panel { display: none; width: 100%; }
.tab-panel.is-active { display: block; animation: fade .35s var(--ease); }
.tab-panel .frame { margin: 0 auto; max-width: 720px; }
.tab-panel--narrow .frame { max-width: 460px; }
.tab-panel figcaption { text-align: center; color: var(--muted); font-size: .98rem; margin: 18px auto 0; max-width: 40rem; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Click-to-enlarge on screenshots ---------- */
.tab-panel .frame { position: relative; cursor: zoom-in; }
.zoom-badge {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(15,23,42,.62); border: 1px solid rgba(255,255,255,.22);
  opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none;
}
.tab-panel .frame:hover .zoom-badge { opacity: 1; transform: none; }
.zoom-badge svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px); background: rgba(7,11,24,.88);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lb.is-open { display: flex; animation: lbfade .25s var(--ease); }
.lb__img { max-width: min(1100px, 96vw); max-height: 92vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.12); }
.lb__close {
  position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .15s var(--ease);
}
.lb__close:hover { background: rgba(255,255,255,.18); }
body.lb-open { overflow: hidden; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Why: reason cards + stats ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat__num { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: .92rem; margin-top: .5rem; }

/* ---------- FAQ ---------- */
.container--narrow { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink);
  font-size: 1.04rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; width: 10px; height: 10px; flex: none; margin-right: 3px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s var(--ease); }
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item summary:hover { color: var(--brand); }
.faq__a { padding: 0 22px 20px; }
.faq__a p { margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta__box { position: relative; overflow: hidden; border-radius: var(--radius-lg); text-align: center;
  padding: clamp(44px, 6vw, 72px) 28px; background: linear-gradient(120deg, #2563eb, #6366f1 55%, #8b5cf6); color: #fff; }
.cta__box h2 { color: #fff; }
.cta__box p { color: rgba(255,255,255,.92); max-width: 34rem; margin: 0 auto 1.7rem; font-size: 1.06rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c2cce0; padding: 50px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__accent { color: #93c5fd; }
.footer__tag { color: #8b97b6; font-size: .92rem; margin: .8rem 0 0; max-width: 22rem; }
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__links a { color: #c2cce0; font-size: .95rem; }
.footer__links a:hover { color: #fff; }
.footer__bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom p { color: #7e8aa6; font-size: .88rem; margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
    transform: translateY(-130%); transition: transform .26s var(--ease); box-shadow: var(--shadow-md); }
  .nav.is-open { transform: translateY(0); }
  .nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; border-bottom: 0; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .fcards { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .cards, .reasons { grid-template-columns: 1fr; }
  .tab-panel .frame, .tab-panel--narrow .frame { max-width: 100%; }
  /* Long CTA button: let it wrap instead of overflowing the box */
  .cta__box .btn { white-space: normal; max-width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .card:hover { transform: none; }
  .tab-panel.is-active { animation: none; }
}
