@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", -apple-system, sans-serif;
  
  /* Apple Light Mode */
  --bg-body: #fbfbfd;
  --bg-card: #ffffff;
  --bg-card-secondary: #f5f5f7;
  --bg-nav: rgba(251, 251, 253, 0.8);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-hover: rgba(0, 0, 0, 0.1);
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-muted: #a1a1a6;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-btn-bg: #1d1d1f;
  --apple-btn-text: #ffffff;
  --apple-btn-secondary-bg: #e8e8ed;
  --apple-btn-secondary-text: #1d1d1f;
  --phone-chassis: #e5e5ea;
  --phone-screen-bg: #ffffff;
  --phone-screen-text: #333336;
}

.dark {
  /* Apple Dark Mode (OLED Pure Calm) */
  --bg-body: #000000;
  --bg-card: #121214;
  --bg-card-secondary: #1c1c1e;
  --bg-nav: rgba(0, 0, 0, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #6e6e73;
  --apple-blue: #2997ff;
  --apple-blue-hover: #47a6ff;
  --apple-btn-bg: #f5f5f7;
  --apple-btn-text: #000000;
  --apple-btn-secondary-bg: #2c2c2e;
  --apple-btn-secondary-text: #f5f5f7;
  --phone-chassis: #2c2c2e;
  --phone-screen-bg: #161618;
  --phone-screen-text: #d1d1d6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--apple-font);
  background-color: var(--bg-body);
  color: var(--text-primary);
  transition: background-color 0.5s cubic-bezier(0.28, 0.11, 0.32, 1), color 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
  letter-spacing: -0.018em;
  overflow-x: hidden;
}

/* Apple Floating Header */
.apple-nav {
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* Apple Bento Card with Luxurious Breathability */
.apple-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2.25rem;
  transition: transform 0.4s cubic-bezier(0.28, 0.11, 0.32, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.apple-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.25);
}

.apple-card-blue {
  background: radial-gradient(100% 50% at 50% 0%, rgba(0, 113, 227, 0.04) 0%, var(--bg-card) 60%);
}

.dark .apple-card-blue {
  background: radial-gradient(100% 50% at 50% 0%, rgba(41, 151, 255, 0.07) 0%, var(--bg-card) 60%);
}

.apple-card-purple {
  background: radial-gradient(100% 50% at 50% 0%, rgba(168, 85, 247, 0.04) 0%, var(--bg-card) 60%);
}

.dark .apple-card-purple {
  background: radial-gradient(100% 50% at 50% 0%, rgba(168, 85, 247, 0.07) 0%, var(--bg-card) 60%);
}

/* Apple Pill Button */
.apple-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.apple-pill-btn-primary {
  background-color: var(--apple-blue);
  color: #ffffff;
}

.apple-pill-btn-primary:hover {
  background-color: var(--apple-blue-hover);
  transform: scale(1.02);
}

.apple-pill-btn-secondary {
  background-color: var(--apple-btn-secondary-bg);
  color: var(--apple-btn-secondary-text);
}

.apple-pill-btn-secondary:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* Apple Badge */
.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-card-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Realistic Tactile Phone Simulation Mockup */
.phone-frame {
  position: relative;
  width: 270px;
  height: 410px;
  background: var(--phone-chassis);
  border-radius: 40px;
  padding: 9px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-subtle);
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.dark .phone-frame {
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--phone-screen-bg);
  color: var(--phone-screen-text);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Notch / Dynamic Island */
.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #000000;
  border-radius: 20px;
  z-index: 20;
}

/* Phone physical buttons on side */
.phone-vol-btn {
  position: absolute;
  left: -5px;
  width: 5px;
  background: #8e8e93;
  border-radius: 3px 0 0 3px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.phone-vol-up {
  top: 95px;
  height: 42px;
}

.phone-vol-down {
  top: 147px;
  height: 42px;
}

.phone-vol-btn.active,
.phone-vol-btn:active {
  transform: translateX(3px);
  background: var(--apple-blue);
}

/* Smooth reading text inside simulated phone */
.phone-reading-content {
  overflow-y: hidden;
  padding: 36px 16px 20px;
  font-size: 11px;
  line-height: 1.65;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Minimal subtle scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(134, 134, 139, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(134, 134, 139, 0.5);
}

/* Scanner Screen Inside Simulated Phone */
.phone-scanner-content {
  padding: 36px 14px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.9), transparent);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
  animation: scanSweep 3.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 10;
}

@keyframes scanSweep {
  0% { top: 55px; opacity: 0.3; }
  50% { opacity: 0.95; }
  100% { top: 240px; opacity: 0.3; }
}


/* Apple Minimalist FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.3s ease;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  background: transparent;
  border: none;
  outline: none;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.25s ease;
  user-select: none;
}

.faq-question:hover {
  color: var(--apple-blue);
}

.faq-question * {
  pointer-events: none;
}

.faq-question:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-muted);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), color 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--apple-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  padding-bottom: 0;
  transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.35s ease, 
              padding-bottom 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.5rem;
}



