/* ============================================================
   Simple-Solutions.us — Design System
   Colors: Black/White base, Red & Blue accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

/* --- Custom Properties --- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-elevated: #111111;
  --color-bg-card: #151515;
  --color-surface: #1a1a1a;
  --color-white: #f0f0f0;
  --color-white-soft: #cccccc;
  --color-muted: #888888;
  --color-red: #e63946;
  --color-red-glow: rgba(230, 57, 70, 0.35);
  --color-blue: #1d4ed8;
  --color-blue-glow: rgba(29, 78, 216, 0.35);
  --color-border: #222222;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

.text-red { color: var(--color-red); }
.text-blue { color: var(--color-blue); }
.text-muted { color: var(--color-muted); }
.text-bold { font-weight: 700; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

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

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.nav-brand .dot {
  color: var(--color-red);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white-soft);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width var(--transition);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-red-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-blue-glow) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-white-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.est-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.est-badge .line {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-red), var(--color-blue));
}

/* --- Animated Divider --- */
.divider-animated {
  width: 100%;
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.divider-line {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-red), var(--color-white) 50%, var(--color-blue));
  border-radius: 2px;
  position: relative;
}

.divider-line.animate {
  animation: drawLine 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes drawLine {
  0% { width: 0; opacity: 0; }
  10% { opacity: 1; }
  100% { width: 85%; opacity: 1; }
}

.divider-line::before,
.divider-line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.divider-line::before {
  left: -4px;
  background: var(--color-red);
  box-shadow: 0 0 12px var(--color-red-glow);
}

.divider-line::after {
  right: -4px;
  background: var(--color-blue);
  box-shadow: 0 0 12px var(--color-blue-glow);
}

/* --- Projects Section --- */
.projects {
  padding: 40px 0 120px;
}

.projects-heading {
  text-align: center;
  margin-bottom: 60px;
}

.projects-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.projects-heading p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* --- Project Card --- */
.project-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-red);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--color-red-glow);
}

.project-card:nth-child(2):hover {
  border-color: var(--color-blue);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--color-blue-glow);
}

.project-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--color-surface);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card-image img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 28px 28px 32px;
}

.project-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.project-card:first-child .project-card-body h3 {
  color: var(--color-white);
}

.project-card:nth-child(2) .project-card-body h3 {
  color: var(--color-white);
}

.project-card-body p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-red);
  transition: gap var(--transition);
}

.project-card:nth-child(2) .project-card-link {
  color: var(--color-blue);
}

.project-card:hover .project-card-link {
  gap: 10px;
}

.project-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.project-card:hover .project-card-link svg {
  transform: translateX(2px);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.4s; }

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-copy .est {
  color: var(--color-white-soft);
}

/* --- Page Header (for sub-pages) --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* --- Content Section (privacy, etc.) --- */
.content-section {
  padding: 0 0 100px;
}

.content-section .content-body {
  max-width: 720px;
  margin: 0 auto;
}

.content-body h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-white);
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body p {
  color: var(--color-white-soft);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.content-body ul {
  color: var(--color-white-soft);
  margin-bottom: 16px;
  padding-left: 24px;
  font-size: 0.95rem;
}

.content-body li {
  margin-bottom: 8px;
}

.content-body strong {
  color: var(--color-white);
}

/* --- Contact Form --- */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 100px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--color-white);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px var(--color-blue-glow);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--color-red), var(--color-blue));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.3), 0 8px 30px rgba(29, 78, 216, 0.3);
}

.contact-info {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.contact-info p {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.contact-info a {
  color: var(--color-blue);
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--color-red);
}

/* --- Product Page --- */
.product-hero {
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* App Store badge below mockup, centered */
.hero-badge-below {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}


.product-hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-red-glow) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.product-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-blue-glow) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.product-hero-center {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.product-hero-center h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: 20px;
  line-height: 1.05;
}

.product-hero-center .tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white-soft);
}

.price-badge .price {
  color: var(--color-red);
  font-weight: 700;
  font-size: 1.05rem;
}

.app-store-badge {
  display: inline-flex;
}

.app-store-badge img {
  height: 44px;
  width: auto;
  transition: transform var(--transition), opacity var(--transition);
}

.app-store-badge:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.product-hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
}

.product-hero-mockup img {
  max-width: 320px;
  width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

/* Stats Strip */
.stats-strip {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

/* Features Section */
.features-section {
  padding: 100px 0;
}

.features-heading {
  text-align: center;
  margin-bottom: 60px;
}

.features-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.features-heading p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-red);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:nth-child(2):hover {
  border-color: var(--color-blue);
}

.feature-card:nth-child(3):hover {
  border-color: var(--color-red);
}

.feature-card:nth-child(4):hover {
  border-color: var(--color-blue);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-icon.red {
  background: rgba(230, 57, 70, 0.12);
  color: var(--color-red);
}

.feature-icon.blue {
  background: rgba(29, 78, 216, 0.12);
  color: var(--color-blue);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  color: var(--color-white);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Availability Bar */
.availability-bar {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.availability-bar h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.availability-platforms {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-white-soft);
  font-weight: 500;
}

.platform-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
}

/* Privacy Callout */
.privacy-callout {
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

.privacy-callout-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.privacy-shield {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.15), rgba(29, 78, 216, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.privacy-callout-text h3 {
  font-size: 1.05rem;
  font-family: var(--font-heading);
  color: var(--color-white);
  margin-bottom: 4px;
}

.privacy-callout-text p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Download CTA */
.download-cta {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.download-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.download-cta .cta-sub {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.download-cta .app-store-badge {
  margin-bottom: 20px;
}

.download-cta .family-note {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .project-card-body {
    padding: 20px;
  }

  .product-hero {
    padding: 140px 0 60px;
  }

  .product-hero-mockup img {
    max-width: 260px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stats-strip-inner {
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .privacy-callout-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

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

  .hero {
    padding-top: 60px;
  }

  .divider-animated {
    padding: 40px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .availability-platforms {
    gap: 16px;
  }
}

