/* ═══════════════════════════════════════════════════════════════
   TouchPass Landing — Apple-Style LIGHT Theme v2
   ═══════════════════════════════════════════════════════════════ */

/* ────────────── Reset & Base ────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent-blue: #0071e3;
  --accent-green: #34c759;
  --accent-purple: #af52de;
  --accent-orange: #ff9500;
  --accent-cyan: #32ade6;
  --accent-emerald: #30d158;
  --accent-red: #ff3b30;
  --border: rgba(0,0,0,0.08);
  --border-subtle: rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1120px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0,0,0,0.04);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #1d1d1f;
}

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

/* ────────────── Nav ────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

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

.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; }
.nav-logo img { border-radius: 6px; }
.nav-wordmark { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switcher { display: flex; gap: 2px; background: var(--bg-secondary); border-radius: 8px; padding: 2px; }
.lang-btn {
  padding: 4px 10px; font-size: 0.75rem; font-weight: 600;
  border: none; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--text-tertiary); transition: all 0.2s;
}
.lang-btn.active { background: var(--bg-primary); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.lang-btn:hover:not(.active) { color: var(--text-secondary); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 980px;
  font-weight: 500; transition: all 0.2s;
}
.btn-outline:hover { background: var(--bg-secondary); color: var(--text-primary); opacity: 1; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-primary); margin: 3px 0; border-radius: 1px; }

/* ────────────── Hero ────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 60px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content { max-width: 720px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; font-size: 0.8rem; font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 100px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 6px; height: 6px; background: var(--accent-green);
  border-radius: 50%; animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 20px;
}
.hero-line-light { display: block; font-weight: 300; color: var(--text-secondary); }
.hero-line-bold {
  display: block; font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem; line-height: 1.7; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 28px;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }

.hero-proof { margin-top: 4px; }
.hero-price-compare {
  font-size: 0.85rem; font-weight: 500; color: var(--accent-green);
  display: inline-flex; align-items: center; gap: 4px;
}

.hero-device {
  margin-top: 48px; max-width: 560px;
}
.hero-device img {
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
}

/* ────────────── Buttons ────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 0.95rem; font-weight: 600;
  border: none; border-radius: 980px; cursor: pointer;
  transition: all 0.3s var(--ease-out); text-decoration: none;
}
.btn-primary { background: var(--accent-blue); color: #fff; }
.btn-primary:hover { background: #005bb5; opacity: 1; transform: scale(1.02); }
.btn-ghost { background: transparent; color: var(--accent-blue); border: 1px solid rgba(0,113,227,0.3); }
.btn-ghost:hover { background: rgba(0,113,227,0.06); opacity: 1; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ────────────── Sections ────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 56px; }

.section-eyebrow {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent-blue); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 580px; margin: 0 auto; line-height: 1.6;
}

/* ────────────── Pain Points ────────────── */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.pain-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: all 0.4s var(--ease-out); box-shadow: var(--shadow-sm);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pain-img { aspect-ratio: 16/10; overflow: hidden; }
.pain-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.pain-card:hover .pain-img img { transform: scale(1.03); }

.pain-body { padding: 24px; }
.pain-body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.pain-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }

/* ────────────── Comparison Table ────────────── */
.compare-wrap {
  overflow-x: auto; border-radius: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.compare-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.col-highlight { background: rgba(0,113,227,0.03); }

.compare-table thead th {
  padding: 20px 24px; text-align: center;
  font-size: 0.85rem; font-weight: 700;
  border-bottom: 2px solid var(--border);
  vertical-align: bottom;
}
.compare-table thead th:first-child { text-align: left; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }

.compare-icon { border-radius: 6px; margin-bottom: 6px; }
.compare-name { display: block; font-size: 1rem; font-weight: 700; }
.compare-price-tag {
  display: inline-block; margin-top: 4px; padding: 2px 10px;
  font-size: 0.85rem; font-weight: 700; border-radius: 6px;
  background: rgba(0,113,227,0.1); color: var(--accent-blue);
}
.compare-price-tag--dim { background: rgba(0,0,0,0.04); color: var(--text-tertiary); }

.compare-table td {
  padding: 14px 24px; font-size: 0.9rem; text-align: center;
  border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary);
}
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--text-primary); }

.cmp-yes { color: var(--accent-green); font-weight: 700; font-size: 1.1rem; }
.cmp-yes-note { color: var(--accent-green); font-weight: 700; }
.cmp-yes-note small { font-weight: 400; color: var(--text-tertiary); font-size: 0.75rem; }
.cmp-no { color: var(--accent-red); font-weight: 600; font-size: 1.1rem; opacity: 0.6; }

.cmp-price-row td { border-bottom: none; padding-top: 20px; padding-bottom: 20px; }
.cmp-price-win {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--accent-blue);
}
.cmp-price-lose {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--text-tertiary); text-decoration: line-through; text-decoration-color: var(--accent-red);
}

/* ────────────── Use Cases ────────────── */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.usecase-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: all 0.4s var(--ease-out); box-shadow: var(--shadow-sm);
}
.usecase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.usecase-img { aspect-ratio: 16/9; overflow: hidden; }
.usecase-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.usecase-card:hover .usecase-img img { transform: scale(1.03); }

.usecase-card h3 { padding: 20px 24px 6px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.usecase-card p { padding: 0 24px 24px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }

/* ────────────── Bento Grid ────────────── */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.bento-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  transition: all 0.4s var(--ease-out); box-shadow: var(--shadow-sm);
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,0,0,0.12); }

.bento-card--wide {
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
}

.bento-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.bento-icon--blue { background: rgba(0,113,227,0.08); color: var(--accent-blue); }
.bento-icon--orange { background: rgba(255,149,0,0.08); color: var(--accent-orange); }
.bento-icon--purple { background: rgba(175,82,222,0.08); color: var(--accent-purple); }
.bento-icon--green { background: rgba(52,199,89,0.08); color: var(--accent-green); }
.bento-icon--cyan { background: rgba(50,173,230,0.08); color: var(--accent-cyan); }
.bento-icon--emerald { background: rgba(48,209,88,0.08); color: var(--accent-emerald); }

.bento-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.bento-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }

.unlock-demo { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--text-tertiary); }
.lock-icon, .unlock-icon-ok {
  padding: 14px; border-radius: 14px;
  background: var(--bg-secondary); border: 1px solid var(--border);
}
.unlock-arrow { opacity: 0.3; }

.terminal-demo {
  background: #1d1d1f; border-radius: 12px; padding: 18px;
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.8;
  color: #e5e5ea; overflow-x: auto;
}
.term-prompt { color: #64d2ff; }
.term-dim { color: #8e8e93; }
.term-ok { color: #30d158; }

/* ────────────── Split Reveal ────────────── */
.split-reveal { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.section-body { font-size: 1.02rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text-secondary); }
.check-list li svg { flex-shrink: 0; margin-top: 2px; }

.split-image img {
  border-radius: 16px; box-shadow: var(--shadow-lg);
}

/* ────────────── Security ────────────── */
.security-hero { text-align: center; margin-bottom: 44px; }
.security-shield-img {
  max-width: 200px; margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(0,113,227,0.12));
  animation: shieldFloat 6s ease-in-out infinite;
}
@keyframes shieldFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.trust-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  transition: all 0.4s var(--ease-out); box-shadow: var(--shadow-sm);
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.trust-icon { margin-bottom: 12px; }
.trust-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.trust-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }

/* ────────────── App Window ────────────── */
.app-window {
  background: #f5f5f7; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-xl); border: 1px solid var(--border);
}
.app-titlebar { display: flex; gap: 8px; padding: 12px 16px; background: rgba(0,0,0,0.02); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.app-window img { width: 100%; }

.tech-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pill {
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-secondary);
}

/* ────────────── CTA ────────────── */
.section-cta {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #e8f0fe 100%);
  text-align: center;
}
.cta-content { max-width: 560px; margin: 0 auto; }

.cta-icon { margin: 0 auto 20px; border-radius: 16px; box-shadow: var(--shadow-lg); }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px;
}
.cta-subtitle { font-size: 1rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.6; }

.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }

.cta-guarantee { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 500; }

/* ────────────── Footer ────────────── */
.footer { padding: 36px 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: 8px; font-weight: 700; font-size: 0.9rem; }
.footer-brand img { border-radius: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: var(--text-tertiary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: 0.8rem; color: var(--text-tertiary); width: 100%; text-align: center; margin-top: 8px; }

/* ────────────── Animations ────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ────────────── Responsive ────────────── */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; }
  .pain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 100px 20px 40px; min-height: auto; }
  .hero-title { font-size: 2.2rem; }
  .section { padding: 72px 0; }

  .bento-grid, .usecase-grid, .trust-grid { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; grid-template-columns: 1fr; }

  .split-reveal { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse { direction: ltr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .hero-cta, .cta-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot { animation: none; }
  .security-shield-img { animation: none; }
  .fade-in, .fade-in-up { opacity: 1; transform: none; transition: none; }
}
