:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #64748b;
    --accent: #f97316;
    --background: #0f172a;
    --background-light: #1e293b;
    --text: #f8fafc;
    --text-light: #94a3b8;
    --border: #334155;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(to bottom, var(--background), var(--background-light));
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.button-primary {
    background: var(--primary);
    color: white;
}

.button-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 80px 0;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    background: var(--background-light);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--background-light);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

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

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .content-section h1, .faq-section h1, .privacy-section h1 {
        font-size: 2.5rem;
        text-align: left;
    }
    
    .content-section h2, .privacy-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-item h3 {
        font-size: 1.4rem;
    }
    
    .faq-item h3:before, .faq-answer:before {
        font-size: 1.6rem;
    }
    
    .faq-item {
        padding: 1.8rem;
    }
    
    .feature-card {
        padding: 1.8rem;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--background-light);
        padding: 1rem 0;
        gap: 0;
        border-bottom: 1px solid var(--border);
        display: none;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
    }

    .mobile-menu {
        display: block;
        background: none;
        border: none;
        color: var(--text);
        cursor: pointer;
    }
    
    .content-section, .faq-section, .privacy-section {
        padding: 120px 0 60px;
    }
    
    .content-section h2:after, .privacy-section h2:after {
        width: 40px;
        height: 2px;
    }
    
    .policy-section h2 {
        font-size: 1.8rem;
    }
    
    .policy-section h2:after {
        width: 40px;
        height: 2px;
    }
    
    .faq-item h3:before, .faq-answer:before {
        font-size: 1.6rem;
    }
    
    .founder-letter {
        padding: 1.5rem;
        margin: 1.5rem 0 2.5rem;
    }
    
    .founder-letter p {
        font-size: 1.1rem;
    }
    
    .founder-letter p:first-child {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .content-section h1, .faq-section h1, .privacy-section h1 {
        font-size: 2rem;
    }
    
    .content-section h2, .privacy-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p, .faq-section p, .privacy-section p {
        font-size: 1rem;
    }
    
    .founder-letter {
        padding: 1.2rem;
        margin: 1.2rem 0 2rem;
    }
    
    .founder-letter p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .founder-letter p:first-child {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .founder-letter .signature {
        margin-top: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
        padding-left: 1.5rem;
    }
    
    .faq-item h3:before, .faq-answer:before {
        font-size: 1.4rem;
    }
    
    .faq-answer {
        padding-left: 1.5rem;
    }
    
    .faq-answer p, .faq-answer li {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 3rem 0;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .policy-section p {
        font-size: 1rem;
    }
    
    .faq-item ol li, .content-section ol li, .privacy-section ol li {
        font-size: 1rem;
    }
    
    .faq-item h3:before, .faq-answer:before {
        font-size: 1.4rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

/* For very small screens */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .content-section h1, .faq-section h1, .privacy-section h1 {
        font-size: 1.8rem;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .content-section, .faq-section, .privacy-section {
        padding: 100px 0 50px;
    }
}

/* For high-resolution screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .content-section h1, .faq-section h1, .privacy-section h1 {
        font-size: 4rem;
    }
}

/* For print */
@media print {
    .navbar, .footer, .mobile-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-section, .faq-section, .privacy-section {
        padding: 20px 0;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Content Sections */
.content-section, .faq-section, .privacy-section {
    padding: 160px 0 80px;
    background: linear-gradient(to bottom, var(--background), var(--background-light));
}

.content-container, .faq-container, .privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section h1, .faq-section h1, .privacy-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
    text-align: center;
}

.content-section h2, .privacy-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.75rem;
}

.content-section h2:after, .privacy-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.content-section p, .faq-section p, .privacy-section p {
    color: var(--text-light);
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.content-section ul, .privacy-section ul {
    list-style-type: none;
    margin: 1.8rem 0 2.8rem;
    padding-left: 0.5rem;
}

.faq-answer ul {
    list-style-type: none;
    margin: 1.5rem 0 2rem;
    padding-left: 0.5rem;
}

.content-section ul li, .privacy-section ul li, .faq-answer ul li {
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.content-section ul li:before, .privacy-section ul li:before, .faq-answer ul li:before {
    content: "→";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* FAQ Styles */
.faq-section {
    padding: 160px 0 80px;
}

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

.faq-item {
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.25);
    border-color: var(--primary);
}

.faq-item h3 {
    color: var(--text);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 2rem;
}

.faq-item h3:before {
    content: "Q:";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 1.8rem;
    font-style: normal;
    line-height: 1;
    top: 0;
}

.faq-answer {
    position: relative;
    padding-left: 2rem;
}

.faq-answer:before {
    content: "A:";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    font-size: 1.8rem;
    font-style: normal;
    line-height: 1;
}

.faq-item p {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Remove the old styling that was causing the appearance of two answers */
.faq-item p:before {
    content: none;
}

/* Feature cards in About page */
.features-grid {
    margin-top: 3.5rem;
    gap: 2.5rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: var(--background-light);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.25);
    border-color: var(--primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Founder's Letter Styles */
.founder-letter {
    background: var(--background-light);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    margin: 2rem 0 3rem;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
}

.founder-letter p {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.founder-letter p:first-child {
    font-weight: 600;
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
}

.founder-letter .signature {
    text-align: right;
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
    margin-top: 2rem;
}

/* Privacy Policy Styles */
.privacy-section {
    padding: 160px 0 80px;
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.75rem;
}

.policy-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.policy-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

.policy-section strong {
    color: var(--text);
    font-weight: 600;
}

/* Ordered Lists */
.faq-answer ol, .content-section ol, .privacy-section ol {
    list-style-type: none;
    counter-reset: item;
    margin: 1.5rem 0 2rem;
    padding-left: 0.5rem;
}

.faq-answer ol li, .content-section ol li, .privacy-section ol li {
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.faq-answer ol li:before, .content-section ol li:before, .privacy-section ol li:before {
    content: counter(item);
    counter-increment: item;
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 600;
}

/* Responsive adjustments for policy sections */
@media (max-width: 768px) {
    .policy-section h2 {
        font-size: 1.8rem;
    }
    
    .policy-section h2:after {
        width: 40px;
        height: 2px;
    }
    
    .faq-item h3:before, .faq-answer:before {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .policy-section p {
        font-size: 1rem;
    }
    
    .faq-item ol li, .content-section ol li, .privacy-section ol li {
        font-size: 1rem;
    }
    
    .faq-item h3:before, .faq-answer:before {
        font-size: 1.4rem;
    }
}

/* Code or Pre sections */
pre, code {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    color: var(--text);
    font-family: 'Fira Code', monospace;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text);
    background: var(--background-light);
}

td {
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-section h1, .faq-section h1, .privacy-section h1 {
        font-size: 2.5rem;
        text-align: left;
    }
    
    .content-section h2, .privacy-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-item h3 {
        font-size: 1.4rem;
    }
    
    .faq-item h3:before, .faq-answer:before {
        font-size: 1.6rem;
    }
    
    .faq-item {
        padding: 1.8rem;
    }
    
    .feature-card {
        padding: 1.8rem;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
    }
}