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

:root {
    --accent-color: #247e44;
    --accent-light: #48FAC2;
    --accent-pale: #e8f4f4;
    --text-dark: #2c3e2f;
    --text-muted: #666;
    --bg-soft-rose: #faf8f8;
    --bg-white: #ffffff;
    --border-light: #e0ddd8;
    --success-green: #16c653;
    --bright-green: #00FF9B;
    --bright-red: #ff2c00;
    --hero-image-size: 350px;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-soft-rose);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent-color);
}

/* H1 Group with Image */
.h1-group {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 3.5rem;
    position: relative;
    min-height: var(--hero-image-size);
}

.h1-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.h1-group img {
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
    max-width: var(--hero-image-size);
    max-height: 280px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 0;
    pointer-events: none;
}

/* Custom effect on second word in h1 tags */
.lightt {
    margin-left: 0.5rem;
    text-shadow:  0 0 7px black, 0 0 17px var(--bright-red), 0 0 7px black  ;
    color: var(--bright-green);
}

.redd {
    color: var(--bright-red) !important;
    text-shadow:  0 0 7px black, 0 0 17px var(--bright-green), 0 0 7px black  ;
}


.greeen {
    color: var(--bright-green) !important;
    text-shadow:  0 0 7px black, 0 0 17px var(--accent-light), 0 0 7px black  ;
}

h1.redd {
    text-align: center
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-soft-rose) 0%, rgba(45, 89, 89, 0.03) 100%);
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}


.hero-text h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .h1-group h1 {
        text-align: center;
        color: white ;
    }

}


.hero-tagline {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-visual {
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(74, 138, 138, 0.1) 100%);
    border-radius: 12px;
    /* height: ; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* hero visual image stacking: base image + clipped overlay (cs9.png) */
.hero-visual img.base {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.hero-visual img.overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    max-width: 120%;
    max-height: 120%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: color-burn;
    opacity: 0.78;
    filter: hue-rotate(0deg) saturate(1) brightness(1) contrast(1);
    -webkit-filter: hue-rotate(0deg) saturate(1) brightness(1) contrast(1);
    animation: hueShift 12s linear infinite, overlayPulse 6s ease-in-out infinite;
    will-change: filter, opacity, transform;
    /* overflow will be clipped by .hero-visual (overflow: hidden) */
}

@keyframes hueShift {
    0%   { filter: hue-rotate(-18deg) saturate(0.96) brightness(0.99) contrast(0.99); -webkit-filter: hue-rotate(-18deg) saturate(0.96) brightness(0.99) contrast(0.99); }
    25%  { filter: hue-rotate(6deg)   saturate(1.08) brightness(1.01) contrast(1.01); -webkit-filter: hue-rotate(6deg)   saturate(1.08) brightness(1.01) contrast(1.01); }
    50%  { filter: hue-rotate(18deg)  saturate(1.12) brightness(1.04) contrast(1.03); -webkit-filter: hue-rotate(18deg)  saturate(1.12) brightness(1.04) contrast(1.03); }
    75%  { filter: hue-rotate(6deg)   saturate(1.05) brightness(1.01) contrast(1.01); -webkit-filter: hue-rotate(6deg)   saturate(1.05) brightness(1.01) contrast(1.01); }
    100% { filter: hue-rotate(-18deg) saturate(0.96) brightness(0.99) contrast(0.99); -webkit-filter: hue-rotate(-18deg) saturate(0.96) brightness(0.99) contrast(0.99); }
}

@keyframes overlayPulse {
    0%,100% { opacity: 0.4; }
    50%     { opacity: 0.62; }
}


/* Email Capture */
.email-capture {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(45, 89, 89, 0.1);
}

.email-input::placeholder {
    color: #999;
}

.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--bright-green);
    color: black;
    min-width: 150px;
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 89, 89, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.email-feedback {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.email-feedback.success {
    color: var(--success-green);
}

.email-feedback.error {
    color: var(--bright-red);
}

/* Demo Section */
.demo-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.demo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-header h2 {
    margin-bottom: 0.5rem;
}

.demo-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.demo-recorder {
    background: var(--accent-pale);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.demo-recorder h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.demo-recorder p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.recorder-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.mic-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(45, 89, 89, 0.2);
}

.mic-button:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

.mic-button:active {
    transform: scale(0.98);
}

.mic-button.recording {
    background: var(--bright-red);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(184, 92, 92, 0.3);
    }
    50% {
        box-shadow: 0 4px 24px rgba(184, 92, 92, 0.6);
    }
}

.timer {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    min-width: 80px;
    text-align: center;
}

.timer.warning {
    color: var(--bright-red);
}

.control-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    min-width: 120px;
}

.btn-secondary {
    background-color: var(--border-light);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: #ddd;
    border-color: #ccc;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.demo-info {
    background: var(--accent-pale);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.demo-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.demo-results {
    text-align: center;
}

.demo-results.hidden {
    display: none;
}

.demo-success {
    background: var(--accent-pale);
    padding: 2rem;
    border-radius: 10px;
    color: var(--accent-color);
}

.demo-success h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.demo-success p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.demo-loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.demo-loading p {
    margin-top: 1rem;
    color: var(--text-muted);
}

.demo-error {
    background: rgba(184, 92, 92, 0.1);
    color: var(--bright-red);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--bright-red);
}

.demo-error p {
    margin: 0 0 1rem 0;
}

/* Features Section */
.features {
    background: var(--bg-white);
}

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

.feature-card {
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    background: var(--accent-pale);
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* How It Works */
.how-it-works {
    background: var(--bg-soft-rose);
}

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

.step {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
    position: relative;
}

.step::before {
    content: attr(data-step);
    position: absolute;
    top: -18px;
    left: 1.5rem;
    background: var(--accent-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

/* Secondary Email */
.secondary-cta {
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(74, 138, 138, 0.15) 100%);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.secondary-cta h2 {
    margin-bottom: 1rem;
}

.secondary-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.secondary-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-form .email-input {
    min-width: 280px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Utility */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
