/* Force Coefficient LLC — C Force
   Dark theme, mobile-first */

:root {
  --bg: #1a1a1c;
  --bg-soft: #222224;
  --text: #f5f5f5;
  --text-muted: #a0a0a8;
  --accent: #e8e8ec;
  --radius: 12px;
  --space: clamp(1.5rem, 5vw, 3rem);
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.nav-logo img {
  width: 32px;
  height: 32px;
}

@media (max-width: 480px) {
  .nav-logo-text {
    display: none;
  }
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space) var(--space) calc(var(--space) * 1.5);
  text-align: center;
}

.hero-content {
  animation: fadeUp 0.8s ease-out both;
}

.logo {
  display: block;
  margin: 0 auto 1.25rem;
  width: clamp(120px, 28vw, 160px);
  height: auto;
  animation: logoReveal 1s ease-out 0.2s both;
}

.company-name {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  animation: fadeUp 0.6s ease-out 0.3s both;
}

.abbrev {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.tagline {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 0.6s ease-out 0.5s both;
}

/* Products & Utilities */
.products, .utilities {
  padding: calc(var(--space) * 1.5) 0;
}

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

@media (min-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* App Showcase */
.app-section {
  padding: calc(var(--space) * 2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-section:last-of-type {
  border-bottom: none;
}

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

.app-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.app-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.screenshot-grid {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-grid::-webkit-scrollbar {
  height: 6px;
}

.screenshot-grid::-webkit-scrollbar-track {
  background: var(--bg-soft);
  border-radius: 3px;
}

.screenshot-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.screenshot-placeholder {
  aspect-ratio: 9 / 19.5;
  background: var(--bg-soft);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

.screenshot-img {
  flex: 0 0 auto;
  width: 140px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  scroll-snap-align: start;
}

.screenshot-img-web {
  width: 140px;
  aspect-ratio: 370 / 660;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-badge-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.store-badge-link:hover {
  opacity: 0.9;
}

.store-badge {
  height: 40px;
  width: auto;
  display: block;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

.store-btn:hover {
  opacity: 0.9;
}

.store-btn.secondary {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-buttons .store-btn.secondary {
  height: 40px;
  padding: 0 1rem;
}

/* About */
.about {
  padding: calc(var(--space) * 1.5) 0;
  background: var(--bg-soft);
}

.about .container {
  animation: fadeUp 0.7s ease-out both;
}

.about h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  padding: calc(var(--space) * 1.5) 0 calc(var(--space) * 2);
}

.contact h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp 0.7s ease-out both;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Footer */
.site-footer {
  padding: var(--space) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subtle motion on scroll (reduce for prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: fadeUp 0.8s ease-out both;
  }

  .about .container,
  .contact-form {
    opacity: 0;
    transform: translateY(16px);
  }

  .about .container.visible,
  .contact-form.visible {
    animation: fadeUp 0.6s ease-out forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .logo,
  .company-name,
  .abbrev,
  .tagline {
    animation: none;
  }
}
