/* Global Styles */
:root {
    --primary: #0B5422;
    --primary-light: #268A4E;
    --secondary: #81D44B;
    --accent: #4FBA79;
    --text: #333333;
    --text-light: #666666;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 4px 0;
    border-radius: 2px;
}


.cta-button {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    /* padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(11, 84, 34, 0.1) 0%, rgba(255, 255, 255, 1) 100%); */
    padding: 150px 0 80px;
    background: linear-gradient(135deg,
            rgba(11, 84, 34, 0.12) 0%,
            rgba(255, 255, 255, 1) 70%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.app-store-button,
.play-store-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #000;
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.app-store-button {
    background-color: #000;
}

.play-store-button {
    background-color: #0F9D58;
}

.app-store-button i,
.play-store-button i {
    font-size: 1.8rem;
    margin-right: 10px;
}

.app-store-button div,
.play-store-button div {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    line-height: 1.2;
}

.app-store-button:hover,
.play-store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Android device look */
.android-frame {
    background: #0f172a;
    /* dark android frame */
    padding: 14px;
    border-radius: 22px;
    box-shadow:
        0 30px 60px rgba(11, 84, 34, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Camera dot (Android style) */
.android-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

/* Screen */
.android-frame img {
    width: 280px;
    border-radius: 14px;
    display: block;
}

/* Subtle floating */
.android-frame {
    animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* About RxHabit Section */
/* About RxHabit Section */
.about-section {
    padding: 100px 0 70px;
    background-color: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
    position: relative;
}

.about-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background-color: #0B5422;
    /* match brand color */
    display: block;
    margin-top: 12px;
    border-radius: 2px;
}

.about-text {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

/* Features */
.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: transform 0.3s ease;
}

.feature-item i {
    font-size: 20px;
    color: #0B5422;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-features {
        margin-top: 40px;
    }

    .feature-item {
        justify-content: center;
    }
}


/* Features Section */
.features {
    padding: 70px 0;
    background-color: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: var(--white);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-light);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background-color: var(--light);
}

.screenshot-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.screenshot {
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.screenshot:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #b3b3b3;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer p {
    margin: 15px 0;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b3b3b3;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 15px;
}

.legal-links a {
    color: #b3b3b3;
    margin: 0 10px;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .step {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .app-store-button,
    .play-store-button {
        margin: 0 auto;
    }
}

.privacy-policy {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 0 20px;
    line-height: 1.8;
}

.privacy-policy h1 {
    color: #0B5422;
    margin-bottom: 30px;
    text-align: center;
}

.privacy-policy h2 {
    color: #268A4E;
    margin: 30px 0 15px;
}

.privacy-policy p,
.privacy-policy ul {
    margin-bottom: 20px;
}

.privacy-policy ul {
    padding-left: 30px;
}

.privacy-policy li {
    margin-bottom: 10px;
}

.last-updated {
    font-style: italic;
    color: #666;
    text-align: right;
    margin-top: 40px;
}

.back-to-home {
    display: inline-block;
    margin-top: 30px;
    color: #0B5422;
    text-decoration: none;
    font-weight: 600;
}

.back-to-home:hover {
    text-decoration: underline;
}



.terms-of-service {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 0 20px;
    line-height: 1.8;
    color: #333;
}

.terms-of-service h1 {
    color: #0B5422;
    margin-bottom: 30px;
    text-align: center;
}

.terms-of-service h2 {
    color: #268A4E;
    margin: 30px 0 15px;
}

.terms-of-service h3 {
    color: #4FBA79;
    margin: 25px 0 10px;
}

.terms-of-service p,
.terms-of-service ul,
.terms-of-service ol {
    margin-bottom: 15px;
    line-height: 1.6;
}

.terms-of-service ul,
.terms-of-service ol {
    padding-left: 30px;
}

.terms-of-service li {
    margin-bottom: 10px;
}

.highlight {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #4FBA79;
    margin: 20px 0;
}