/* Veda Notes - Documentation Website Styles */

:root {
    --primary-color: #FFAB00;
    --primary-dark: #E69A00;
    --secondary-color: #1A237E;
    --accent-color: #FF6B35;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --bg-cream: #faf8f5;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--white) 50%, #fff8e7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,171,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255,171,0,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,171,0,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

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

/* Outline button for dark backgrounds (EnvoyMesh section) */
.btn-light-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-light-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn-large span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-large span small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Features Preview */
.features-preview {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255,171,0,0.1) 0%, rgba(255,107,53,0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Showcase Section */
.showcase {
    background: var(--white);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.showcase-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.showcase-list {
    list-style: none;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.showcase-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.showcase-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.showcase-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.showcase-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* AI Chat Section */
.ai-chat {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0d1642 100%);
    color: var(--white);
}

.ai-chat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ai-chat-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.ai-chat-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
}

.ai-feature i {
    width: 50px;
    height: 50px;
    background: rgba(255,171,0,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.ai-chat-images {
    display: flex;
    justify-content: center;
}

.ai-chat-images .showcase-img {
    max-width: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* iPad Showcase */
.ipad-showcase {
    background: var(--bg-cream);
}

.ipad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ipad-grid img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.ipad-grid img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* EnvoyMesh Section */
.envoy-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d1642 100%);
    color: var(--white);
}

.envoy-section .section-title {
    color: var(--white);
}

.envoy-section .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.envoy-section .feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.envoy-section .feature-card h3 {
    color: var(--white);
}

.envoy-section .feature-card p {
    color: rgba(255,255,255,0.7);
}

.envoy-section .feature-icon {
    background: linear-gradient(135deg, rgba(255,171,0,0.2) 0%, rgba(255,107,53,0.2) 100%);
}

.envoy-section .feature-icon i {
    color: var(--primary-color);
}

.envoy-download-links {
    text-align: center;
    margin-top: 48px;
}

.envoy-download-links h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 24px;
}

.envoy-link-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.envoy-hint {
    margin-top: 20px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

.envoy-hint a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* EnvoyMesh inline download links (features page) */
.envoy-download-inline {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.envoy-download-inline a {
    color: var(--primary-color);
    text-decoration: underline;
}

.envoy-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(255,171,0,0.3);
}

/* Download Section */
.download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.download p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 40px;
}

.download .btn-primary {
    background: var(--white);
    color: var(--text-dark);
    margin-bottom: 20px;
}

.download .btn-primary:hover {
    background: var(--bg-light);
}

.download-note {
    font-size: 0.95rem !important;
    opacity: 0.9;
}

/* Download cards: button + QR side by side per platform */
.download-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* QR codes (shared by Veda download and EnvoyGo) */
.qr-codes {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
    background: var(--white);
}

.qr-code p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* EnvoyGo QR codes inside dark EnvoyMesh section */
.envoygo-qr-codes {
    margin-top: 40px;
}

.envoygo-qr-codes h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 24px;
    text-align: center;
}

.envoygo-qr-codes .qr-code img {
    background: var(--white);
    padding: 8px;
}

.envoygo-qr-codes .qr-code p {
    color: rgba(255,255,255,0.8);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

.footer-bottom i {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .phone-mockup {
        width: 250px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-content,
    .ai-chat-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .showcase-images {
        order: -1;
    }
    
    .ipad-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-images {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Page Header */
.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--white) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Page */
.feature-detail {
    padding: 80px 0;
}

.feature-detail:nth-child(even) {
    background: var(--bg-light);
}

.feature-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-detail:nth-child(even) .feature-detail-content {
    direction: rtl;
}

.feature-detail:nth-child(even) .feature-detail-text {
    direction: ltr;
}

.feature-detail-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-detail-text p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.feature-detail-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Support Page */
.support-section {
    padding: 60px 0;
}

.support-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.support-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-card h2 i {
    color: var(--primary-color);
}

.support-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255,171,0,0.1);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-item span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255,171,0,0.05);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Privacy Page */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.privacy-content h3 {
    font-size: 1.25rem;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.privacy-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.privacy-content ul {
    margin: 16px 0 16px 20px;
    color: var(--text-light);
}

.privacy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .privacy-content {
        padding: 20px;
        margin: 0 20px;
    }
    
    .feature-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-detail:nth-child(even) .feature-detail-content {
        direction: ltr;
    }
}