:root {
  --brand: #0b4ea2;
  --accent: #1ea5ff;
  --bg: #f7f9fc;
  --text: #0f172a;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 14px 30px rgba(15,23,42,0.08);
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout helpers */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  position: absolute;
  background: linear-gradient(to bottom,
    #000000 0%,    /* Pure black top */
    #000000 40%,   /* Hold black for header feel */
    #2a2a2a 70%,   /* Subtle mid-transition (deep charcoal) */
    #1a1a1a 100%   /* Sophisticated dark gray bottom */
   );
   top: 0;
   width: 100%;
   height: 80px;
   z-index: 10;
  
}
/* NAVIGATION */

.nav {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}
.nav a:hover { opacity: 0.85; }

/* Dark-on-light variant for content pages */
.nav-dark {
  position: static;
  justify-content: flex-end;
  padding: 20px 20px 0;
  color: var(--text);
}
.nav-dark a { color: var(--text); }

/* LOGO */

.logo-container {
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 10;
}
.site-logo {
  height: 60px;
  width: auto;
}

/* HERO (landing) */

header.hero {
  position: relative;
  height: 100vh;
  background: url('../Images/VehicleDashboardWithCarPlayPhoneLandscape.jpg') center center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
  text-align: center;
  color: white;
}

/*
header.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
*/

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 20px 28px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hero-content h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0 0 10px 0;    /* top: 0, right: 0, bottom: 10px, left: 0 */
  /*margin-bottom: 10px;*/
  line-height: 1.2;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.05rem;
  color: #e5e7eb;
  line-height: 1.55;
  margin-bottom: 18px;
}

.scroll-cue {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  /*opacity: 0.9;*/
  animation: scrollBounce 1.8s infinite ease-in-out;
  cursor: pointer;
}

.scroll-cue svg {
  width: 100%;
  height: 100%;
  /*fill: #448aff;*/
  stroke: white;
  stroke-width: 0.5;
  fill: #1ea5ff;
  /*fill: white;*/
}

@keyframes scrollBounce {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  50%  { transform: translate(-50%, 8px); opacity: 1; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}
/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(30,165,255,.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(30,165,255,.35);
}


.btn{
  display:inline-block;
  padding:9px 16px;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  border:none;
  cursor:pointer;
  transition:transform .05s ease, box-shadow .05s ease, background .15s ease;
}



.btn-outline{
  background:#fff;
  color:var(--brand);
  border:1px solid #1ea5ff;
}


.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(30,165,255,.35);
}

.hero-mobile-cta {
  display: none;
}


/* BASICS SECTION */

section.basics {
  padding: 10px 20px;
  max-width: 1120px;
  margin: 0 auto;
}

section.basics h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--brand);
  margin-bottom: 10px;
  text-align: center;
}

section.basics p.section-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1rem;
}

/* Grid + cards */

.grid {
  display: grid;
  gap: 20px;
}
@media(min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: left;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA LINK */

.why-link-button {
  display:block;
  margin: 30px auto 0; 
  text-align: center;
  width: max-content;  
  padding:9px 16px;
  font-weight: 600;
  border-radius:999px;
  font-size:.95rem;
  border:none;
  cursor:pointer;
  color:#fff;
  background:var(--accent);
  box-shadow:0 12px 24px rgba(30,165,255,.3);
  transition:transform .05s ease, box-shadow .05s ease, background .15s ease;
}

.why-link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(30,165,255,.35);
}

.why-link-button a {
  color: inherit;
  text-decoration: none;
}



/* SCREENSHOT FEATURE SECTION */

section.screenshots {
  padding: 70px 0;
}

.screenshots-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--brand);
  margin-bottom: 10px;
}

.screenshots-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 1rem;
}

.screenshot-grid {
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 10px;
}




@media (min-width: 900px) {
  .screenshot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.screenshot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.screenshot-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.screenshot-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.screenshot-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* REVIEWS */

.reviews {
  background-color: #f9f9f9;
  padding: 40px 20px;
}

.reviews h2 {
  text-align: center;
  color: var(--brand);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.review {
  margin: 20px auto;
  max-width: 800px;
  font-style: italic;
  text-align: center;
  color: var(--text);
}

.review .stars {
  color: #ffd700;
  font-size: 1.2em;
}

/* DOWNLOAD SECTION */

section.download {
  padding: 70px 20px;
  background: var(--bg);
  text-align: center;
}

section.download h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--brand);
  margin-bottom: 20px;
}

.download-intro {
  max-width: 700px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 1rem;
}

.download-button {
  margin-top: 20px;
}

/* PAGE HEADER (Why page) */

.page-header {
  background: linear-gradient(to bottom, #ffffff, #f5f7fb);
  padding-bottom: 20px;
  position: relative;
}

.page-header .logo-container {
  position: static;
  padding: 20px 20px 0;
}

.page-hero {
  max-width: 760px;
  margin: 40px auto 20px;
  padding: 0 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--brand);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Frustrations page sections */

.frustrations-intro {
  max-width: 760px;
  margin: 40px auto 10px;
  padding: 0 20px;
}

.frustrations-intro h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--brand);
  margin-bottom: 12px;
}

.frustrations-intro p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.frustrations-list {
  padding: 40px 20px 20px;
}

.frustration-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .frustration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.frustration-card {
  text-align: left;
}

.frustration-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.frustration-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.frustrations-cta {
  max-width: 760px;
  margin: 40px auto 40px;
  text-align: center;
  padding: 0 20px;
}

.frustrations-cta h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--brand);
  margin-bottom: 12px;
}

.frustrations-cta p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.frustrations-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* FOOTER */

footer {
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  color: var(--brand);
}


/* MOBILE NAV TOGGLE (hamburger) */
.nav-toggle {
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 20;
  display: none; /* shown only on mobile */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
}




/* Responsive tweaks */

@media (max-width: 768px) {
  header.hero {
    height: 85vh;
    padding-top: 65px;
    background: url('../Images/VehicleDashboardWithCarPlayPhonePortrait.jpg') center center / cover no-repeat;
    align-items: flex-start;
  }
  
  .scroll-cue {
    display: none;
  }

/* Show mobile CTA */
  .hero-mobile-cta {
    display: block;
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: max-content;
    z-index: 10;
  }



  /* Optional: hide the original button inside hero-content */
  .hero-content .btn-primary {
    display: none;
  }

  .navbar {
    height: 70px;
  }

  .nav {
    font-size: 0.85rem;
    gap: 12px;
  }
/* MOBILE NAV BEHAVIOR */

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    z-index: 15;
    display: none; /* hidden by default */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    background: rgba(15,23,42,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    color: white;
    padding: 8px 0;
    font-size: 1rem;
  }


  .site-logo {
    height: 40px;
  }
}