/* Import Montserrat from Google Fonts (easier than self-hosting) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;1,400&display=swap');

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #333;
    --font-family: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-color);
}

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

html {
    scroll-behavior: smooth;
}

/* --- Header --- */
.site-header {
    background: var(--secondary-color);
    padding: 0.5rem 0; /* Increased initial padding */
    border-bottom: 1px solid #eee;
    position: sticky; /* Makes the header sticky */
    top: 0;
    z-index: 1000; /* Ensures header stays on top of other content */
    transition: padding 0.3s ease-out; /* Smooth transition for shrinking */
}

/* Style for the header when the page is scrolled */
.site-header.scrolled {
    padding: 0rem 0; /* Reduced padding to make it smaller */
    box-shadow: 0 2px 10px rgba(0,0,0,0.18); /* Adds a subtle shadow */
}

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

.site-header .brand {
    margin: 0;
    letter-spacing: 0.08em;
}

.site-header .logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

/* --- Buttons --- */
.button-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}
.button-primary:hover {
    background-color: #333;
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}


/* --- Hero Section --- */
.hero {
    position: relative; /* This is crucial for positioning children */
    overflow: hidden;   /* This clips the image so it doesn't spill out */
    cursor: grab;       /* Changes the cursor to show it's draggable */

    height: 90vh; /* I've reduced this from 160vh, 90vh is a good starting point */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-color);
}

/* Style for the new background image tag */
#hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    user-select: none;
    pointer-events: none;
}

/* Style for the new content wrapper */
.hero-content {
    touch-action: pan-y;
    /* This ensures the text is readable over any part of the image */
    /*background-color: rgba(255, 255, 255, 0.8);*/
    padding: 1.5rem 2.5rem;
    border-radius: 8px;
    /* This makes sure the content is clickable if you add links */
    position: relative; 
    z-index: 1;
}
.hero h1 {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    font-size: 3rem;
    letter-spacing: 0.08em;
}
.hero p {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
}


/* --- Roadmap & Products --- */
.roadmap {
    padding: 60px 0;
    text-align: center;
}
.roadmap .subtitle {
    font-size: 1.25rem;
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    gap: 50px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.product-card.reverse {
    grid-template-columns: 1fr 1fr;
}
/* On desktop, this will make the image come second */
.product-card.reverse .product-info {
    order: -1;
}


.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.product-info h3 {
    font-size: 2rem;
}

/* --- Footer --- */
.site-footer {
    background-color: #f8f8f8;
    padding: 60px 0 20px 0;
    border-top: 1px solid #ddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-form form {
    display: flex;
    flex-direction: column;
}
.footer-form label {
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.footer-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
}
.footer-form button {
    align-self: flex-start;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}
.copyright .disclaimer {
    font-size: 0.8rem;
    color: #777;
}

/* Utility class to hide elements visually but keep them for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive adjustments --- */

/* Most big phones (up to 430px wide like iPhone 14 Pro Max) */
@media (max-width: 430px) {
  .site-header { padding: 0.2rem 0; }
  .site-header .brand { font-size: 1.05rem; letter-spacing: .06em; }
  .hero { height: 75vh; }                /* was 90vh */
  .hero-content { padding: .65rem .9rem; }
  .hero h1 { font-size: clamp(1.35rem, 4.4vw, 1.8rem); padding: .55rem .9rem; }
  .hero p  { font-size: clamp(.95rem, 3.4vw, 1.05rem); padding: .35rem .7rem; }
}

/* Very small phones (incl. iPhone 13 mini, ~375px) — this must come AFTER 430px */
@media (max-width: 380px) {
  .site-header { padding: 0.12rem 0; }
  .site-header .brand { font-size: 0.98rem; letter-spacing: .05em; }
  .hero { height: 70vh; }
  .hero-content { padding: .5rem .7rem; border-radius: 6px; }
  .hero h1 { font-size: clamp(1.2rem, 5vw, 1.5rem); padding: .4rem .6rem; }
  .hero p  { font-size: clamp(.88rem, 3.6vw, .98rem); padding: .28rem .5rem; }
}

