/* ══════════════════════════════════════
   DESIGN TOKENS — Gallery Design System
══════════════════════════════════════ */
:root {
  --accent:       #38539a;
  --accent-hover: #4a65b0;
  --accent-light: #f2f3fa;
  --accent-dim:   rgba(56,83,154,0.06);

  --white:        #ffffff;
  --gray-100:     #f8f9fa;
  --gray-200:     #e9ecef;
  --gray-300:     #e4e4e4;
  --gray-400:     #dee2e6;
  --gray-500:     #adb5bd;
  --gray-600:     #6c757d;
  --gray-700:     #495057;
  --gray-800:     #343a40;

  --bg:           #ffffff;
  --bg-alt:       #f2f3fa;
  --text-primary: #000000;
  --text-body:    #2c2c2c;
  --text-secondary:#444143;
  --text-muted:   #6c757d;
  --border:       #e4e4e4;

  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-pill:9999px;

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.1);
  --shadow-card:0 2px 24px rgba(0,0,0,0.12);

  --tr-fast: 150ms ease;
  --tr-base: 200ms ease;
  --tr-slow: 300ms ease;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-ml {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.brand-aw {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--tr-fast);
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-link-deck {
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
}

.nav-link-deck:hover {
  border-color: var(--accent);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 100%);
}

.hero > .container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--tr-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.hero-visual {
  flex-shrink: 0;
}

.hero-phone {
  width: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-phone img {
  width: 100%;
  display: block;
}

/* ══════════════════════════════════════
   FEATURE SECTIONS
══════════════════════════════════════ */
.feature-section {
  padding: 100px 0;
}

.feature-section.alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ══════════════════════════════════════
   TABS
══════════════════════════════════════ */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--tr-base);
}

.tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.tab.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.tab-icon {
  font-size: 18px;
}

/* ══════════════════════════════════════
   TAB PANELS
══════════════════════════════════════ */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

/* ══════════════════════════════════════
   FEATURE SHOWCASE (Screenshot + Text)
══════════════════════════════════════ */
.feature-showcase {
  display: flex;
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-showcase.visible {
  opacity: 1;
  transform: translateY(0);
}

.showcase-content {
  flex: 1;
}

.showcase-title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.showcase-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.showcase-visual {
  flex-shrink: 0;
}

.phone-frame {
  width: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--white);
}

.phone-frame img {
  width: 100%;
  display: block;
}

/* ══════════════════════════════════════
   ADMIN REVIEW — WORKFLOW
══════════════════════════════════════ */
.workflow {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-bottom: 56px;
}

.workflow-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.workflow-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.workflow-step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.workflow-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.workflow-step-title {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.workflow-step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.workflow-step-visual {
  width: 100%;
}

.admin-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--white);
}

.admin-frame img {
  width: 100%;
  display: block;
}

/* Split layout for approve / reject */
.workflow-step-visual--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-frame--outcome {
  position: relative;
}

.outcome-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.outcome-label--approved {
  background: rgba(34, 139, 34, 0.12);
  color: #1a7a1a;
  border: 1px solid rgba(34, 139, 34, 0.24);
}

.outcome-label--rejected {
  background: rgba(200, 40, 40, 0.1);
  color: #b22222;
  border: 1px solid rgba(200, 40, 40, 0.2);
}

.workflow-summary {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════
   SHARE SECTION
══════════════════════════════════════ */
.share-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.share-card {
  display: flex;
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.share-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.share-card.reversed {
  flex-direction: row-reverse;
}

.share-card-visual {
  flex-shrink: 0;
}

.share-card-content {
  flex: 1;
}

.share-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.share-card-title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.share-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-ml { font-size: 15px; }
.footer-brand .brand-sep { height: 16px; }
.footer-brand .brand-aw { font-size: 15px; }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  transition: color var(--tr-fast);
}

.footer-links a:hover {
  color: var(--accent-hover);
}

.footer-note {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════
   LIGHTBOX — Click to Zoom
══════════════════════════════════════ */
.zoomable {
  cursor: zoom-in;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
  position: relative;
}

.zoomable:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-card);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
  padding: 40px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  object-fit: contain;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  transition: background var(--tr-fast);
  border: none;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  pointer-events: none;
}

/* Zoom hint badge on images */
.zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--tr-base);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.zoomable:hover .zoom-hint {
  opacity: 1;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   MOBILE — ≤768px
══════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .header-brand .brand-ml,
  .header-brand .brand-aw { font-size: 15px; }

  .nav-link { padding: 6px 10px; font-size: 13px; }
  .nav-link-deck { display: none; }

  .hero { padding: 100px 0 56px; }
  .hero > .container { flex-direction: column; gap: 40px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-phone { width: 300px; margin: 0 auto; }

  .feature-section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  .tabs { flex-wrap: wrap; gap: 6px; }
  .tab { padding: 10px 16px; font-size: 13px; }

  .feature-showcase { flex-direction: column-reverse; gap: 32px; }
  .showcase-visual { width: 100%; display: flex; justify-content: center; }
  .phone-frame { width: 320px; }

  .share-grid { gap: 56px; }
  .share-card,
  .share-card.reversed { flex-direction: column; gap: 32px; }
  .share-card-visual { width: 100%; display: flex; justify-content: center; }

  .workflow-step-visual--split { grid-template-columns: 1fr; gap: 16px; }
  .workflow-summary { padding: 24px 20px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ══════════════════════════════════════
   TABLET — ≤1024px (only between 768-1024)
══════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-phone { width: 340px; }
  .phone-frame { width: 380px; }
  .feature-showcase { gap: 40px; }
  .share-card { gap: 40px; }
}

/* ══════════════════════════════════════
   LARGE DESKTOP — ≥1440px
══════════════════════════════════════ */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }

  .hero-title { font-size: 60px; }
  .hero-sub { font-size: 18px; }
  .hero-phone { width: 420px; }

  .section-title { font-size: 52px; }
  .section-intro { font-size: 18px; }

  .showcase-title { font-size: 28px; }
  .showcase-desc { font-size: 16px; }
  .phone-frame { width: 460px; }

  .share-card-title { font-size: 28px; }
  .share-card-desc { font-size: 16px; }

  .workflow-step-title { font-size: 22px; }
  .workflow-step-desc { font-size: 16px; }
}
