/* main.css */
:root {
    --primary-color: #1D1D1F;
    --secondary-color: #86868B;
    --accent-color: #0066CC;
    --background-color: #FFFFFF;
    --text-color: #1D1D1F;
    --border-color: #D2D2D7;
    --section-padding: 8rem;
    --container-padding: 2rem;
}

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

html {
    /* Remove scrollbar-gutter and keep only overflow-y: scroll */
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    line-height: 1.47059;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Unified container style for consistent alignment */
.container,
.content-wrapper,
.docs-content,
.site-header .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo img {
    margin-right: 0.75rem;
    width: 24px;
    height: 24px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

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

.nav-links a.active {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 1.5rem;
    height: 1px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Section Styles */
.g-section {
    margin-bottom: 4rem;
    padding: 4rem 0;
}

.g-section:last-child {
    margin-bottom: 0;
}

/* Hero Section */
.g-section[data-name="hero"] {
    text-align: center;
    padding: 6rem 0;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.g-section[data-name="hero"] h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.g-section[data-name="hero"] h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 1.125rem;
    line-height: 1.17648;
    font-weight: 500;
    letter-spacing: -0.022em;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.button-primary {
    background-color: #0066CC;
    color: white !important;
}

.button-primary:hover {
    background-color: #0077ED;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.cta-button {
    margin-top: 1rem;
    min-width: 240px;
    font-size: 1.25rem;
    padding: 18px 36px;
}

/* Features Section */
.g-section[data-name="features"] {
    padding: 4rem 0;
    background-color: #F7FAFC;
}

.g-section[data-name="features"] h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.g-section[data-name="features"] ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.g-section[data-name="features"] li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.g-section[data-name="features"] li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Screenshots Section */
.g-section[data-name="screenshots"] {
    padding: 4rem 0;
}

.g-section[data-name="screenshots"] h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.g-section[data-name="screenshots"] img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* About Section */
.g-section[data-name="about"] {
    padding: 4rem 0;
    background-color: #F7FAFC;
    text-align: center;
}

.g-section[data-name="about"] h2 {
    margin-bottom: 1.5rem;
}

.g-section[data-name="about"] p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Documentation */
.docs-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem var(--container-padding);
}

.docs-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
}

.docs-content h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 2.5rem 0 1rem;
}

.docs-content p {
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Quick Links */
.docs-content ul {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.docs-content ul li {
    margin-bottom: 1rem;
}

.docs-content ul li a {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 400;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.docs-content ul li a:hover {
    background-color: rgba(0, 102, 204, 0.05);
    text-decoration: none;
}

.docs-content ul li a:before {
    content: "→";
    margin-right: 0.75rem;
    color: var(--accent-color);
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background-color: #F5F5F7;
    color: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
        --container-padding: 1.25rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 1rem var(--container-padding);
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .docs-content h1 {
        font-size: 2.5rem;
    }
    
    .docs-content h2 {
        font-size: 1.5rem;
    }
}

/* Content Wrapper */
.content-wrapper {
    min-height: 50vh;
    padding: var(--section-padding) var(--container-padding);
    max-width: 1140px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    max-width: 680px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 2.5rem 0 1rem;
    color: var(--primary-color);
}

p {
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Lists */
.content-wrapper ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.content-wrapper ul li {
    position: relative;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.content-wrapper ul li:before {
    content: "→";
    position: absolute;
    left: -1.5rem;
    color: var(--accent-color);
}

/* Links in content */
.content-wrapper a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.content-wrapper a:hover {
    color: #0077ED;
    text-decoration: none;
}

/* Coming Soon Page */
.coming-soon-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--background-color);
}

.coming-soon-content {
    text-align: center;
    max-width: 400px;
}

.coming-soon-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 2rem;
}

.coming-soon-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.coming-soon-content p {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}