/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #52c7a4;
    --primary-blue: #64b5d6;
    --text-primary: #2a3f3a;
    --text-secondary: #6b7c78;
    --bg-light: #fafffe;
    --bg-white: #ffffff;
    --bg-soft: #f0f7f4;
    --accent-soft: #e8f4f0;
    --shadow-light: rgba(82, 199, 164, 0.08);
    --shadow-medium: rgba(42, 63, 58, 0.06);
    --font-main: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: "Fraunces", Georgia, serif;
}

body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle geometric pattern overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        radial-gradient(
            circle at 20% 50%,
            var(--primary-green) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 80% 50%,
            var(--primary-blue) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 50% 20%,
            var(--primary-green) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 50% 80%,
            var(--primary-blue) 1px,
            transparent 1px
        );
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

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

/* Particles Animation */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--primary-blue)
    );
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 10s;
    animation-duration: 35s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 15s;
    animation-duration: 28s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 20s;
    animation-duration: 32s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(82, 199, 164, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
}

.logo span {
    background: linear-gradient(
        135deg,
        var(--text-primary) 0%,
        var(--primary-green) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.logo svg {
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--primary-green),
        var(--primary-blue)
    );
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 80px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(232, 244, 240, 0.5) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-accent);
    font-size: 56px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--primary-blue)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-family: var(--font-main);
    font-size: 42px;
    font-weight: 200;
    color: var(--text-primary);
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--primary-blue)
    );
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--accent-soft);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--primary-blue)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* App Preview */
.app-preview {
    position: relative;
}

.app-window {
    background: #1a1a1e;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(42, 63, 58, 0.15);
    overflow: hidden;
    animation: float-window 6s ease-in-out infinite;
}

@keyframes float-window {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.window-controls {
    background: #2a2a2e;
    padding: 12px;
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.control.red {
    background: #ff5f57;
}
.control.yellow {
    background: #ffbd2e;
}
.control.green {
    background: #28ca42;
}

.app-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-display {
    margin-bottom: 30px;
}

.timer-ring {
    position: relative;
    width: 200px;
    height: 200px;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.timer-ring svg {
    width: 100%;
    height: 100%;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-text .time {
    display: block;
    font-size: 36px;
    font-weight: 200;
    color: white;
    font-family: "Manrope", monospace;
}

.timer-text .label {
    display: block;
    font-size: 12px;
    color: #6b7c78;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preset-buttons {
    display: flex;
    gap: 10px;
}

.preset {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #6b7c78;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset.active {
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--primary-blue)
    );
    color: white;
    border-color: transparent;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
}

.section-title {
    text-align: center;
    font-family: var(--font-accent);
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

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

.feature-card {
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        var(--primary-green) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px) rotate(0.5deg);
    background: var(--bg-white);
    border-color: var(--accent-soft);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.feature-card:hover::before {
    opacity: 0.03;
}

.feature-icon {
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        var(--accent-soft) 0%,
        var(--bg-light) 100%
    );
}

.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-content h2 {
    font-family: var(--font-accent);
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.download-content > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.download-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px var(--shadow-medium);
}

.price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.price {
    font-size: 48px;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--primary-blue)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--primary-blue)
    );
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 500;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.requirements {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--accent-soft);
}

.requirements p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-family: var(--font-accent);
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.about-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.testimonial {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-soft);
    border-radius: 16px;
    border-left: 3px solid var(--primary-green);
}

.testimonial p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial cite {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: normal;
}

/* Footer */
footer {
    padding: 50px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--accent-soft);
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-primary);
}

.footer-logo svg {
    animation: pulse-gentle 3s ease-in-out infinite;
}

@keyframes pulse-gentle {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .subtitle {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .app-preview {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .price {
        font-size: 36px;
    }
}

/* FAQ Accordion */
.faq {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--accent-soft);
    transition:
        box-shadow 0.25s ease,
        transform 0.18s ease;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
}

.faq-question .title {
    font-size: 16px;
    line-height: 1.3;
}

.faq-question .caret {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    color: var(--primary-green);
    flex-shrink: 0;
}

.faq-item.open {
    box-shadow: 0 10px 30px var(--shadow-medium);
    transform: translateY(-2px);
}

.faq-item.open .caret {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.35s ease,
        padding 0.35s ease;
    padding: 0 22px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    background: linear-gradient(180deg, rgba(232, 244, 240, 0.4), transparent);
}

.faq-item.open .faq-answer {
    padding: 16px 22px 22px;
    max-height: 500px; /* generous limit for typical answers; adjust if needed */
}

.faq-answer p {
    margin: 0;
}

/* Support for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-question .caret,
    .faq-answer {
        transition: none;
        animation: none;
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .faq {
        padding: 48px 0;
    }
    .faq-question {
        padding: 14px 16px;
    }
    .faq-answer {
        padding: 12px 16px 16px;
    }
}

/* Print Styles */
@media print {
    header,
    .particles {
        display: none;
    }

    body {
        background: white;
    }

    .hero,
    .features,
    .download,
    .about {
        padding: 20px 0;
    }

    /* Ensure FAQ prints expanded */
    .faq-answer {
        max-height: none !important;
        overflow: visible !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .faq-question .caret {
        display: none;
    }
}
