/**
 * Main stylesheet for Find Card website
 */

:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #111;
  --muted: #666;
  --primary: #6b4eff;
  --accent: #b69cff;
  --glow: rgba(107, 78, 255, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f14;
    --surface: #151823;
    --text: #f2f2f2;
    --muted: #aaa;
    --primary: #9f8cff;
    --accent: #d1c6ff;
    --glow: rgba(159, 140, 255, 0.6);
  }
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 1.2rem 1.5rem;
}

.narrow {
  max-width: 720px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.25);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.logo img {
  height: 130px;
  width: auto;
  display: block;
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.lang-selector a {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.lang-selector a:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.lang-selector a.active {
  background: var(--primary);
  color: white;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  margin-right: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 0 30px var(--glow);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px var(--glow);
  opacity: 1;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Typography */
h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 25px var(--glow);
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

section.alt {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.05));
}

/* Parallax Sections */
.parallax-section {
  position: relative;
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
  z-index: -1;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.hero-bg,
.section-bg,
.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-overlay,
.section-overlay,
.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 78, 255, 0.8), rgba(182, 156, 255, 0.6));
  z-index: 1;
}

.section-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

/* Special darker overlay for "What is" section */
.alt.parallax-section .section-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

/* Text styling for sections with parallax backgrounds */
section.alt.parallax-section {
  color: rgba(255, 255, 255, 0.95);
}

section.alt.parallax-section h2,
section.alt.parallax-section h3 {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

section.alt.parallax-section p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cta-overlay {
  background: linear-gradient(135deg, rgba(107, 78, 255, 0.9), rgba(182, 156, 255, 0.7));
}

.hero {
  padding: 6rem 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px var(--glow), 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
  display: block;
  line-height: 1.2;
}

.hero-title-main {
  display: block;
}

.hero-title-sub {
  display: block;
  font-size: 0.75em;
  margin-top: 0.3em;
  opacity: 0.95;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.badge-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
  line-height: 0;
}

.badge-link:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
  opacity: 1;
}

.store-badge {
  height: 60px;
  width: auto;
  display: block;
  transition: all 0.3s ease;
}

.store-badge-header {
  height: 40px;
}

@media (max-width: 768px) {
  .store-badge {
    height: 50px;
  }
  
  .store-badge-header {
    height: 35px;
  }
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  z-index: 1;
  animation: pulse 3s ease-in-out infinite;
}

.section-icon {
  text-align: center;
  margin-bottom: 2rem;
}

.section-icon img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(107, 78, 255, 0.3)) brightness(0) invert(1);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Grids */
.steps,
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.6rem;
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Cards */
.card {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 50px rgba(107, 78, 255, 0.3);
}

/* Step Cards */
.step-card {
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(107, 78, 255, 0.4);
  z-index: 1;
}

.step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  padding: 12px;
  background: linear-gradient(135deg, rgba(107, 78, 255, 0.1), rgba(182, 156, 255, 0.1));
  border-radius: 12px;
}

.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(107, 78, 255, 0.3)) brightness(0) invert(1);
}

.step-content {
  font-weight: 500;
  color: var(--text);
  font-size: 1.1rem;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(107, 78, 255, 0.4);
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.feature-card-small {
  text-align: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-small.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon-small {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  padding: 10px;
  background: linear-gradient(135deg, rgba(107, 78, 255, 0.15), rgba(182, 156, 255, 0.15));
  border-radius: 12px;
}

.feature-icon-small img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.feature-content {
  font-weight: 500;
  color: var(--text);
}

.safety-card {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.safety-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
  border-radius: 25px;
}

.safety-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Screenshots */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.screenshot-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.4s;
}

.screenshot-wrapper:nth-child(even) {
  transform: perspective(1000px) rotateY(5deg);
}

.screenshot-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 78, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.screenshot-wrapper:hover .screenshot-glow {
  opacity: 1;
}

/* Footer */
footer {
  background: #0b0c10;
  color: #aaa;
  margin-top: 4rem;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content a {
  color: #aaa;
}

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

.footer-lang {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
}

.footer-lang .lang-selector {
  justify-content: center;
}

.footer-lang .lang-selector a {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.footer-lang .lang-selector a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.footer-lang .lang-selector a.active {
  background: var(--primary);
  color: #fff;
}

/* Animations */
.arcane {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 1s ease, transform 1s ease;
}

.arcane.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.float {
  animation: float 6s ease-in-out infinite;
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 2.5rem;
  color: white;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.cta-buttons .store-badge {
  height: 70px;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .store-badge {
    height: 55px;
  }
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero {
    padding: 4rem 0;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-title-sub {
    font-size: 0.75em;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  
  
  section {
    padding: 3rem 0;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .screenshots {
    grid-template-columns: 1fr;
  }
  
  .screenshot-wrapper {
    transform: none;
  }
  
  .screenshot-wrapper:nth-child(even) {
    transform: none;
  }
}

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

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

