:root {
    --brand: #D8959B;
    --text-dark: #2D2323;
    --bg-soft: #FFFBFB;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: sticky;
    top: 0;
    background: rgba(255, 251, 251, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-toggle {
    display: none;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8%;
    min-height: 80vh;
}

.hero-content {
    max-width: 500px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Buttons */
.btn-primary {
    background-color: var(--brand);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(216, 149, 155, 0.3);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 100px 8%;
}

.feature-item {
    text-align: left;
}

.feature-item .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Manifesto Section */
.manifesto {
    background-color: var(--brand);
    color: var(--white);
    padding: 100px 15%;
    text-align: center;
    margin: 0 5% 100px 5%;
    border-radius: 40px;
}

.manifesto h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        row-gap: 16px;
    }
    .hero { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 3rem; }
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: 1px solid rgba(45, 35, 35, 0.12);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.9);
        color: var(--text-dark);
        cursor: pointer;
    }
    .nav-toggle span {
        width: 18px;
        height: 2px;
        margin: 0 auto;
        background: currentColor;
        border-radius: 999px;
        transition: var(--transition);
    }
    nav.is-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    nav.is-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    nav.is-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0 4px 0;
    }
    nav.is-open .nav-links {
        display: flex;
    }
    .nav-links a {
        margin-left: 0;
        padding: 12px 0;
        border-bottom: 1px solid rgba(45, 35, 35, 0.08);
    }
    .nav-links:last-of-type {
        padding-top: 12px;
        border-top: 1px solid rgba(45, 35, 35, 0.08);
    }
    .nav-links:last-of-type a {
        border-bottom: none;
        padding: 0;
    }
}

.logo img {
    width: 50px;
    height: 50px;
}

/* Glassmorphism Effect for Cards */
.feature-item {
    background: rgba(216, 149, 155, 0.05); /* Very light brand tint */
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(216, 149, 155, 0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(216, 149, 155, 0.1);
    transform: translateY(-5px);
}

/* Central Orb inspired styling for the manifesto */
.manifesto {
    background: radial-gradient(circle at center, #E5B4B8 0%, #D8959B 100%);
    box-shadow: 0 20px 40px rgba(216, 149, 155, 0.4);
}

/* Audit Section - Terminal Style */
.audit-block {
    padding: 0 10% 100px 10%;
    display: flex;
    justify-content: center;
}

.terminal-window {
    background-color: #1a1a1a;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
    background-color: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.terminal-title {
    color: #999;
    font-size: 0.8rem;
    margin-left: 15px;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.terminal-body {
    padding: 30px;
    color: #f1f1f1;
    font-size: 1.1rem;
}

.prompt {
    color: var(--brand);
    font-weight: bold;
}

.response {
    margin: 15px 0;
    color: #a5a5a5;
}

.terminal-link {
    color: #27c93f;
    text-decoration: none;
    border: 1px solid #27c93f;
    padding: 8px 16px;
    display: inline-block;
    margin-top: 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.terminal-link:hover {
    background: #27c93f;
    color: #1a1a1a;
}

/* Hero Mockup Styling */
.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 5%;
}

.iphone-mockup {
    width: 100%;
    max-width: 320px; /* Standard iPhone mockup width */
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

/* Subtle Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
    .hero-mockup {
        padding-left: 0;
        margin-top: 50px;
    }
    .iphone-mockup {
        max-width: 250px;
    }
}

/* Subpage Hero */
.subpage-hero {
    text-align: center;
    padding: 100px 8% 60px 8%;
    background: linear-gradient(to bottom, #ffffff, var(--bg-soft));
}

.subpage-hero h1 { font-size: 3rem; color: var(--brand); }

/* Detailed Feature Sections */
.detail-section {
    display: flex;
    align-items: center;
    padding: 80px 10%;
    gap: 10%;
}

.detail-section.reverse {
    flex-direction: row-reverse;
}

.section-text {
    flex: 1;
}

.section-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-text ul {
    list-style: none;
    margin-top: 20px;
}

.section-text li {
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--brand);
}

.section-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-detail-img {
    width: 100%;
    max-width: 300px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .detail-section, .detail-section.reverse {
        flex-direction: column;
        text-align: center;
    }
    .section-text li {
        border-left: none;
        border-bottom: 1px solid rgba(216, 149, 155, 0.2);
        padding-bottom: 10px;
    }
} 

/* Styling for the MacBook/Code Screenshot */
.code-screenshot {
    width: 100%;
    max-width: 600px; /* Wider for desktop screenshots */
    height: auto;
    border-radius: 8px; /* Sharper corners than the iPhone */
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.code-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Ensure the layout gives the wider image more room */
@media (min-width: 769px) {
    .detail-section.reverse .section-image {
        flex: 1.5; /* Gives the code screenshot more horizontal space */
    }
    .detail-section.reverse .section-text {
        flex: 1;
    }
}

/* Mobile fix for the wider image */
@media (max-width: 768px) {
    .code-screenshot {
        max-width: 100%;
        margin-top: 20px;
    }
}

/* Patch Notes Styling */
.patch-notes {
    background-color: #fff;
    padding: 100px 10%;
    color: var(--text-dark);
}

.notes-container {
    max-width: 900px;
    margin: 0 auto;
}

.notes-header {
    margin-bottom: 80px;
    text-align: left;
}

.version-tag {
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.notes-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.note-section {
    margin-bottom: 50px;
}

.note-section h3 {
    font-size: 1.4rem;
    color: var(--brand);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(216, 149, 155, 0.2);
    padding-bottom: 10px;
}

.note-section ul {
    list-style: none;
}

.note-section li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.note-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: bold;
}

.disclaimer {
    background: rgba(0, 0, 0, 0.03);
    padding: 30px;
    border-radius: 15px;
    margin-top: 80px;
}

.disclaimer h3 {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    color: #555;
}

/* Final CTA Styling */
.final-cta {
    text-align: center;
    padding: 80px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(216, 149, 155, 0.1);
}

.final-cta h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.7;
}

/* Enhancing the primary button for the final CTA */
.btn-primary.large {
    padding: 20px 45px;
    font-size: 1.2rem;
    box-shadow: 0 15px 30px rgba(216, 149, 155, 0.4);
}

.btn-primary.large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(216, 149, 155, 0.5);
}

/* Manifesto Page Specifics */
.manifesto-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.manifesto-header {
    text-align: center;
    margin-bottom: 80px;
}

.manifesto-header h1 {
    font-size: 4rem;
    color: var(--brand);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.4rem;
    opacity: 0.7;
}

.manifesto-block {
    margin-bottom: 60px;
}

.manifesto-block h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.manifesto-block p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.manifesto-block.accent {
    background: rgba(216, 149, 155, 0.05);
    padding: 40px;
    border-radius: 24px;
    border-left: 5px solid var(--brand);
}

.manifesto-footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.manifesto-footer h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 800;
}

.manifesto-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--brand);
    color: var(--brand);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--brand);
    color: white;
}

@media (max-width: 768px) {
    .manifesto-btns { flex-direction: column; }
    .manifesto-header h1 { font-size: 3rem; }
}

/* Math Page Refinements */
.math-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

.formula-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.5rem;
    border-left: 4px solid var(--brand);
}

.math-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.math-card-alt {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(216, 149, 155, 0.1);
}

.formula-small {
    padding: 15px 0;
    text-align: center;
    font-size: 1.2rem;
    color: var(--brand);
}

.logic-breakdown {
    margin-top: 60px;
    padding: 60px;
    background: var(--text-dark);
    color: white;
    border-radius: 30px;
}

.logic-breakdown h2 {
    color: var(--brand);
    margin-bottom: 40px;
    text-align: center;
}

.logic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.logic-item h4 {
    color: var(--brand);
    margin-bottom: 10px;
}

.logic-item p {
    font-size: 0.95rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .math-grid { grid-template-columns: 1fr; }
    .math-header h1 { font-size: 2.5rem; }
}

/* Privacy Page Specifics */
.privacy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.privacy-header {
    margin-bottom: 60px;
    border-bottom: 2px solid var(--bg-soft);
    padding-bottom: 20px;
}

.privacy-header h1 {
    font-size: 3rem;
    color: var(--brand);
    margin-bottom: 10px;
}

.privacy-header p {
    opacity: 0.6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.policy-block {
    margin-bottom: 40px;
}

.policy-block h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.policy-block p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #4a4a4a;
}

.policy-block ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.policy-block li {
    margin-bottom: 10px;
    color: #4a4a4a;
}

.policy-block a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.policy-block a:hover {
    text-decoration: underline;
}

/* Language Selector Container */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* Individual Language Links */
.lang-link {
    text-decoration: none;
    font-size: 0.75rem; /* Smaller than main nav for hierarchy */
    font-weight: 800;
    color: var(--text-dark);
    opacity: 0.5;
    transition: var(--transition);
    padding: 2px 4px;
}

.lang-link:hover {
    opacity: 1;
    color: var(--brand);
}

/* Active State - Add 'active' class to the link of the current folder */
.lang-link.active {
    opacity: 1;
    color: var(--brand);
    border-bottom: 2px solid var(--brand);
}

/* Responsive fix for mobile */
@media (max-width: 768px) {
    .lang-selector {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
        margin-top: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
        width: 100%;
    }
    .lang-link {
        font-size: 0.9rem;
        padding: 8px 0;
    }
}
