:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --text-muted: #666666;
  --border-color: #e5e5e5;
  --accent: #000000;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section {
  padding: 4rem 0 8rem;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

.logo a {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-color);
}

.header-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* Very bouncy spring transition */
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: 1px solid transparent;
  transform: scale(1); /* Ensure base state is explicitly defined */
}

.btn:active {
  /* Depress physically when clicked (much deeper now) */
  transform: scale(0.85);
  /* Fast snap down, slow spring up */
  transition-duration: 0.1s;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: #333333;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

/* Typography */
h1, h2, h3 {
  color: var(--text-color);
}

/* Hero Section */
.hero-layout {
  display: grid;
  grid-template-columns: 4fr 6fr; /* Give more width to the web app video so it's larger */
  gap: 4rem;
  align-items: center;
  padding: 8rem 0 8rem;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.square-stop {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  background-color: var(--accent);
  margin-left: 0.1em;
}

/* Vibe Reel Transition Section */
.vibe-transition {
  padding: 8rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border-color);
}

.vibe-transition h2 {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 500;
}

.vibe-transition .vibe-reel {
  min-height: 6rem;
  margin: 0 auto;
  font-size: 2.25rem;
  color: var(--text-color);
  font-weight: 600;
  max-width: 900px;
  line-height: 1.2;
}

.vibe-text {
  width: 100%;
  text-align: center;
}

.vibe-text span {
  opacity: 0;
  /* The transition delay is applied inline by JS */
}

.vibe-text.active span {
  opacity: 1;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.store-links {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-links a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.store-links a:hover {
  border-color: var(--text-muted);
  color: var(--accent);
}

/* Image Showcase / Media */
.empty-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: #fafafa;
}

.feature-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-media {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: transparent;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.image-cycler-container {
  display: grid;
  width: 100%;
}

.image-cycler-container .cycler-img {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.image-cycler-container .cycler-img.active {
  opacity: 1;
  z-index: 1;
}

@media (max-width: 768px) {
  .text-features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.demo-media:hover {
  transform: scale(1.02);
}

.hero-media {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: transparent;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-media:hover {
  transform: scale(1.02);
}

/* Video Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 100%;
  max-width: 1400px;
}

#modalVideo, .modal-media-element {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  object-fit: contain;
}

/* Value Props / Features */
.value-props {
  padding: 6rem 0 8rem;
  border-top: 1px solid var(--border-color);
}

.value-props h2 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

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

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

.prop-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.prop-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.prop-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.15rem;
  flex: 1;
}

.section h1 {
  font-size: 3rem;
  margin-bottom: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Feature Page Specifics */
.features-page {
  padding: 4rem 0 8rem;
}

.features-page h1 {
  font-size: 3rem;
  margin-bottom: 6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.feature-row {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.feature-text p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Legal Pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0 8rem;
}

.legal-page h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.legal-page .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  font-weight: 700;
}

.legal-page h3 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.warning-box, .summary-box {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--text-color);
  margin: 3rem 0;
}

.warning-box strong, .summary-box strong {
  color: var(--text-color);
  font-weight: 700;
}

/* Footer */
.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive */
/* Tablet & Small Laptops (e.g., Chromebooks) */
@media (max-width: 1200px) {
  .hero-layout, .section, .value-props, .features-page, .vibe-transition {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-layout, .feature-row, .text-features-grid, .props-grid, .gallery-grid {
    gap: 2rem;
  }
  .features-page h1, .section h1, .value-props h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  /* Stack all grids vertically on mobile */
  .hero-layout, .feature-row, .gallery-grid, .props-grid, .showcase {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
  
  .header {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

/* Scroll Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
