:root {
  --color-obsidian: #121212;
  --color-ice-paper: #F4F4F4;
  --color-precision-amber: #D4950A;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--color-obsidian);
  color: var(--color-ice-paper);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll from hero image */
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  /* Inter ExtraBold */
  text-wrap: balance;
  /* Prevent widow words in headers */
}

p {
  text-wrap: pretty;
  /* Prevent widow words in paragraphs */
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: var(--color-obsidian);
  position: relative;
  z-index: 20;
}

.nav-logo img {
  height: 36px;
}

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

.nav-links a {
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-precision-amber);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-ice-paper);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically */
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
  /* Remove gap as image is absolute */
  overflow: visible;
  position: relative;
  /* Context for absolute image */
  min-height: 60vh;
  /* Ensure height on mobile */
}

.hero-content {
  max-width: 100%;
  text-align: left;
  /* Match desktop alignment */
  z-index: 10;
  position: relative;
}

.hero-image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -100px;
  /* Bleed off screen */
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: flex-end;
  z-index: 1;
  /* Behind text */
  opacity: 0.5;
  /* Fade out more on mobile for readability */
  pointer-events: none;
  /* prevent blocking clicks */
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop Hero Layout */
@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding-top: 6rem;
    padding-bottom: 6rem;
    align-items: center;
    position: relative;
    min-height: 70vh;
  }

  .hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
    margin-bottom: 0;
    z-index: 10;
    position: relative;
  }

  .hero-image {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 75%;
    max-width: 1400px;
    z-index: 1;
    opacity: 0.8;
    /* Higher opacity on desktop where layout allows */
    display: flex;
    justify-content: flex-end;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-precision-amber);
  color: var(--color-obsidian);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 8px;
  transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.app-store-button {
  display: inline-block;
  transition: transform 0.2s, filter 0.2s;
}

.app-store-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.app-store-button img {
  height: 45px;
  width: auto;
  display: block;
}

/* Features Grid */
.features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-precision-amber);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* New Feature Card Layout */
.feature-card {
  background-color: var(--color-obsidian);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  /* Vertical stack: Header then Body */
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.07);
  border-color: var(--color-precision-amber);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-precision-amber);
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(212, 149, 10, 0.2);
  padding-bottom: 0.75rem;
}

.feature-card-body {
  display: flex;
  flex-direction: row;
  /* Horizontal split: Icon | Text */
  align-items: flex-start;
  /* Align top? or center? Prompt said "splits the rest... with description". Top align usually safer for variable text length */
  gap: 1.5rem;
  flex: 1;
}

.feature-icon-container {
  flex: 0 0 33%;
  /* 1/3 width */
  display: flex;
  justify-content: center;
  /* Center icon in its third */
  align-items: flex-start;
  /* Align with text start */
  padding-top: 0.25rem;
  /* Visual alignment with text line-height */
}

.feature-icon-img {
  width: 100%;
  max-width: 96px;
  height: auto;
  object-fit: contain;
}

.feature-text-description {
  flex: 1;
  /* Takes remaining space */
}

.feature-text-description p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.5;
  margin: 0;
}

/* Page Container (Privacy / Contact) */
.page-container,
.content-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

.page-container h1,
.content-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-precision-amber);
}

.page-container h2,
.content-container h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-ice-paper);
}

.page-container p,
.content-container p {
  margin-bottom: 1.5rem;
}

.page-container ul,
.page-container ol,
.content-container ul,
.content-container ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--color-ice-paper);
}

.page-container li,
.content-container li {
  margin-bottom: 0.5rem;
}

/* FAQ Styles */
.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.25rem;
  color: var(--color-precision-amber);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.faq-answer {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-ice-paper);
  padding: 0.75rem;
  border-radius: 6px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-precision-amber);
}

/* Screenshots Section */
.screenshots {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.screenshots h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-precision-amber);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.screenshot-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  background-color: #000;
}

.screenshot-item:hover {
  transform: translateY(-10px);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  /* Indicate clickable */
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--color-precision-amber);
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Positioning Section */
.positioning {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-obsidian) 0%, rgba(212, 149, 10, 0.05) 100%);
  position: relative;
  z-index: 5;
}

.positioning-content {
  max-width: 800px;
  margin: 0 auto;
}

.positioning h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-ice-paper);
}

.positioning p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  position: relative;
  z-index: 5;
}

.footer-links {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--color-precision-amber);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .feature-card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-icon-container {
    flex: auto;
    padding-bottom: 1rem;
    padding-right: 0;
  }

  .feature-card h3 {
    text-align: center;
  }
}

/* Personal Problem Section */
/* Personal Problem Section */
.personal-problem {
  padding: 6rem 2rem;
  background-color: var(--color-obsidian);
  /* Match main background */
  text-align: center;
  position: relative;
  z-index: 5;
  /* Removed top/bottom border as it interferes with the 'button on background' look */
}

.personal-problem-content {
  max-width: 900px;
  margin: 0 auto;

  /* Oversized Button Styling */
  background-color: var(--color-obsidian);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  /* Large rounded corners */
  padding: 4rem 3rem;

  /* Sit forward effect */
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    /* Deep shadow for lift */
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  /* Subtle top highlight */

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.personal-problem-content:hover {
  transform: translateY(-2px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
}

.personal-problem h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-precision-amber);
}

.personal-problem p {
  font-size: 1.25rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.problem-cta {
  margin-top: 2rem;
}

.read-story-link {
  color: var(--color-precision-amber);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.read-story-link:hover {
  border-bottom-color: var(--color-precision-amber);
}

/* Active Nav State */
.nav-links a.active {
  color: var(--color-precision-amber);
}