/* ============================================================
   TwoShot Landing Page — style.css
   ============================================================ */

/* ----------------------------------------------------------
   Design Tokens
   ---------------------------------------------------------- */
:root {
  /* Dark theme (default) */
  --bg: #000000;
  --bg-alt: #0A0A0A;
  --surface: #1C1C1E;
  --surface-elevated: #2C2C2E;
  --primary: #FF3B30;
  --primary-hover: #FF6961;
  --primary-glow: rgba(255, 59, 48, 0.3);
  --text: #FFFFFF;
  --text2: rgba(235, 235, 245, 0.6);
  --text3: rgba(235, 235, 245, 0.38);
  --border: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.05);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1000px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

[data-theme="light"] {
  --bg: #F2F2F7;
  --bg-alt: #E5E5EA;
  --surface: #FFFFFF;
  --surface-elevated: #F5F5F5;
  --primary: #FF3B30;
  --primary-hover: #D63028;
  --primary-glow: rgba(255, 59, 48, 0.15);
  --text: #000000;
  --text2: rgba(60, 60, 67, 0.6);
  --text3: rgba(60, 60, 67, 0.3);
  --border: rgba(0, 0, 0, 0.12);
  --hover: rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ----------------------------------------------------------
   Theme Toggle
   ---------------------------------------------------------- */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--surface-elevated);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

/* Dark mode (default): show moon, hide sun */
.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  animation: float 4s ease-in-out infinite;
  margin: 0 auto 32px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--primary-glow);
}

.hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FF3B30, #FF6961, #FFB3AE, #FF3B30);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: shimmer 4s linear infinite;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text2);
  margin-top: 12px;
  font-weight: 400;
}

.hero-desc {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.7;
}

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

.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.hero-cta a:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.hero-cta .coming-soon {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-cta .coming-soon:hover {
  background: var(--surface-elevated);
}

.hero-badge {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text3);
}

/* ----------------------------------------------------------
   Screenshots Section
   ---------------------------------------------------------- */
.screenshots {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.screenshot-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 16px;
  scrollbar-width: none;
}

.screenshot-gallery::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex: 0 0 75%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 9 / 19.5;
  transition: var(--transition);
}

.screenshot-card:hover {
  transform: scale(1.02);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    padding: 0;
  }

  .screenshot-card {
    flex: none;
  }
}

/* ----------------------------------------------------------
   Features Section
   ---------------------------------------------------------- */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-copy {
  color: var(--text3);
  font-size: 0.85rem;
}

.footer-contact {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text3);
}

.footer-contact a {
  color: var(--primary);
  text-decoration: none;
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* JS-driven fade-up: hidden by default, visible class added by IntersectionObserver */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
}

/* Fallback: if JS fails, ensure content is visible */
@supports not (animation: fadeUp 1s) {
  .fade-up { opacity: 1; transform: none; }
}

/* No-JS fallback via noscript or timeout */
.no-js .fade-up {
  opacity: 1;
  transform: none;
}

.fade-up.visible {
  animation: fadeUp 0.6s ease forwards;
}

/* ----------------------------------------------------------
   Reduced Motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------
   Page-specific (Support & Privacy)
   ---------------------------------------------------------- */
.page {
  padding: 100px 0 60px;
}

.page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text2);
  margin-bottom: 40px;
  font-size: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 32px;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p,
.card li {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card a {
  color: var(--primary);
  text-decoration: none;
}

.card ul {
  padding-left: 20px;
}

.card ul li {
  margin-bottom: 8px;
}

/* FAQ accordion — native <details>/<summary> */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  background: var(--hover);
}

summary::after {
  content: "▸";
  transition: transform var(--transition);
  font-size: 0.9rem;
  color: var(--text3);
}

details[open] summary::after {
  transform: rotate(90deg);
}

details .content {
  padding: 0 20px 16px;
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

th {
  font-weight: 600;
  color: var(--text);
}

td {
  color: var(--text2);
}
