/* Kinetiqo Promo Website Stylesheet - kinetiqo.org */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Italiana&family=Outfit:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-space: #090A0E;
  --bg-card: rgba(16, 18, 24, 0.8);
  --bg-card-hover: rgba(24, 27, 36, 0.95);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(252, 76, 2, 0.4);
  
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  
  /* Primary Unified Brand Accent: Kinetiqo / Strava Ember */
  --orange: #FC4C02;
  --orange-light: #FF6A26;
  --orange-glow: rgba(252, 76, 2, 0.25);
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-brand: 'Italiana', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-space);
  font-family: var(--font-sans);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
}

/* Prevent Flexbox and Grid items from blowing out mobile width */
body *, main *, header *, footer *, section *, article *, div *, form * {
  min-width: 0;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Background Canvas Layer */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: auto;
}

/* Header & Mobile Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
  background: rgba(9, 10, 14, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(252, 76, 2, 0.3));
}

.brand-text {
  font-family: var(--font-brand);
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #FFF;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 101;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  margin-top: 0.75rem;
  background: rgba(14, 16, 22, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  list-style: none;
  z-index: 102;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
  background: rgba(252, 76, 2, 0.1);
  color: #FFFFFF;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-github {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #FFF;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Primary & Secondary Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--orange);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--orange-glow);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(252, 76, 2, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7.5rem 1.5rem 3.5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  width: 100%;
  z-index: 2;
}

.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(252, 76, 2, 0.1);
  border: 1px solid rgba(252, 76, 2, 0.25);
  border-radius: 999px;
  color: var(--orange-light);
  font-size: clamp(0.725rem, 2.8vw, 0.85rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 100%;
  word-break: break-word;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.text-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #D1D5DB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--orange-light);
}

.hero-subtitle {
  font-size: clamp(0.925rem, 3.5vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  width: 100%;
}

/* Terminal Card */
.terminal-card {
  background: rgba(12, 14, 19, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  max-width: 660px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

pre {
  white-space: pre;
  font-family: var(--font-mono);
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre code {
  font-family: inherit;
  display: block;
  max-width: 100%;
}

.terminal-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #E2E8F0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.terminal-body.single-line {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.terminal-body.single-line code {
  white-space: nowrap;
  overflow-x: auto;
  min-width: 0;
  flex: 1;
  display: block;
  -webkit-overflow-scrolling: touch;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy:hover {
  background: var(--orange);
  color: #FFF;
  border-color: var(--orange);
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.section-desc {
  font-size: clamp(0.925rem, 3vw, 1.05rem);
  color: var(--text-muted);
}

/* Feature Grid Matrix */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(252, 76, 2, 0.1);
  border: 1px solid rgba(252, 76, 2, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-light);
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

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

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #FFF;
}

.feature-card-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--orange-light);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.2s ease;
}

.feature-card:hover .feature-link {
  gap: 0.65rem;
}

/* CLI Showcase Spotlight Box */
.cli-box {
  background: rgba(14, 16, 22, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 2.25rem;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.cli-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #FFF;
}

.cli-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
  width: 100%;
}

.showcase-grid.reverse {
  direction: rtl;
}
.showcase-grid.reverse > * {
  direction: ltr;
}

.showcase-text {
  max-width: 540px;
  width: 100%;
}

.showcase-tag {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
  word-break: break-word;
}

.showcase-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.feature-list li svg {
  color: var(--orange-light);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.showcase-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.showcase-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  width: 100%;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
}

.video-card:hover {
  border-color: var(--border-glass-glow);
  transform: translateY(-4px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111319;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.play-btn {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(252, 76, 2, 0.9);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.video-card:hover .play-btn {
  transform: scale(1.1);
  background: var(--orange);
}

.video-info {
  padding: 1.25rem;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.video-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Footer */
footer {
  background: rgba(6, 7, 10, 0.96);
  border-top: 1px solid var(--border-glass);
  padding: 3.5rem 1.5rem 2rem 1.5rem;
  margin-top: 4rem;
  width: 100%;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

/* Mobile & Responsive Media Queries */
@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .showcase-grid.reverse {
    direction: ltr;
  }
  .cli-box {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1.25rem;
  }

  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.4rem 0 0 0.85rem;
  }

  .hero {
    padding-top: 5.5rem;
    padding-bottom: 2.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 1rem;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card {
    padding: 1.35rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .terminal-body {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.6rem 0.85rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand img {
    height: 28px;
  }

  .brand-text {
    font-size: 1.35rem;
  }

  .btn-github {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .hero {
    padding-top: 4.75rem;
    padding-bottom: 1.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .badge-glow {
    font-size: 0.725rem;
    padding: 0.3rem 0.65rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
  }

  .hero-title {
    font-size: 1.65rem;
    margin-bottom: 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.35rem;
  }

  .terminal-card {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
  }

  .terminal-body.single-line {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .terminal-body.single-line code {
    font-size: 0.725rem;
  }

  .btn-copy {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .section {
    padding: 2.25rem 0.75rem;
  }

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

  .section-title {
    font-size: 1.4rem;
  }

  .section-desc {
    font-size: 0.9rem;
  }

  .cli-box {
    padding: 1.25rem 0.85rem;
    margin-top: 1.75rem;
    border-radius: 12px;
  }

  .showcase-grid {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .showcase-title {
    font-size: 1.3rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  footer {
    padding: 2.25rem 0.75rem 1.25rem 0.75rem;
    margin-top: 2.5rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.45rem;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .btn-github span {
    display: none;
  }
}
