/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #0f172a;
}

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

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(32, 178, 170, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #20b2aa;
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #20b2aa;
}

.nav-link.github-link {
    background: #1e293b;
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #20b2aa;
}

.nav-link.github-link:hover {
    background: #20b2aa;
    color: #0f172a;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.hero-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bitsacco-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.logo-emblem {
    position: relative;
    width: 70px;
    height: 70px;
}

.logo-circle {
    width: 70px;
    height: 70px;
    border: 2px solid #20b2aa;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: 
        inset 0 0 0 1px #20b2aa,
        0 0 0 1px #20b2aa;
}

.logo-knight {
    width: 40px;
    height: 40px;
    position: relative;
}

/* Horse head - more detailed shape */
.logo-knight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 16px;
    background: #20b2aa;
    border-radius: 6px 6px 2px 2px;
    clip-path: polygon(20% 0%, 80% 0%, 90% 30%, 85% 60%, 70% 80%, 30% 80%, 15% 60%, 10% 30%);
}

/* Horse neck */
.logo-knight::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 12px;
    background: #20b2aa;
    border-radius: 3px;
}

/* Wheeled base */
.logo-knight .wheel-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 8px;
    background: #20b2aa;
    border-radius: 4px;
}

.logo-knight .wheel-base::before,
.logo-knight .wheel-base::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #20b2aa;
    border-radius: 50%;
    border: 1px solid #20b2aa;
}

.logo-knight .wheel-base::before {
    left: -4px;
}

.logo-knight .wheel-base::after {
    right: -4px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #20b2aa;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bitsacco-logo:hover {
    transform: scale(1.05);
}

.bitsacco-logo:hover .logo-circle {
    box-shadow: 0 0 20px rgba(32, 178, 170, 0.5);
}

.bitsacco-logo:hover .logo-text {
    text-shadow: 0 0 10px rgba(32, 178, 170, 0.5);
}

.bitcoin-price-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.bitcoin-price-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #20b2aa;
    font-weight: 600;
    font-size: 1.1rem;
}

.bitcoin-price-header i {
    font-size: 1.3rem;
}

.bitcoin-price-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    color: #d1d5db;
    font-weight: 500;
}

.price-value {
    color: #40e0d0;
    font-weight: 700;
    font-size: 1.1rem;
}

.price-update {
    text-align: center;
    margin-top: 10px;
    color: #9ca3af;
}

.price-update small {
    font-size: 0.85rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.bitsacco-catchphrase {
    color: #20b2aa;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(45deg, #20b2aa, #40e0d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
    line-height: 1.7;
    color: #cbd5e1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #20b2aa;
    color: white;
}

.btn-primary:hover {
    background: #008b8b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(32, 178, 170, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid #20b2aa;
}

.btn-secondary:hover {
    background: rgba(32, 178, 170, 0.2);
    border-color: #40e0d0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(32, 178, 170, 0.2);
}

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

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #0f172a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0 auto;
    border: 2px solid #334155;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1e293b;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.chat-messages {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.user-message {
    background: #20b2aa;
    color: #0f172a;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: #334155;
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Sections */
section {
    padding: 80px 0;
    background: #0f172a;
}

section:nth-child(even) {
    background: #1e293b;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.section-description {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #1e293b;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(32, 178, 170, 0.2);
    border-color: #20b2aa;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #20b2aa, #40e0d0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #0f172a;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.feature-description {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Commands Grid */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.command-category {
    background: #1e293b;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.category-title i {
    color: #20b2aa;
}

.command-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.command-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: #334155;
    border-radius: 8px;
    border-left: 4px solid #20b2aa;
}

.command {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #0f172a;
    color: #40e0d0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.command-desc {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* API Section */
.api {
    background: #f8fafc;
}

.api-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.api-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1f2937;
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.endpoint-item {
    display: grid;
    grid-template-columns: 80px 1fr 2fr;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.endpoint-method {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: white;
}

.endpoint-method.get {
    background: #10b981;
}

.endpoint-method.post {
    background: #3b82f6;
}

.endpoint-path {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    color: #1f2937;
}

.endpoint-desc {
    color: #64748b;
    font-size: 0.9rem;
}

.code-block {
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #374151;
    border-bottom: 1px solid #4b5563;
}

.code-title {
    color: #f3f4f6;
    font-weight: 600;
}

.copy-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.copy-btn:hover {
    color: #f3f4f6;
}

.code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.code-block code {
    color: #fbbf24;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Deployment Section */
.deployment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.deployment-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.deployment-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.deployment-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
}

.deployment-description {
    color: #64748b;
    margin-bottom: 20px;
}

.deployment-code {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}

.deployment-code pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    color: #1f2937;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 60px 0 20px;
    border-top: 1px solid #334155;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-description {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #20b2aa;
    color: #0f172a;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f1f5f9;
}

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

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #20b2aa;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-link:hover {
    color: #20b2aa;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    color: #f1f5f9;
    background: rgba(32, 178, 170, 0.1);
    border-color: rgba(32, 178, 170, 0.3);
    transform: translateX(5px);
}

.social-link.twitter:hover {
    color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
    border-color: rgba(29, 161, 242, 0.3);
}

.social-link.linkedin:hover {
    color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
    border-color: rgba(0, 119, 181, 0.3);
}

.social-link.github:hover {
    color: #333;
    background: rgba(51, 51, 51, 0.1);
    border-color: rgba(51, 51, 51, 0.3);
}

.social-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .bitsacco-catchphrase {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-branding {
        margin-bottom: 30px;
    }
    
    .logo-emblem {
        width: 60px;
        height: 60px;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-knight {
        width: 30px;
        height: 30px;
    }
    
    .logo-knight::before {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 12px solid #20b2aa;
    }
    
    .logo-knight::after {
        width: 18px;
        height: 3px;
    }
    
    .logo-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .bitcoin-price-card {
        margin: 20px 0;
        padding: 15px;
    }
    
    .bitcoin-price-header {
        font-size: 1rem;
    }
    
    .price-value {
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .api-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .deployment-options {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-branding {
        margin-bottom: 25px;
    }
    
    .logo-emblem {
        width: 55px;
        height: 55px;
    }
    
    .logo-circle {
        width: 55px;
        height: 55px;
    }
    
    .logo-knight {
        width: 28px;
        height: 28px;
    }
    
    .logo-knight::before {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 10px solid #20b2aa;
    }
    
    .logo-knight::after {
        width: 16px;
        height: 3px;
    }
    
    .logo-text {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }
    
    .bitsacco-catchphrase {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .command-category {
        padding: 20px;
    }
    
    .deployment-card {
        padding: 20px;
    }
}

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

.feature-card,
.command-category,
.deployment-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid #20b2aa;
    outline-offset: 2px;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    .navbar,
    .hero,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
        margin-bottom: 10pt;
    }
}
