@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --ink: #0a0a0f;
  --ink-2: #3a3a4a;
  --ink-3: #7a7a90;
  --paper: #f5f4f0;
  --paper-2: #eceae3;
  --paper-3: #e0ddd4;
  --accent: #1a6b4a;
  --accent-light: #e8f4ee;
  --accent-mid: #2e9468;
  --danger: #c0392b;
  --gold: #b8860b;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 16px rgba(10,10,15,0.08);
  --shadow-lg: 0 8px 40px rgba(10,10,15,0.14);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max: 1100px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── TOP BANNER ── */
.trust-banner {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 10;
}

.trust-banner strong { font-weight: 700; }

.trust-banner .wifi-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--paper-3);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg { width: 18px; height: 18px; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover { background: var(--paper-2); color: var(--ink); }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--paper-3);
  background: var(--paper);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-lang:hover { background: var(--paper-2); color: var(--ink); }

/* ── HERO ── */
.hero {
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(26,107,74,0.2);
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 20px;
}

h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.3;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 16px;
  line-height: 1.55;
  font-weight: 300;
}

/* ── OFFLINE CLAIM ── */
.offline-claim {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--paper-3);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.offline-claim .dot { color: var(--accent); font-size: 18px; line-height: 1; }
.offline-claim strong { color: var(--ink); }
.offline-claim .verify-link {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* ── DROP ZONE ── */
.tool-card {
  background: var(--white);
  border: 1.5px solid var(--paper-3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin: 0 auto;
}

.tool-tabs {
  display: flex;
  border-bottom: 1px solid var(--paper-3);
  background: var(--paper);
}

.tab-btn {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.tab-btn.active {
  color: var(--ink);
  background: var(--white);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.drop-area {
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition);
  border: 2px dashed transparent;
  border-radius: 12px;
  margin: 20px;
}

.drop-area:hover, .drop-area.drag-over {
  background: var(--accent-light);
  border-color: var(--accent);
}

.drop-icon {
  width: 64px;
  height: 64px;
  background: var(--ink);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition);
}

.drop-area:hover .drop-icon { transform: translateY(-3px); }
.drop-icon svg { width: 32px; height: 32px; color: white; }

.drop-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.drop-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 24px;
}

.drop-formats {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.fmt-badge {
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--paper-3);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover { background: #1e1e2e; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,10,15,0.2); }

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

.btn-accent:hover { background: var(--accent-mid); }

#file-input { display: none; }

/* ── FILE LIST ── */
#file-list { padding: 0 20px 20px; display: none; }
#file-list.visible { display: block; }

.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--paper-3);
  margin-bottom: 12px;
}

.file-list-header span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.btn-ghost {
  background: none;
  border: 1.5px solid var(--paper-3);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--paper-2); }

.btn-danger {
  border-color: #fcc;
  color: var(--danger);
}
.btn-danger:hover { background: #fff0f0; border-color: var(--danger); }

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--paper-3);
  transition: all var(--transition);
}

.file-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--paper-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}

.file-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.file-info { flex: 1; min-width: 0; }

.file-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.file-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.status-ready { background: var(--paper-2); color: var(--ink-3); }
.status-clean { background: #e6f9f0; color: #1a8050; }
.status-processing { background: #fff8e6; color: #a06800; }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ── METADATA PANEL ── */
#meta-panel {
  border-top: 1px solid var(--paper-3);
  padding: 20px 20px 24px;
  display: none;
}

#meta-panel.visible { display: block; }

.meta-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.meta-panel-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.meta-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  width: 220px;
  transition: border-color var(--transition);
}

.meta-search:focus-within { border-color: var(--accent); }

.meta-search input {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  width: 100%;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.meta-table tr { border-bottom: 1px solid var(--paper-2); }
.meta-table tr:last-child { border-bottom: none; }

.meta-table td { padding: 9px 10px; }
.meta-table td:first-child { font-weight: 600; color: var(--ink-2); width: 40%; }
.meta-table td:last-child { color: var(--ink); word-break: break-all; }

.gps-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff0f0;
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid #ffcccc;
}

/* ── BULK ACTIONS ── */
.bulk-bar {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
  display: none;
}

.bulk-bar.visible { display: flex; }

/* ── TRUST SIGNALS ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 780px;
  margin: 40px auto 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}

.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ── SECTIONS ── */
section { padding: 72px 0; position: relative; z-index: 1; }

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.6;
  font-weight: 300;
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--white);
  border: 1.5px solid var(--paper-3);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition);
}

.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--paper-2);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ── PRIVACY SECTION ── */
.privacy-section {
  background: var(--ink);
  color: white;
  border-radius: 24px;
  padding: 64px;
  overflow: hidden;
  position: relative;
}

.privacy-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.12;
}

.privacy-section .section-label { color: #6be0a8; }
.privacy-section h2 { color: white; }
.privacy-section .section-intro { color: rgba(255,255,255,0.65); }

.privacy-claims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.privacy-claim {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 24px;
}

.privacy-claim .claim-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.privacy-claim h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.privacy-claim p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }

.offline-test-box {
  background: rgba(107,224,168,0.12);
  border: 1.5px solid rgba(107,224,168,0.3);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.offline-test-box .box-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.offline-test-box h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #6be0a8;
  margin-bottom: 6px;
}

.offline-test-box p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.55; }

/* ── WHAT IS EXIF SECTION ── */
.exif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.exif-col {
  background: var(--white);
  border: 1.5px solid var(--paper-3);
  border-radius: 16px;
  padding: 28px;
}

.exif-col.danger-col { border-color: #ffdddd; background: #fff8f8; }

.exif-col-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 100px;
  display: inline-block;
}

.safe-label { background: var(--accent-light); color: var(--accent); }
.risk-label { background: #fff0f0; color: var(--danger); }

.exif-list { list-style: none; }
.exif-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--paper-2);
}
.exif-list li:last-child { border-bottom: none; }
.exif-list li .li-dot { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px; }

/* ── FAQ ── */
.faq-list { max-width: 680px; margin-top: 40px; }

.faq-item {
  border-bottom: 1px solid var(--paper-3);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}

.faq-q:hover { color: var(--accent); }
.faq-q .arrow { transition: transform var(--transition); color: var(--ink-3); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* ── AD SLOTS ── */
.ad-slot {
  background: var(--paper-2);
  border: 2px dashed var(--paper-3);
  border-radius: var(--radius);
  text-align: center;
  padding: 32px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 40px 0;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { max-width: 260px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}

.footer-desc { font-size: 13px; line-height: 1.6; }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(10,10,15,0.25);
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.modal p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; }
.modal ol { padding-left: 20px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.modal-close { float: right; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink-3); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .exif-grid { grid-template-columns: 1fr; }
  .privacy-section { padding: 40px 24px; }
  .nav-links { display: none; }
  h1 { font-size: 36px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .privacy-claims { grid-template-columns: 1fr; }
}

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

.hero-eyebrow { animation: fadeUp 0.5s ease both; }
h1 { animation: fadeUp 0.5s 0.1s ease both; }
.hero-sub { animation: fadeUp 0.5s 0.2s ease both; }
.offline-claim { animation: fadeUp 0.5s 0.3s ease both; }
.tool-card { animation: fadeUp 0.5s 0.4s ease both; }
