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

:root {
  /* Design Tokens */
  --font-base: "Inter", system-ui, -apple-system, sans-serif;
  
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7; /* Apple-esque light gray */
  --color-surface: #ffffff;
  
  --color-text-primary: #1d1d1f; /* Almost black */
  --color-text-secondary: #86868b; /* Muted gray */
  --color-text-link: #0066cc;
  
  --color-accent: #007aff; /* System Blue */
  --color-accent-hover: #005bb5;
  
  --color-border: #d2d2d7;
  --color-border-light: #e5e5ea;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --shell-max-width: 1080px;
  --header-height: 56px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Utilities */
.shell {
  max-width: var(--shell-max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.2s; }
.fade-delay-3 { animation-delay: 0.3s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switch */
.lang-switch {
  display: flex;
  background: var(--color-bg-alt);
  border-radius: 6px;
  padding: 2px;
}

.lang-switch button {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  color: var(--color-text-secondary);
}

.lang-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--color-text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 40px;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.button-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 0.85rem;
}

.cta-primary {
  background: var(--color-text-primary);
  color: #fff;
}

.cta-primary:hover {
  background: #333;
  transform: translateY(-1px);
}

.cta-white {
  background: #fff;
  color: var(--color-accent);
}

.cta-white:hover {
  background: #f5f5f7;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  overflow: hidden;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(1.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 800px;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero-sub {
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  margin-bottom: 4rem;
}

.trust-badges {
  display: flex;
  gap: 1rem 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hero Visual / App Window */
.hero-visual {
  width: 100%;
  max-width: 960px;
  perspective: 2000px;
}

.app-window {
  background: #fff;
  border-radius: 12px;
  box-shadow: 
    0 0 0 1px rgba(0,0,0,0.08),
    0 20px 50px rgba(0,0,0,0.12),
    0 50px 100px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Carousel */

/* Info window */
.info-window {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 20;
}
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: auto;
  object-fit: contain;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 16px;
  pointer-events: none;
  z-index: 10;
}

.carousel-nav button {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.2s;
  color: var(--color-text-primary);
  line-height: 1;
}

.carousel-nav button:hover {
  background: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* Sections generic */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

.section-badge {
  display: inline-block;
  background: var(--color-bg-alt);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-sub-large {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 4rem;
}

.step-card {
  text-align: left;
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: #C5615B;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.step-card p {
  color: var(--color-text-secondary);
  margin: 0;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bento-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
}

.card-large {
  grid-row: span 1;
}

.card-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.card-content p {
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 320px;
}

/* Download Section */
.section-downloads {
  background: var(--color-text-primary);
  color: #fff;
  padding: 6rem 0;
}

.download-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.download-content h2 {
  margin-bottom: 1rem;
}

.download-content p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 3rem;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.platform-item {
  background: rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.item-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
}

.platform-info strong {
  display: block;
  font-size: 1rem;
}

.platform-status {
  font-size: 0.75rem;
  color: #4cd964;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-button {
  color: #fff;
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Scanner List Page Specifics */
.page-header {
  background: var(--color-bg-alt);
  padding: 5rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-input-wrapper {
  position: relative;
  color: var(--color-text-secondary);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

input[type="search"] {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

input[type="search"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.badge-warning {
  background: #fff3e0;
  color: #d84315;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

.scanner-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.scanner-item {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.scanner-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.scanner-name {
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.25rem;
}

.scanner-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-accent);
}

.link-arrow:hover {
  color: var(--color-accent-hover);
}

.link-arrow svg {
  transition: transform 0.2s;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* Partnerships Section */
.section-partners {
  background: var(--color-bg-alt);
  text-align: center;
}

.partners-container {
  max-width: 700px;
  margin: 0 auto;
}

.partners-container h2 {
  margin-bottom: 1.5rem;
}

.partners-container p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand strong {
  display: block;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  opacity: 0.8;
}

.footer-legal a {
  text-decoration: underline;
  color: var(--color-text-primary);
}

/* Media Queries */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  
  .footer-brand {
    max-width: 400px;
  }
}

