/* Modern & Vivid Color Palette */
:root {
  /* Main Colors - Softer tones */
  --primary: #2563eb;
  /* Vivid Blue */
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  /* Blue to softer Cyan */
  --secondary: #f59e0b;
  /* Amber/Orange for accents */

  /* Backgrounds */
  --bg-main: #fafbfc;
  /* Softer white */
  --bg-secondary: #f4f6f8;
  /* Light warm gray */
  --glass-bg: rgba(255, 255, 255, 0.95);
  /* More solid */

  /* Text */
  --text-main: #1e293b;
  /* Slate 800 */
  --text-muted: #5a6577;
  /* Softer muted text */

  /* Borders & Shadows */
  --border-light: #e8ecf0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 12px -2px rgba(37, 99, 235, 0.08);
  /* Gentler shadow */

  /* Focus Ring */
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.35);

  --font-main: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography Scale (1.25 ratio) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */

  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
}

.usage {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.usage-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 2.5rem;
  padding-left: 1.5rem;
}

.usage-steps li { padding-left: 0.5rem; }
.usage-steps li::marker { color: var(--primary); font-weight: 800; }
.usage-steps h3 { margin-bottom: 0.75rem; }
.usage-steps p { color: var(--text-muted); line-height: var(--leading-relaxed); }

/* Skip Link (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Focus Visible Styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
.btn:focus-visible {
  box-shadow: var(--focus-ring);
}

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

  .device-wrapper {
    animation: none;
  }

  .bookmark-tag {
    transition: none;
  }
}

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

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

/* Interactive Bookmark Tag */
.bookmark-tag {
  position: fixed;
  top: 80px;
  right: 50px;
  z-index: 1001; /* Above navbar */
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

.bookmark-tag:hover {
  transform: translateY(40px);
}

.bookmark-string {
  width: 2px;
  height: 40px;
  background: #94a3b8;
  margin: 0 auto;
}

.bookmark-body {
  width: 45px;
  height: 120px;
  background: #e11d48; /* Classic Bookmark Red */
  border-radius: 0 0 4px 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The V-cut at the bottom */
.bookmark-body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  border-left: 22.5px solid transparent;
  border-right: 22.5px solid transparent;
  border-bottom: 20px solid var(--bg-main); /* Cut matching background */
}

.bookmark-text {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 2px;
  transform: rotate(180deg);
}

/* Paper Grain Effect Overlay - Reduced intensity */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  /* Reduced from 0.08 to 0.03 for subtlety */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
  /* Lighter shadow */
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
  /* Gentler shadow increase */
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f9ff;
}

/* Navbar - Solid instead of glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  /* More solid */
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-back-link:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 10px;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
}

.lang-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right,
      rgba(6, 182, 212, 0.05) 0%,
      transparent 40%),
    radial-gradient(circle at bottom left,
      rgba(37, 99, 235, 0.05) 0%,
      transparent 40%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
  /* Fluid typography: 2rem min → 3.5rem max */
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  /* Tighter tracking for display headings */
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
  /* Fluid: 1rem → 1.25rem */
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-mockup {
  width: 280px;
  height: 560px;
  background: var(--text-main);
  border-radius: 40px;
  border: 8px solid #334155;
  position: relative;
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
  margin: 0 auto;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  /* Performance: Use GPU acceleration */
  will-change: transform;
  backface-visibility: hidden;
}

.app-mockup:hover {
  transform: rotate(0deg) scale(1.01);
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background-color: #fff;
  /* Animated via Lottie */
  /* background-image: url('assets/icon.png'); REMOVED */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  overflow: hidden;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
  /* Fluid: 1.75rem → 2.5rem */
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  /* Performance: Contain layout calculations */
  contain: layout style;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(37, 99, 235, 0.15);
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: var(--bg-main);
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  position: relative;
  padding: 1.5rem 4rem 1.5rem 1.5rem;
  color: var(--text-main);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  color: var(--primary);
  font-size: var(--text-2xl);
  line-height: 1;
  content: "+";
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: -4px;
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: rotate(10deg);
}

.feature-card h3 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
  /* Fluid: 1.25rem → 1.5rem */
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
}

/* Text Page (Privacy, Terms, Contact) */
.text-page-content {
  max-width: 800px;
  margin: 160px auto 100px;
  padding: 0 1.5rem;
}

.text-page-content h1 {
  font-size: clamp(2rem, 4vw + 1rem, 2.75rem);
  /* Fluid: 2rem → 2.75rem */
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.last-update {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 3rem;
  display: block;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.text-page-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
  /* Fluid: 1.25rem → 1.5rem */
  color: var(--text-main);
}

.text-page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-main);
}

.text-page-content p,
.text-page-content li {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.text-page-content ul {
  list-style-position: outside;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Contact Specific */
.contact-card {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
  margin-top: 2rem;
  border: 1px solid var(--border-light);
}

.email-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.email-link:hover {
  color: #fff;
  background: var(--primary);
  transform: scale(1.05);
}

/* Footer */
.footer {
  padding: 5rem 0 3rem;
  background: white;
  border-top: 1px solid var(--border-light);
}

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

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

/* Screenshots - Premium Look */
.screenshots {
  padding: 120px 0;
  background: var(--bg-secondary);
  /* Simplified - no gradient */
  position: relative;
  overflow: hidden;
  /* Performance: Contain this section */
  contain: layout style;
}

/* Background decorative blur */
.screenshots::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.gallery-container {
  overflow-x: auto;
  padding: 4rem 2rem;
  /* More padding for shadows/reflections */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  /* Safe centering strategy: */
  justify-content: flex-start;
  position: relative;
}

/* Scroll buttons for touch and keyboard accessibility */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.gallery-nav.prev {
  left: 0.5rem;
}

.gallery-nav.next {
  right: 0.5rem;
}

/* Show scroll buttons on larger touch devices */
@media (min-width: 768px) and (pointer: coarse) {
  .gallery-nav {
    display: flex;
  }
}

/* Hide on desktop with mouse */
@media (pointer: fine) {
  .gallery-nav {
    display: none;
  }
}

/* Scroll hint for touch users */
.gallery-scroll-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-scroll-hint.hidden {
  opacity: 0;
}

/* Ensure centering on large screens without clipping on small */
@media (min-width: 1400px) {
  .gallery-container {
    justify-content: center;
  }
}

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

.screenshot-gallery {
  display: flex;
  gap: 3rem;
  padding: 0 2rem;
  margin: 0 auto;
  /* Works with justify-content */
  perspective: 1000px;
}

.device-wrapper {
  position: relative;
  flex-shrink: 0;
  border-radius: 40px;
  background: #0f172a;
  padding: 12px;
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  /* Performance: GPU acceleration for animations */
  will-change: transform;
  backface-visibility: hidden;
  /* Animation */
  animation: float-phone 6s ease-in-out infinite;
}

/* Staggered Animation for "Living" feel */
.device-wrapper:nth-child(1) {
  animation-delay: 0s;
}

.device-wrapper:nth-child(2) {
  animation-delay: 1s;
}

.device-wrapper:nth-child(3) {
  animation-delay: 2s;
}

.device-wrapper:nth-child(4) {
  animation-delay: 1.5s;
}

.device-wrapper:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes float-phone {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.device-wrapper:hover {
  animation-play-state: paused;
  transform: translateY(-20px) scale(1.02);
  transition: transform 0.4s ease;
  z-index: 10;
}

.screenshot-img {
  display: block;
  height: 520px;
  width: auto;
  border-radius: 30px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .screenshot-img {
    height: 380px;
    border-radius: 26px;
  }

  .device-wrapper {
    border-radius: 34px;
    padding: 8px;
  }

  .screenshot-gallery {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .screenshot-img {
    height: 350px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text h1 {
    font-size: 2.75rem;
  }

  .hero-text p {
    margin: 0 auto 2rem;
  }

  .cta-group {
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}
/* Mobile: Adjust bookmark position */
@media (max-width: 768px) {
  .bookmark-tag {
    right: 8px;
    top: 92px;
    z-index: 900;
  }

  .cta-group {
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
    width: 100%;
  }

  .cta-group .btn {
    width: 100%;
    max-width: 280px;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  .email-link {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    font-size: 1.1rem;
    text-align: center;
  }
}

/* Extra small screens (320px-480px) */
@media (max-width: 480px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .cta-group .btn {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .features-grid {
    gap: 1.5rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .text-page-content {
    margin: 120px auto 60px;
    padding: 0 1rem;
  }

  .text-page-content h1 {
    font-size: 1.75rem;
  }

  .text-page-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }
}
