/* ========================================
   Moterra Website Styles
   Dark theme, premium motorcycle aesthetic
   ======================================== */

/* ========================================
   CSS Reset & Base
   ======================================== */

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

html {
  font-size: 18px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 100%);
  background-attachment: fixed;
  color: #e0e0e0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

section h2:not(.roadmap-section h2) {
  border-bottom: 2px solid rgba(209, 122, 74, 0.3);
  padding-bottom: 1rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
  color: #b0b0b0;
  max-width: 65ch;
}

strong {
  color: #e0e0e0;
  font-weight: 600;
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   Navigation
   ======================================== */

nav {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(209, 122, 74, 0.2);
  margin-bottom: 4rem;
  background: linear-gradient(180deg, rgba(209, 122, 74, 0.05) 0%, transparent 100%);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.logo-image {
  height: 32px;
  width: auto;
  display: block;
}

.logo span {
  background: linear-gradient(135deg, #ffffff 0%, #d17a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: #888888;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d17a4a;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #d17a4a;
}

/* ========================================
   Main Content Sections
   ======================================== */

main {
  padding-bottom: 8rem;
}

section {
  margin-bottom: 6rem;
}

section:not(.hero):not(.pillars):not(.roadmap-section) {
  padding: 1.5rem 0;
}

.hero {
  margin-bottom: 8rem;
  padding: 3rem 0;
  border-left: 4px solid #d17a4a;
  padding-left: 2rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  max-width: 20ch;
  background: linear-gradient(135deg, #ffffff 0%, #d17a4a 50%, #d17a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.5rem;
  color: #c0c0c0;
  margin-bottom: 3rem;
  max-width: 50ch;
}

.intro {
  font-size: 1.25rem;
  color: #c0c0c0;
  margin-bottom: 2rem;
  max-width: 60ch;
  line-height: 1.7;
}

/* ========================================
   Accent Colour Usage
   ======================================== */

.accent {
  color: #d17a4a;
}

/* ========================================
   Feature Grid / Pillars
   ======================================== */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.pillar {
  padding: 2rem;
  border: 1px solid rgba(209, 122, 74, 0.3);
  border-left: 4px solid #d17a4a;
  background: linear-gradient(135deg, rgba(209, 122, 74, 0.05) 0%, rgba(15, 15, 15, 0) 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pillar:hover {
  border-color: rgba(209, 122, 74, 0.6);
  background: linear-gradient(135deg, rgba(209, 122, 74, 0.1) 0%, rgba(15, 15, 15, 0) 100%);
  transform: translateY(-4px);
}

.pillar h3 {
  color: #d17a4a;
  margin-bottom: 1rem;
}

.pillar p {
  color: #a0a0a0;
}

/* ========================================
   Roadmap
   ======================================== */

.roadmap-section {
  margin-bottom: 5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(209, 122, 74, 0.08) 0%, rgba(15, 15, 15, 0) 100%);
  border: 1px solid rgba(209, 122, 74, 0.2);
  border-radius: 4px;
}

.roadmap-section h2 {
  margin-bottom: 2rem;
  color: #d17a4a;
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.roadmap-section h2::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #d17a4a;
  border-radius: 50%;
  flex-shrink: 0;
}

.roadmap-section p {
  color: #999999;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.roadmap-section ul {
  list-style: none;
  padding-left: 0;
}

.roadmap-section li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  color: #b0b0b0;
  position: relative;
  border-left: 2px solid rgba(209, 122, 74, 0.4);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.roadmap-section li:hover {
  padding-left: 2rem;
  color: #d0d0d0;
  border-left-color: #d17a4a;
}

.roadmap-section li:before {
  content: '';
  position: absolute;
  left: -6px;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  background-color: #d17a4a;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(209, 122, 74, 0.4);
}

/* ========================================
   Footer
   ======================================== */

footer {
  border-top: 1px solid rgba(209, 122, 74, 0.2);
  padding: 3rem 0;
  margin-top: 8rem;
  background: linear-gradient(180deg, transparent 0%, rgba(209, 122, 74, 0.05) 100%);
  text-align: center;
}

footer .container {
  display: flex;
  justify-content: center;
}

footer p {
  color: #666666;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  margin: 0;
}

footer p:hover {
  color: #888888;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 0 1.5rem;
  }

  nav {
    padding: 2rem 0;
    margin-bottom: 3rem;
  }

  nav .container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .intro {
    font-size: 1.1rem;
  }

  section {
    margin-bottom: 4rem;
  }

  .pillars {
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }
}

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  border: 2px solid #d17a4a;
  background-color: rgba(209, 122, 74, 0.1);
  color: #d17a4a;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.back-to-top:hover {
  background-color: rgba(209, 122, 74, 0.2);
  transform: translateY(-4px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .back-to-top {
    display: flex;
  }
}
