/* StepGoals Website Styles */

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, ul, ol, li, nav, main, section, article, header, footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #1C1C1E;
    color: #E5E5E7;
    line-height: 1.6;
}

/* Navigation */
nav {
    background-color: rgba(28, 28, 30, 0.8);                                                            
    backdrop-filter: blur(20px);                                                                        
    -webkit-backdrop-filter: blur(20px);                                                                
    border-bottom: 1px solid rgba(255, 149, 0, 0.15);
    padding: 1rem 2rem;                                                                                 
    position: sticky;
    top: 0;                                                                                             
    z-index: 100;  
}

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

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF9500;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul a {
    color: #8E8E93;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav ul a:hover {
    color: #FF9500;
}

nav ul .active {
    color: #FF9500;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 149, 0, 0.2) 0%, transparent 70%),                                                                             linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);  
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: #FF9500;
}

.hero p {
    font-size: 1.25rem;
    color: #8E8E93;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero .app-store-badge {
    height: 54px;
    transition: transform 0.2s;
}

.hero .app-store-badge:hover {
    transform: scale(1.05);
}

/* Hero Screenshots */
.hero-screenshots {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 4rem;
    padding: 24px 1rem 32px;
    overflow-x: auto;
}

.hero-screenshots img {
    height: 320px;
    width: auto;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-screenshots img:nth-child(1) { transform: rotate(-4deg) translateY(16px); }
.hero-screenshots img:nth-child(2) { transform: rotate(-2deg) translateY(8px); }
.hero-screenshots img:nth-child(3) { transform: rotate(0deg) translateY(0px); }
.hero-screenshots img:nth-child(4) { transform: rotate(2deg) translateY(8px); }
.hero-screenshots img:nth-child(5) { transform: rotate(4deg) translateY(16px); }

.hero-screenshots img:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.03);
    box-shadow: 0 28px 70px rgba(255, 149, 0, 0.25);
    z-index: 1;
    position: relative;
}

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

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 3rem;
}

.features h2 span {
    color: #FF9500;
}

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

.feature-card {
    background-color: #2C2C2E;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.feature-card h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #8E8E93;
}

@keyframes fadeInUp {                                                                                   
    from {                                                                                              
        opacity: 0;                                                                                     
        transform: translateY(24px);
    }                                                                                                   
    to {        
        opacity: 1;                                                                                     
        transform: translateY(0);                                                                       
    }
}

.feature-card {
    animation: fadeInUp 0.5s ease both;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.10s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.20s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.30s; }

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 149, 0, 0.3);
    box-shadow: 0 12px 40px rgba(255, 149, 0, 0.1);
}

.feature-card .icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.feature-card:hover .icon {
    transform: scale(1.3) rotate(-5deg);
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: #8E8E93;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.legal-page h2 {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-page h3 {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page p {
    margin-bottom: 1rem;
}

.legal-page ul, .legal-page ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: #FF9500;
    text-decoration: none;
}

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

/* Footer */
footer {
    background-color: #2C2C2E;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

footer .links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

footer a {
    color: #8E8E93;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #FF9500;
}

footer .copyright {
    color: #8E8E93;
    font-size: 0.9rem;
}

footer .links img {
    height: 50px;
    width: auto;
}

/* Blog Hero */
.blog-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.blog-hero h1 span {
    color: #FF9500;
}

.blog-hero p {
    font-size: 1.15rem;
    color: #8E8E93;
}

/* Blog Listing */
.blog-listing {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-card {
    background-color: #2C2C2E;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.blog-tag {
    background-color: #FF9500;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-date {
    font-size: 0.875rem;
    color: #8E8E93;
}

.blog-card h2 {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card h2 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card h2 a:hover {
    color: #FF9500;
}

.blog-card p {
    color: #8E8E93;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.read-more {
    color: #FF9500;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.read-more:hover {
    opacity: 0.8;
}

/* Blog Post */
.blog-post {
    max-width: 740px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.blog-post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-post-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin: 0.75rem 0 1rem;
}

.blog-post-subtitle {
    font-size: 1.2rem;
    color: #8E8E93;
    line-height: 1.6;
}

.blog-post-body {
    color: #E5E5E7;
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-post-body p {
    margin-bottom: 1.5rem;
}

.blog-post-body h2 {
    font-size: 1.75rem;
    color: #FFFFFF;
    margin: 2.5rem 0 1rem;
    font-weight: 700;
}

.blog-post-body ul,
.blog-post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
    color: #E5E5E7;
}

.blog-post-body strong {
    color: #FFFFFF;
    font-weight: 600;
}

.blog-post-body a {
    color: #FF9500;
    text-decoration: none;
}

.blog-post-body a:visited {
    color: #FF9500;
}

.blog-post-body a:hover {
    text-decoration: underline;
}

.blog-post-cta {
    margin: 2.5rem 0;
    text-align: center;
}

.blog-post-cta .app-store-badge {
    height: 54px;
    transition: transform 0.2s;
}

.blog-post-cta .app-store-badge:hover {
    transform: scale(1.05);
}

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-to-blog {
    color: #8E8E93;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-to-blog:hover {
    color: #FF9500;
}

/* FAQ Page */
.faq-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
}

.faq-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.faq-hero h1 span {
    color: #FF9500;
}

.faq-hero p {
    font-size: 1.15rem;
    color: #8E8E93;
}

.faq-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FF9500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
    border-radius: 12px;
    background-color: #2C2C2E;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: #FF9500;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    color: #FF9500;
}

.faq-item > p,
.faq-item > div,
.faq-item > ol,
.faq-item > ul {
    padding: 0 1.5rem 1.25rem;
    color: #8E8E93;
    line-height: 1.7;
}

.faq-item > div p {
    color: #8E8E93;
    margin-bottom: 0.75rem;
}

.faq-item > div ul,
.faq-item > div ol {
    padding-left: 1.5rem;
    color: #8E8E93;
}

.faq-item > div li {
    margin-bottom: 0.4rem;
}

.faq-item a {
    color: #FF9500;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Blog Images */
.blog-post-body figure {
    margin: 2.5rem 0;
}

.blog-post-body figcaption {
    text-align: center;
    color: #8E8E93;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-style: italic;
}

.blog-image-phone {
    display: block;
    max-width: 45%;
    margin: 0 auto;
    border-radius: 24px;
}

.blog-image-full {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.blog-image-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.blog-image-pair figure {
    margin: 0;
}

.blog-image-pair img {
    display: block;
    width: 100%;
    border-radius: 24px;
}

.blog-image-pair figcaption {
    text-align: center;
    color: #8E8E93;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-screenshots img {
        height: 260px;
        border-radius: 20px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-post-header h1 {
        font-size: 1.75rem;
    }
}
