/* --- General Styling & Variables --- */
:root {
    --primary-color: #e94560;
    --background-color: #161625;
    --card-background: #1a1a2e;
    --text-color: #f0f0f0;
    --text-muted: #a0a0c0;
    --border-color: #303050;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Header --- */
header {
    background: var(--card-background);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    font-size: 3rem;
    color: white;
    margin: 0;
}

header .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Navigation --- */
nav {
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

nav .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 0;
    padding-bottom: 0;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 1rem 0;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: white;
    border-bottom-color: var(--primary-color);
}

/* --- Main Content --- */
main {
    padding: 2rem 0;
}

section {
    padding: 3rem 0;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* --- Features / Product Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.feature-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.feature-card img {
    margin-bottom: 1.5rem;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    flex-grow: 1; /* Makes card bodies equal height */
    margin-bottom: 1.5rem;
}

/* --- Why Us Section --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.why-us-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.why-us-item p {
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff5c77; /* A slightly brighter hover effect */
}

.btn.disabled {
    background-color: #4a4a6a;
    cursor: default;
}

.btn.disabled:hover {
    background-color: #4a4a6a;
}


/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--card-background);
}

footer p {
    margin: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Code for Fully Clickable Product Cards (Corrected) --- */

/* This makes the card a container for the stretched link. 
   It targets your existing .feature-card class. */
.feature-card {
  position: relative;
}

/* This stretches the main link to cover the entire card */
.feature-card .card-link-stretch {
  text-decoration: none;
  color: inherit;
}
.feature-card .card-link-stretch::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* Places the link layer below the button */
}

/* This ensures the button appears ON TOP of the stretched link and remains clickable */
.feature-card .btn {
  position: relative; /* Required to apply z-index */
  z-index: 2; /* A higher z-index means it's "closer" to the user */
}

/* Optional: Underline the product title on hover for better UX */
.feature-card:hover .product-title {
   text-decoration: underline;
}