/* styles.css */

:root {
  --primary-color: #0d1b2a;
  --accent-color: #00b386;
  --text-color: #1c1c1c;
  --background-color: #ffffff;
  --light-gray: #f4f4f4;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */

header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
}

header h1 {
  font-size: 1.8rem;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

header nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

nav a {
  color: white;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent-color);
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  text-decoration: none;
}

.branding a {
  display: flex;
  align-items: center;
  color: inherit;
}

.branding img {
  display: block;
  margin-right: 12px;
}

/* Hero */

.hero {
  background: 
    /* Irregular grid pattern - different spacings */
    linear-gradient(rgba(0, 179, 134, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 179, 134, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 179, 134, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 179, 134, 0.10) 1px, transparent 1px),
    /* Data visualization dots */
    radial-gradient(circle at 20% 30%, rgba(13, 27, 42, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(0, 179, 134, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(13, 27, 42, 0.12) 1.5px, transparent 1.5px),
    radial-gradient(circle at 70% 70%, rgba(0, 179, 134, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 90% 60%, rgba(13, 27, 42, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 15% 65%, rgba(0, 179, 134, 0.10) 1px, transparent 1px),
    radial-gradient(circle at 60% 15%, rgba(13, 27, 42, 0.08) 1px, transparent 1px),
    /* Base gradient */
    linear-gradient(135deg, #f4f4f4 0%, #e6e6e6 100%);
  background-size: 
    65px 65px,
    45px 45px,
    120px 120px,
    80px 80px,
    200px 200px,
    150px 150px,
    180px 180px,
    160px 160px,
    120px 120px,
    240px 240px,
    190px 190px,
    100% 100%;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  min-width: 178px;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background-color: #008f6a;
  transform: translateY(-2px);
}

.cta.secondary {
  background-color: #ffffff;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.cta.secondary:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Login Screenshot Styling */
.login-screenshot {
  margin-top: 2rem;
  text-align: center;
}

.login-screenshot img {
  max-height: 300px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.login-screenshot img:hover {
  transform: scale(1.02);
}

/* ==== 14‑day Trial Callout (no button) ==== */
.accent-bar {
  width: 120px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
  margin: 2rem auto 1.25rem;   /* top space from screenshot, bottom space before box */
}

.trial-callout {
  margin: 0 auto;
  max-width: 580px;
  padding: 1.5rem 1.25rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
}

.trial-callout p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

/* Features */

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

.features h3,
.about h3,
.contact h3,
.how-it-works h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.features .feature h4,
.how-it-works .feature-hiw h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-wrap: balance;
}

.feature {
  background-color: #f9f9f9;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-hiw {
  background-color: rgba(0, 179, 134, 0.14);              /* ~12% tint */
  /* If you want progressive enhancement, uncomment: */
  /* background-color: color-mix(in srgb, var(--accent-color) 12%, #fff); */
  border: 1px solid rgba(0, 179, 134, 0.22);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-hiw:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

/* Screenshot Gallery */
.screenshot-gallery {
  margin-top: 2rem;
}

.screenshot-gallery-group {
  margin-top: 2rem;
  text-align: center;
}

.screenshot-gallery-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-items: center;
}

.screenshot-gallery-grid.full {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.screenshot-gallery-grid.narrow {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.screenshot-gallery-grid img {
  max-height: 200px;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
  will-change: transform;
}

.screenshot-gallery-grid.narrow img {
  width: auto;
  max-width: 300px;
}

.screenshot-gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.lightbox:target {
  display: flex;
}

/* How it works - Workflow Design */

.how-it-works {
  background: #fff;
  padding: 4rem 0;
  position: relative;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
  margin-top: 40px;
}

.how-it-works .container {
  max-width: 1200px;
}

.how-it-works .grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  grid-template-columns: repeat(4, 1fr);
}

.how-it-works .feature-hiw {
  position: relative;
}

/* Workflow arrows between steps */
.how-it-works .feature-hiw:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -1.75rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent-color);
  font-weight: bold;
  z-index: 10;
}

/* About & Contact */

.about p,
.contact p {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* Contact social links */
.contact .social-links {
  margin-top: 1rem;
  text-align: center;
}

.contact .social-links a {
  display: inline-block;
  margin-right: 20px;
  transition: transform 0.2s ease;
}

.contact .social-links a:hover {
  transform: translateY(-2px);
}

.contact .social-links img {
  height: 32px;
  border-radius: 2px;
}

/* Footer */

footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

/* Privacy Policy */

.bulleted-list {
  padding-left: 2rem;
}

/* Responsive Design */

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  header .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  header nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .cta-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cta {
    width: 100%;
    max-width: 280px;
  }

  .accent-bar {
    margin: 1.5rem auto 1rem;
  }

  .trial-callout {
    margin-top: 1.5rem;
    padding: 1.25rem 1rem 1.5rem;
  }
  .trial-callout p {
    font-size: 1rem;
  }
  
  .screenshot-gallery-grid.full,
  .screenshot-gallery-grid.narrow {
    grid-template-columns: 1fr;
  }
  
  .features .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .how-it-works .grid {
    grid-template-columns: 1fr;     /* stack */
    gap: 2rem;                      /* vertical spacing between cards */
  }

  .how-it-works .feature-hiw {
    width: 100%;                    /* ensure full width */
    max-width: 100%;
  }
  
  /* Add vertical arrows for single column */
  .how-it-works .feature-hiw:not(:last-child)::after {
    content: '↓';
    position: absolute;
    bottom: -2.25rem;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    z-index: 10;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .container {
    padding: 0.5rem;
  }
}

@media (min-width: 1100px) {
  .how-it-works .grid {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 2rem;
  }
}