@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/Outfit.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Trade Gothic';
  src: url('../assets/fonts/TradeGothic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Trade Gothic', 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --primary-color: #FF0000;
  --secondary-color: #CC0000;
  --accent-color: #FF4444;
  --color-two: #FF2D55;
  --contrast-color: #1c1e21;
  --button-color: #FF0000;
  --bg-primary: #F2F2F2;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #E8E8E8;
  --text-primary: #1c1e21;
  --text-secondary: #4a4a4a;
  --text-muted: #6c6c6c;
  --border-color: rgba(28, 30, 33, 0.1);

  /* Gradients */
  --hero-gradient: linear-gradient(360deg, #FF0000, #FF4444);
  --button-gradient: linear-gradient(360deg, #FF0000, #CC0000);
}

html, body {
  height: 100%;
  margin: 0;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  min-height: calc(100vh - 300px);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
}

/* Lead text */
.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  color: var(--button-color);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: center 100%;
  background-origin: content-box;
  transition: background-size 0.05s ease;
}

a:hover {
  background-size: 100% 2px;
}

.app-store-badge,
a[aria-label],
a.icon-link {
  background-image: none;
}

a.icon-link:hover {
  background-size: 0% 2px;
}

.text-primary { color: var(--primary-color) !important; }

.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.language-selector .btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.language-selector .dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px;
}

.language-selector .dropdown-item {
  padding: 5px 10px;
  font-weight: 400;
  transition: all 0.2s ease;
  border-radius: 12px;
  margin-bottom: 4px;
  text-decoration: none !important;
  background-image: none;
}

.language-selector .dropdown-item:hover {
  background: #E5E5E5;
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

.language-selector .dropdown-item:active,
.language-selector .dropdown-item:focus {
  background: #E5E5E5;
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

.hero {
  text-align: center;
  padding: 72px 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.app-store-badge img { height: clamp(72px, 10vw, 100px); width: auto; }

.cta-text {
  text-align: center;
}

.cta-tagline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.cta-description {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 200;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.section {
  padding: 56px 0;
}

.section-gap {
  padding: 40px 0 48px;
}

.section-gap-lg {
  padding: 56px 0 64px;
}

/* Screenshot Gallery - Landscape macOS */
.gallery-section {
  position: relative;
  width: 100%;
}

.gallery-scroll-wrapper {
  position: relative;
}

.gallery-scroll-wrapper::before,
.gallery-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: -120px;
  bottom: -120px;
  width: 80px;
  z-index: 2;
  pointer-events: none;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

.gallery-scroll-wrapper::before {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, black, transparent);
  mask-image: linear-gradient(to right, black, transparent);
}

.gallery-scroll-wrapper::after {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, black, transparent);
  mask-image: linear-gradient(to left, black, transparent);
}

.scroll-container {
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 12px;
  background: transparent;
  scrollbar-width: none;
}

.gridscroll {
  display: inline-flex;
  gap: 16px;
  padding-left: max(20px, calc((100vw - 1280px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1280px) / 2 + 20px));
}

.gridscroll picture {
  display: block;
  height: 380px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.gridscroll img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.24s ease;
}

.gridscroll picture:hover img {
  transform: scale(1.012);
}

/* Hide native scrollbar */
.scroll-container::-webkit-scrollbar {
  display: none;
}

/* Custom Scrollbar */
.custom-scrollbar-wrap {
  display: flex;
  align-items: center;
  height: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  cursor: pointer;
}

.custom-scrollbar-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  transition: height 0.3s ease;
}

.gallery-section:hover .custom-scrollbar-track {
  height: 12px;
}

.custom-scrollbar-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  cursor: grab;
}

.custom-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.custom-scrollbar-thumb.dragging {
  background: rgba(0, 0, 0, 0.4);
  cursor: grabbing;
}

.card-clean {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-card .feature-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Timeline Steps */
.steps-timeline {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

.steps-timeline::before,
.steps-timeline::after {
  content: '';
  position: absolute;
  left: calc(20px + 22px - 3px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(28, 30, 33, 0.3);
  z-index: 1;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.steps-timeline::before { top: -3px; }
.steps-timeline::after { bottom: -3px; }

.steps-timeline.timeline-started::before {
  background: rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.25);
}

.steps-timeline.timeline-complete::after {
  background: rgba(204, 0, 0, 0.5);
  box-shadow: 0 0 6px rgba(204, 0, 0, 0.25);
}

.timeline-track {
  position: absolute;
  left: calc(20px + 22px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(28, 30, 33, 0.25) 0px,
    rgba(28, 30, 33, 0.25) 6px,
    transparent 6px,
    transparent 12px
  );
  border-radius: 1px;
}

.timeline-track::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--track-progress, 0%);
  background: var(--hero-gradient);
  border-radius: 1px;
  opacity: 0.5;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.timeline-step.visible {
  transform: translateY(0);
  opacity: 1;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hero-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.step-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 24px;
  flex: 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.step-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Info Cards Row */
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.info-card p, .info-card ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card ul li {
  padding: 4px 0;
  color: var(--text-secondary);
}

.info-card .info-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.info-card .info-value {
  color: var(--text-primary);
  font-weight: 500;
}

.info-card .info-value.info-language-links a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  background-image: none;
}

.info-card .info-value.info-language-links a:hover {
  color: var(--button-color);
  background-size: 0 0;
}

.info-card.contact-card {
  text-align: left;
  position: relative;
  padding: 28px;
  border-radius: 20px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.contact-content-row {
  position: relative;
  display: flex;
  align-items: stretch;
}

.contact-copy {
  min-width: 0;
  flex: 0 0 50%;
  width: 50%;
  padding-right: 22px;
}

.contact-qr-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.contact-qr {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: right top;
  transform: scale(1.2);
  transform-origin: right top;
  border-radius: 0;
  border: 0;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .info-card.contact-card { padding: 20px; }
}

.support-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
}

.support-intro .text-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* FAQ Section */
.faq-section {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 40px;
  margin: 20px 0;
}

.faq-heading {
  color: var(--text-primary);
  font-size: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.btn-primary, .contact-btn {
  background: var(--button-gradient);
  color: #fff !important;
  border-radius: 50px;
  padding: 10px 24px;
  border: 1px solid transparent;
  display: inline-block;
  font-weight: 700;
  transition: opacity 0.3s ease;
  text-decoration: none !important;
}

.btn-primary:hover, .contact-btn:hover {
  opacity: 0.9;
  color: #fff !important;
  text-decoration: none !important;
}

.btn-outline-primary {
  background: transparent !important;
  border: 1px solid var(--contrast-color) !important;
  color: var(--contrast-color) !important;
  border-radius: 50px;
  padding: 10px 24px;
  display: inline-block;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none !important;
}

.btn-outline-primary:hover {
  background: var(--contrast-color) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Footer */
footer {
  flex-shrink: 0;
  margin-top: 55px;
  border-top: 1px solid #DEE2E6;
  font-size: 14px !important;
  line-height: 20px;
  position: relative;
  width: auto;
  height: 300px;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/footerBackground.png");
  background-image: -webkit-image-set(
    url("../assets/images/footerBackground.webp") type("image/webp"),
    url("../assets/images/footerBackground.png") type("image/png")
  );
  background-image: image-set(
    url("../assets/images/footerBackground.webp") type("image/webp"),
    url("../assets/images/footerBackground.png") type("image/png")
  );
  background-size: cover;
  background-position: bottom center;
  filter: hue-rotate(160deg);
  z-index: 0;
}

footer > * {
  position: relative;
  z-index: 1;
}

footer .text-muted { color: #6c757d !important; }

footer .nav-link {
  transition: background-size 0.05s ease;
}

.footerIcon {
  width: 55px;
  height: 55px;
  margin: 0 10px 0 20px;
  border-radius: 22.37%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.hero-logo-section {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-logo-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-app-icon {
  width: 156px;
  height: 156px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
  border-radius: 22.37%;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-app-icon:hover {
  transform: scale(1.05) rotate(5deg);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.125rem);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.75rem;
}

.responsive {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

ul li, ol li {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 1200px) {
  .gridscroll picture { height: 320px; }
  .gridscroll img { height: 320px; }
}

@media (max-width: 768px) {
  .hero { padding-top: 48px; }
  h1 { font-size: 2rem; }
  .lead { font-size: 1.1rem; }
  .hero .d-flex { justify-content: center !important; }

  .gridscroll picture { height: 260px; }
  .gridscroll img { height: 260px; }

  .gallery-scroll-wrapper::before,
  .gallery-scroll-wrapper::after { width: 24px; }

  .gallery-section.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
  }

  .custom-scrollbar-wrap { margin-top: 4px; }
  .custom-scrollbar-track { height: 8px; background: rgba(0, 0, 0, 0.1); }
  .custom-scrollbar-thumb { background: rgba(0, 0, 0, 0.3); }
  .gallery-section:hover .custom-scrollbar-track { height: 8px; }

  footer {
    height: auto;
    padding-bottom: 24px;
  }

  footer .d-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  footer .d-flex > p { order: 1; }
  footer .d-flex > a { order: 0; }
  footer .d-flex > ul { order: 2; justify-content: center !important; flex-wrap: wrap; }

  .feature-card { padding: 20px; }
  .step-content { padding: 14px 18px; }
  .info-card { padding: 20px; }
  .support-section { padding: 24px 16px; }

  .btn-outline-primary,
  .contact-btn { padding: 10px 18px; font-size: 0.9rem; }

  .hero-logo-section { padding: 0; }
  .hero-app-icon { width: 130px; height: 130px; }
}

@media (max-width: 480px) {
  .gridscroll picture { height: 220px; }
  .gridscroll img { height: 220px; }

  .language-selector {
    top: max(12px, env(safe-area-inset-top, 12px));
    right: 12px;
  }

  .language-selector .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 10px;
  }
}
