:root {
    --primary-blue: #0052FF;
    --dark-navy: #1C2A3A;
    --text-primary: #333D47;
    --text-secondary: #6B7280;
    --background-light: #F9FAFB;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 3rem; color: var(--dark-navy); }
h2 { font-size: 2rem; color: var(--dark-navy); text-align: center; }
p { font-size: 1.125rem; }

/* --- Header --- */
.main-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.main-header .container {
    display: flex;
    align-items: center;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-navy);
}
.logo { height: 32px; width: 32px; }

/* --- Hero Section --- */
.hero {
    padding: 2rem 0;
    text-align: center;
}
.hero-title {
    max-width: 750px;
    margin: 0 auto 1rem;
}
.hero-subtitle {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}
.early-access-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}
.early-access-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline-color: var(--primary-blue);
}
.cta-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.cta-button:hover { background-color: #0045D1; }
#form-message {
    margin-top: 1rem;
    min-height: 24px;
    font-weight: 600;
}

/* --- Demo Section --- */
.demo { padding: 1rem 0; background-color: var(--background-light); }
.demo-label {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}
.product-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}
.product-image-wrapper img {
    display: block;
    width: 100%;
}

/* --- How It Works & Tech Cred Sections --- */
.how-it-works, .tech-cred { padding: 6rem 0; }
.tech-cred { background-color: var(--background-light); }
.section-title { text-align: center; margin: 0 auto 1rem; }
.section-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-secondary);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.tech-cred a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}
.tech-cred a:hover { text-decoration: underline; }

/* --- Footer --- */
.main-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Make the footer container a column so we can stack rows cleanly */
.main-footer .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* If you used the newer HTML with .footer-row/.footer-links */
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { white-space: nowrap; }

/* Support BOTH HTML variants: original .footer-nav and new .footer-links */
.footer-links,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a,
.footer-nav a {
  color: inherit;
  text-decoration: none;
}
.footer-links a:hover,
.footer-nav a:hover {
  text-decoration: underline;
}

/* Force legal text to its own line for both variants */
.footer-legal,
.footer-disclaimer {
  flex-basis: 100%;       /* new line */
  font-size: 12px;
  line-height: 1.4;
  color: #9ca3af;
  margin-top: 4px;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .footer-copy { white-space: normal; }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    .hero, .how-it-works, .tech-cred { padding: 2rem 0; }
    .early-access-form { flex-direction: column; }
    .steps-grid { grid-template-columns: 1fr; }
    .main-footer .container { flex-direction: column; gap: 1rem; }
}

#animation-container {
    position: relative;
    width: 100%;
    /* You may need to set a specific height or aspect ratio */
    aspect-ratio: 2334/1560; /* Example aspect ratio */
    cursor: pointer; /* Change cursor to show it's clickable */
}

.animated-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.animated-image.visible {
    opacity: 1;
}

#image-caption {
    margin-top: -1rem;
    text-align: center;
    font-size: 1rem;
    color: #555; /* A subtle color */
    min-height: 1.5rem; /* Prevents layout jump when text is updated */
    transition: opacity 0.5s ease-in-out;
}

/* Style for the new Play/Pause status indicator */
#play-pause-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 5; /* Above images, below cursor */
    
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    
    /* Smooth fade effect */
    transition: opacity 0.3s ease-in-out;
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px; /* Visually center the play icon */
}

/* Make it visible when the 'visible' class is added by JavaScript */
#play-pause-status.visible {
    opacity: 1;
}

/* Style for the SVG play icon */
#play-pause-status svg {
    width: 50px;
    height: 50px;
    fill: white;
}

/* Style for the cursor element */
#cursor-sprite {
    position: absolute;
    width: 1vw; /* Set the width of a single cursor frame in your sprite */
    height: auto; /* Set the height of a single cursor frame */
    aspect-ratio: 1/1;
    background-image: url('images/cursor-sprite.png'); /* The path to your sprite image */
    background-size: auto 100%; /* Adjust based on your sprite layout */
    z-index: 10; /* Ensure it's on top of the images */
    pointer-events: none; /* Make it unclickable */
    opacity: 1; /* Initially hidden */
    transition: top 0.5s ease-in-out, left 0.5s ease-in-out;
}

/* Animations for each step */
.cursor-step-1 {
    left: 17%;
    top: 39%; /* Position the cursor over the headers */
}
.cursor-step-2 {
    left: 80%;
    top: 78%; /* Move the cursor down */
}
.cursor-step-3 {
    left: 43%;
    top: 22%; /* Move the cursor to the "Extensions" menu */
}
.cursor-step-4 {
    left: 43%;
    top: 51%; /* Move the cursor to the "SmartFill" sub-menu */
}
.cursor-step-5 {
    left: 71%;
    top: 52%; /* Move the cursor to the "Generate Data" menu option */
}
.cursor-step-6 {
    left: 71%;
    top: 52%; /* Press the "Generate Data" menu option */
}
.cursor-step-7 {
    left: 71%;
    top: 52%; /* Press the "Generate Data" menu option */
}
.cursor-step-8 {
    left: 71%;
    top: 52%; /* See the selected region being filled */
}
.cursor-step-9 {
    left: 71%;
    top: 52%; /* Done! */
}
.cursor-step-10 {
    left: 71%;
    top: 52%; /* Done! */
}
