/* ============================================
   BuddyDrive Website
   Modern, clean design with dark theme
   ============================================ */

/* CSS Variables - BuddyDrive: Secure Backup Theme */
:root {
    /* Deep blue/teal palette */
    --color-deep-ocean: #0a1628;
    --color-midnight: #0d1e36;
    --color-navy: #132844;
    --color-navy-light: #1a365d;
    --color-navy-dark: #060d18;

    /* BuddyDrive brand - teal/cyan */
    --color-teal: #14b8a6;
    --color-teal-light: #5eead4;
    --color-teal-dark: #0d9488;
    --color-cyan: #06b6d4;
    --color-cyan-light: #67e8f9;

    /* Accent colors */
    --color-accent-blue: #3b82f6;
    --color-accent-purple: #8b5cf6;
    --color-accent-green: #10b981;
    --color-accent-orange: #f59e0b;
    --color-accent-red: #ef4444;

    /* Background colors */
    --color-bg: #0a1628;
    --color-bg-secondary: #0d1e36;
    --color-bg-tertiary: #132844;
    --color-bg-code: #060d18;

    /* Text colors */
    --color-text: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    /* Primary accent - Teal */
    --color-primary: #14b8a6;
    --color-primary-light: #5eead4;
    --color-primary-dark: #0d9488;

    /* Secondary accent - Cyan */
    --color-secondary: #06b6d4;
    --color-secondary-light: #67e8f9;

    --color-border: #1e3a5f;
    --color-border-light: #2d4a6f;

    /* Syntax colors */
    --syntax-comment: #6b7280;
    --syntax-type: #67d8ef;
    --syntax-keyword: #14b8a6;
    --syntax-string: #a5d6a7;
    --syntax-number: #ffd27d;
    --syntax-operator: #5eead4;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.15);

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary-light);
}

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    background: var(--color-primary);
    color: var(--color-bg) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.nav-cta:hover {
    background: var(--color-primary-light);
    color: var(--color-bg) !important;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-teal) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--color-primary-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
}

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

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

.btn-secondary:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--color-primary);
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

/* ============================================
   Sections
   ============================================ */

section {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Features Grid */
.features {
    background: var(--color-bg-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(20, 184, 166, 0.1);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.feature-card code {
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

/* ============================================
   Tables
   ============================================ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background: var(--color-bg-tertiary);
    font-weight: 600;
    color: var(--color-text);
}

.comparison-table td {
    color: var(--color-text-secondary);
}

.comparison-table tr:hover td {
    background: rgba(20, 184, 166, 0.05);
}

/* ============================================
   Code Blocks
   ============================================ */

pre {
    background: var(--color-bg-code);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
}

code {
    font-family: var(--font-mono);
}

pre code {
    background: none;
    padding: 0;
}

:not(pre) > code {
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.code-window {
    background: linear-gradient(145deg, rgba(13, 30, 54, 0.95) 0%, rgba(6, 13, 24, 0.98) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(20, 184, 166, 0.1);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #10b981; }

.code-title {
    color: var(--color-text-muted);
    font-size: 13px;
    font-family: var(--font-mono);
}

.code-body {
    padding: 20px;
    overflow-x: auto;
}

.code-body pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* Syntax highlighting */
.syntax-keyword { color: var(--syntax-keyword); }
.syntax-type { color: var(--syntax-type); }
.syntax-string { color: var(--syntax-string); }
.syntax-number { color: var(--syntax-number); }
.syntax-operator { color: var(--syntax-operator); }
.syntax-comment { color: var(--syntax-comment); font-style: italic; }

/* ============================================
   Steps / How It Works
   ============================================ */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step p {
    color: var(--color-text-secondary);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--color-text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: 12px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

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

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

.footer-column a {
    color: var(--color-text-secondary);
    font-size: 15px;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================
   Page Headers
   ============================================ */

.page-header {
    background: var(--color-bg-secondary);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* ============================================
   Content Pages
   ============================================ */

.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.content-page h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.content-page h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.content-page h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.content-page h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.content-page p {
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.content-page ul,
.content-page ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content-page li {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

.content-page strong {
    color: var(--color-text);
}

.content-page blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.hidden { display: none; }

/* ============================================
   Animations
   ============================================ */

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

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

/* Scroll cue */
.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-cue-text {
    font-size: 14px;
    color: var(--color-text-muted);
}

.scroll-cue-arrow {
    font-size: 24px;
    color: var(--color-primary);
}

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

/* ============================================
   Diagrams (ASCII-style)
   ============================================ */

.diagram {
    background: var(--color-bg-code);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.4;
    overflow-x: auto;
    color: var(--color-text-secondary);
}

.diagram pre {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   Checkboxes (Security page)
   ============================================ */

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.checklist li::before {
    content: "☐";
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ============================================
   Responsive adjustments
   ============================================ */

@media (max-width: 640px) {
    .section-title {
        font-size: 32px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .content-page h2 {
        font-size: 28px;
    }
    
    .content-page h3 {
        font-size: 22px;
    }
}
