/* 
   Ride Report - Landing Page Styles
   Theme: Modern Dark with vibrant Orange accents 
*/

:root {
  --primary: #F97316;
  --primary-hover: #FB923C;
  --bg-dark: #121212;
  --bg-darker: #0A0A0A;
  --text-light: #F0F0F0;
  --text-muted: #A0A0A0;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --phone-bezel: #0a0a0a;
  --shadow-glow: rgba(255, 255, 255, 0.4);
  /* Mocniejszy jasny cień dla trybu ciemnego */
  --font-main: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-title: 'Montserrat Alternates', system-ui, -apple-system, sans-serif;
  --nav-bg: rgba(10, 10, 10, 0.4);
  --h1-grad-start: #FFFFFF;
  --h1-grad-end: #AAAAAA;
}

[data-theme="light"] {
  --bg-dark: #F7F9FC;
  --bg-darker: #FFFFFF;
  --text-light: #1A1A1A;
  --text-muted: #555555;
  --glass-bg: rgba(249, 115, 22, 0.05);
  /* very light primary-tinted gray */
  --glass-border: rgba(249, 115, 22, 0.12);
  --phone-bezel: #bbbbbb2f;
  --shadow-glow: rgba(255, 106, 0, 0.2);
  --nav-bg: rgba(255, 255, 255, 0.5);
  --h1-grad-start: #1A1A1A;
  --h1-grad-end: #444444;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  /* More compact modern look */
}

.text-primary-gradient {
  background: linear-gradient(to bottom, #F97316, #FB923C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* display: inline; // default behavior for text flows */
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

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

.section {
  padding: 6rem 0;
}

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

.section-header p,
.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: #FFF;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.6);
}

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

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

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease;
}

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

.logo-link {
  text-decoration: none;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.9rem;
  font-weight: 100;
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-title);
}

.logo img {
  height: 40px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-title);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-light);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.sun-and-moon> :is(.moon, .sun, .sun-beams) {
  transform-origin: center center;
}

.sun-and-moon> :is(.moon, .sun) {
  fill: var(--text-light);
}

.theme-toggle:hover .sun-and-moon> :is(.moon, .sun) {
  fill: var(--primary);
}

.sun-and-moon>.sun-beams {
  stroke: var(--text-light);
  stroke-width: 2px;
}

.theme-toggle:hover .sun-and-moon>.sun-beams {
  stroke: var(--primary);
}

/* Animations */
.sun-and-moon>.sun {
  transition: transform 0.5s cubic-bezier(.5, 1.25, .75, 1.25);
}

.sun-and-moon>.sun-beams {
  transition: transform 0.5s cubic-bezier(.5, 1.5, .75, 1.25), opacity 0.5s ease;
}

.sun-and-moon .moon>circle {
  transition: transform 0.25s cubic-bezier(0, 0, 0, 1);
}

/* Default State: DARK -> Show SUN (to signal switching to light) */
.sun-and-moon>.sun {
  transform: scale(1);
}

.sun-and-moon>.sun-beams {
  opacity: 1;
}

.sun-and-moon .moon>circle {
  transform: translateX(0);
  /* Hide moon mask */
}

/* Light State: LIGHT -> Show MOON (to signal switching to dark) */
[data-theme="light"] .sun-and-moon>.sun {
  transform: scale(1.7);
}

[data-theme="light"] .sun-and-moon>.sun-beams {
  opacity: 0;
}

[data-theme="light"] .sun-and-moon>.moon>circle {
  transform: translateX(-7px);
  /* Moon mask active */
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 4rem;
  /* offset for fixed nav */
  background: radial-gradient(circle at 100% 0%, rgba(255, 106, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255, 106, 0, 0.1) 0%, transparent 50%);
}

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

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.0;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.downloads {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-phone-hover {
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-phone-hover:hover {
  transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  display: inline-block;
  border: 5.6px solid #374151;
  border-radius: 40px;
  background-color: #000000;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px, 0 0 80px var(--shadow-glow);
  max-width: 250px;
  padding: 4px;
}

.phone-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.slideshow-container {
  position: relative;
}

.slideshow-placeholder {
  visibility: hidden;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.slideshow-image {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(100% - 8px) !important;
  height: auto;
  border-radius: 34px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.slideshow-image.active {
  opacity: 1;
  z-index: 2;
}


/* Theme-based Mockup Image toggle */
.phone-mockup .img-light {
  display: none;
}

.phone-mockup .img-dark {
  display: block;
}

[data-theme="light"] .phone-mockup .img-light {
  display: block;
}

[data-theme="light"] .phone-mockup .img-dark {
  display: none;
}

/* Features Infinity Scroll */
.features-section {
  background-color: var(--bg-darker);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  text-align: center;
  transition: all 0.15s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.feature-card:hover {
  transform: translateY(-12px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15), 0 0 25px rgba(249, 115, 22, 0.1);
}

.feature-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: all 0.15s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), #FB923C);
  color: #FFFFFF;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
  transform: scale(1.1);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Showcase Area */
.showcase {
  position: relative;
}

.showcase-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 6rem 0;
}

.showcase-row.reverse {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 1;
}

.showcase-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.showcase-text ul {
  list-style-type: none;
  margin-top: 1.5rem;
}

.showcase-text ul li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.showcase-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.showcase-image {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
}

/* How It Works Section */
.how-it-works-section {
  background-color: var(--bg-darker);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.step-card {
  position: relative;
  padding: 2rem;
}

.step-card:nth-child(2) {
  transition-delay: 0.15s;
}

.step-card:nth-child(3) {
  transition-delay: 0.3s;
}

.step-number {
  display: inline-flex;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #FB923C);
  color: #FFF;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
}

.step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.step-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Download Section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  padding: 6rem 0;
  color: #FFFFFF;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-content h2 {
  font-size: 3.5rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-badges img {
  height: 64px;
  transition: transform 0.3s ease;
}

.cta-badges img:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #050505;
  /* Permanent black background */
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Highlights Section */
.highlights-section {
  background-color: var(--bg-dark);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: var(--bg-darker);
  padding: 1.1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: linear-gradient(to right, var(--bg-darker), rgba(249, 115, 22, 0.08));
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
}

.highlight-icon {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #FB923C);
  color: #FFFFFF;
}

.highlight-card span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

/* Triple Mockup Showcase */
.triple-mockup {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0 6rem 0;
  perspective: 2000px;
}

.triple-mockup .phone-mockup {
  position: absolute;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(255, 255, 255, 0.05);
  max-width: 200px;
  /* Reduced from 250px */
}

.triple-mockup .phone-mockup:nth-child(1) {
  transform: rotate(-12deg) translateX(-240px) translateZ(-100px);
  z-index: 1;
}

.triple-mockup .phone-mockup:nth-child(2) {
  transform: rotate(4deg) scale(1.1) translateZ(50px);
  z-index: 10;
}

.triple-mockup .phone-mockup:nth-child(3) {
  transform: rotate(10deg) translateX(240px) translateZ(-100px);
  z-index: 1;
}

/* Fix hover jitter by maintaining individual translateX */
.triple-mockup .phone-mockup:nth-child(1):hover {
  z-index: 20;
  transform: scale(1.15) rotate(0deg) translateZ(150px) translateX(-240px) translateY(-20px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 120px var(--primary);
}

.triple-mockup .phone-mockup:nth-child(2):hover {
  z-index: 20;
  transform: scale(1.2) rotate(0deg) translateZ(150px) translateY(-20px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 120px var(--primary);
}

.triple-mockup .phone-mockup:nth-child(3):hover {
  z-index: 20;
  transform: scale(1.15) rotate(0deg) translateZ(150px) translateX(240px) translateY(-20px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 120px var(--primary);
}

/* Responsive */
@media (max-width: 900px) {

  .hero-content,
  .showcase-row,
  .showcase-row.reverse,
  .triple-mockup,
  .steps-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: left;
  }

  .triple-mockup {
    height: auto;
    margin: 4rem 0;
    gap: 3rem;
  }

  .triple-mockup .phone-mockup {
    position: relative;
    transform: rotate(-3deg) !important;
    margin: 0 auto;
  }

  .triple-mockup .phone-mockup:nth-child(even) {
    transform: rotate(3deg) !important;
  }

  /* Mobile Typography */
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2.0rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1.05rem;
  }

  nav {
    padding: 0.8rem 0;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 6rem;
    min-height: auto;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.1;
  }

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

  .btn {
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .showcase-text h3 {
    font-size: 1.7rem;
  }

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

  .highlight-card span {
    font-size: 0.95rem;
  }

  .badge {
    font-size: 0.75rem;
  }

  .cta-content h2 {
    font-size: 2.2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .showcase-text ul li {
    text-align: left;
  }

  .downloads {
    justify-content: center;
  }

  .nav-links {
    gap: 1rem; /* slightly tighter on mobile */
  }

  .nav-links a {
    display: none;
    /* hide text links on mobile */
  }
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}
