/* --- Basic Setup & Variables --- */
:root {
    --color-background: #0D0C14; /* A deep, dark navy */
    --color-primary: #5A67FF; /* Electric blue */
    --color-secondary: #C850FF; /* Vibrant magenta */
    --color-text: #EAEAF2; /* Soft white */
    --color-text-dark: #A0A0B4; /* Muted gray for subtitles */
    --font-family: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--color-background);
    font-family: var(--font-family);
    color: var(--color-text);
    overflow-x: hidden;
}

/* --- Screenshots Section --- */
.screenshots-section {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.shot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(90, 103, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;        /* keeps natural aspect ratio */
  object-fit: contain; /* fits entire image, may add empty space */
}

.shot figcaption {
  padding: 0.75rem 1rem;
  color: var(--color-text-dark);
  font-weight: 600;
  text-align: center;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

/* Mobile tweak */
@media (max-width: 768px) {
  .shot img { height: 200px; }
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 5%;
    background: rgba(13, 12, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-bottom: 1px solid rgba(90, 103, 255, 0.2);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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


/* --- General CTA Button Styling --- */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(90, 103, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(200, 80, 255, 0.6);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 5% 60px;
    background-image: linear-gradient(rgba(13, 12, 20, 0.7), rgba(13, 12, 20, 0.8)), url('RR_v1_1024r2.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    background-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-dark);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero-cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* We will replace this with a hamburger menu later */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* --- General Section Styling --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Value Proposition Section --- */
.value-prop {
    padding: 6rem 5%;
    background-color: var(--color-background);
    text-align: center;
}

.value-prop-content {
    max-width: 700px;
    margin: 0 auto;
}

.value-prop h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.value-prop p {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    line-height: 1.7;
}

/* --- Features Section --- */
.features-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(90, 103, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
}

.feature-card li {
    color: var(--color-text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.feature-card li strong {
    color: var(--color-text);
    font-weight: 600;
}


/* --- Responsive Adjustments for New Sections --- */
@media (max-width: 768px) {
    .section-title,
    .value-prop h2 {
        font-size: 2rem;
    }
    
    .value-prop p {
        font-size: 1.1rem;
    }
}
/* --- FAQ Section --- */
.faq-section {
    padding: 6rem 5%;
    background-color: var(--color-background);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(90, 103, 255, 0.2);
}

.faq-item {
    border-bottom: 1px solid rgba(90, 103, 255, 0.2);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-family);
}

.faq-icon {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p {
    color: var(--color-text-dark);
    line-height: 1.8;
    padding: 0 0 1.5rem 0;
}

/* Active State for Accordion */
.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust if answers are longer */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* --- Final CTA Section --- */
.cta-section {
    padding: 6rem 5%;
    background-color: rgba(255, 255, 255, 0.03); /* A slightly different bg to stand out */
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin: -2rem auto 2.5rem auto; /* Negative margin to pull it closer to title */
}

/* --- Footer --- */
.main-footer {
    padding: 3rem 5%;
    background-color: var(--color-background);
    border-top: 1px solid rgba(90, 103, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--color-text-dark);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* --- Responsive Adjustments for Final Sections --- */
@media (max-width: 768px) {
    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }
}

/* --- Contact Modal --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: #191823;
    padding: 2.5rem;
    border: 1px solid rgba(90, 103, 255, 0.2);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

.modal-content .section-title {
    margin-bottom: 1rem;
}

.modal-content p {
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-text);
}

/* Form Styles */
#contact-form .form-group {
    margin-bottom: 1.5rem;
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(90, 103, 255, 0.3);
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(90, 103, 255, 0.4);
}

#contact-form button {
    width: 100%;
    font-size: 1.1rem;
}

/* --- Legal/Static Page Styling --- */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 5% 6rem;
    color: var(--color-text-dark);
}

.page-container h1 {
    color: var(--color-text);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-container h2 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(90, 103, 255, 0.2);
    padding-bottom: 0.5rem;
}

.page-container p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.page-container a:hover {
    text-decoration: underline;
}

.effective-date {
    font-style: italic;
    margin-bottom: 2rem;
}

/* Support page tweaks */
.support-form select,
.support-form input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(90, 103, 255, 0.3);
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
}

/* =========================================================
   RhythmRamp — Support Page Polishing (drop-in)
   Paste at END of styles.css
   ========================================================= */

.support-form {
  max-width: 720px;               /* comfortable reading width */
  margin-top: 1rem;
}

.support-form .form-group {
  margin-bottom: 1.25rem;
}

.support-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Uniform inputs/selects/textareas/file inputs */
.support-form input[type="text"],
.support-form input[type="email"],
.support-form input[type="file"],
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(90,103,255,0.30);
  background-color: #141320; /* slightly darker than page bg for depth */
  background-color: color-mix(in srgb, var(--color-background) 85%, #000 15%);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.3;
}

/* Focus states */
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(90,103,255,0.25);
}

/* Placeholders */
.support-form ::placeholder {
  color: var(--color-text-dark);
}

/* Select: consistent arrow for Safari/iOS + others */
.support-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text) 50%),
    linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) center,
    calc(100% - 16px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem; /* space for arrow */
}

/* File input: prevent long filenames from spilling */
.support-form input[type="file"] {
  padding: 0.6rem 0.9rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Checkbox row (make label clickable) */
.support-form input[type="checkbox"] {
  transform: translateY(1px);
  margin-right: 0.5rem;
}

/* Submit button spacing */
.support-form .cta-button {
  display: inline-block;
  margin-top: 0.25rem;
}

/* Helper text + fallback copy under form */
.support-form small,
.support-form p {
  color: var(--color-text-dark);
}

/* Success message (if used) */
#success {
  color: var(--color-text);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(90,103,255,0.20);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .support-form { max-width: 100%; }
}

/* Email (and other) invalid field highlight */
.field-error {
  border-color: #ff5a5f !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.25) !important;
}
