/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #d4d4d4;
    background: linear-gradient(135deg, #0c2461 0%, #3742fa 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
    /* Content is already constrained by .container */
}

.hero-layout {
    /* Remove duplicate max-width - handled by hero-content */
}

.hero-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-main {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-content-text {
    flex: 1;
}

/* Mascot */
.mascot-container {
    flex-shrink: 0;
    margin-right: 1rem;
}

.mascot {
    width: 200px;
    height: auto;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    display: block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.footer-mascot {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-mascot-img {
    width: 60px;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.footer-mascot p {
    margin: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.mission-statement {
    font-size: 1.1rem;
    font-style: italic;
    color: #a8e6cf;
    background: rgba(168, 230, 207, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #a8e6cf;
    margin: 1.5rem 0;
}

.book-announcement {
    font-size: 1.1rem;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    }
    to {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    }
}

/* Responsive layout */
@media (max-width: 768px) {
    .hero-header {
        margin-bottom: 1rem; /* Reduce space before mascot */
    }
    
    .hero-main {
        flex-direction: column; /* Stack vertically on mobile */
        align-items: center;
        gap: 0;
    }
    
    .mascot-container {
        order: -1; /* Move mascot before text content */
        margin: 1.5rem auto; /* Space above/below and center horizontally */
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .mascot {
        width: 150px; /* Slightly larger on mobile since it's centered */
    }
    
    .hero-content-text {
        width: 100%;
        text-align: center; /* Center text content on mobile */
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .description {
        font-size: 1.1rem;
        text-align: left; /* Keep description left-aligned */
        margin-top: 1rem;
    }
    
    .book-announcement {
        text-align: center;
    }
    
    .cta-buttons {
        text-align: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .mascot-container {
        margin: 1rem auto; /* Slightly less margin on very small screens, center horizontally */
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .mascot {
        width: 120px; /* Smaller on very small screens */
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-header {
        margin-bottom: 0.75rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .btn {
        margin: 0;
        padding: 10px 20px;
        font-size: 1rem;
    }
}

.logo {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #ffffff;
}

.logo-text {
    display: inline-block;
}

.version {
    font-size: 1.2rem;
    color: #ffd700;
    margin-left: 1rem;
    opacity: 0.8;
}

.tagline {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #e8e8e8;
    font-weight: 300;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #c0c0c0;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    background: linear-gradient(45deg, #ee5a52, #ff6b6b);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-icon {
    margin-right: 8px;
}

.cta-buttons {
    margin-bottom: 2rem;
}

/* Main Content */
.main-content {
    background: #1e1e1e;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-header p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features {
    padding: 80px 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: #2d2d30;
    border: 1px solid #3e3e42;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3742fa, #ff6b6b, #ffd700);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #4e4e52;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.feature-card p {
    color: #c0c0c0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    color: #a0a0a0;
}

.feature-list li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Code Examples */
.code-examples {
    background: #252526;
    border-top: 1px solid #3e3e42;
    border-bottom: 1px solid #3e3e42;
    padding: 80px 40px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.example-card {
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    overflow: hidden;
}

.example-card h3 {
    background: #2d2d30;
    padding: 1rem 1.5rem;
    margin: 0;
    color: #ffffff;
    border-bottom: 1px solid #3e3e42;
}

.code-block {
    margin: 0;
    padding: 1.5rem;
    background: #1e1e1e;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    color: #d4d4d4;
    white-space: pre;
}

/* Getting Started */
.getting-started {
    background: #1e1e1e;
    padding: 80px 40px;
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: linear-gradient(45deg, #3742fa, #ff6b6b);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #c0c0c0;
    margin: 0;
}

/* Keyboard Shortcuts */
.keyboard-shortcuts {
    background: #2d2d30;
    border: 1px solid #3e3e42;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.keyboard-shortcuts h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.shortcut span {
    color: #c0c0c0;
}

kbd {
    background: #404040;
    border: 1px solid #606060;
    border-radius: 4px;
    padding: 2px 8px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #ffffff;
    white-space: nowrap;
}

/* Version Info */
.version-info {
    background: #252526;
    border-top: 1px solid #3e3e42;
    padding: 80px 40px;
}

.version-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.version-column {
    background: #2d2d30;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    padding: 1.5rem;
}

.version-column h3 {
    color: #4caf50;
    margin-bottom: 1rem;
}

.version-column ul {
    list-style: none;
    color: #c0c0c0;
}

.version-column li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.version-column li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.changelog-highlight {
    background: linear-gradient(135deg, #2d5aa0 0%, #3742fa 100%);
    border: 1px solid #4a73c4;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.changelog-highlight h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.changelog-highlight ul {
    list-style: none;
    color: #e6e6e6;
}

.changelog-highlight li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.8rem;
    line-height: 1.5;
}

.changelog-highlight li::before {
    content: '🚀';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.changelog-highlight strong {
    color: #ffd700;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #a8e6cf;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-reasons {
    list-style: none;
    padding: 0;
}

.contact-reasons li {
    margin-bottom: 1rem;
    padding-left: 0;
    color: #d4d4d4;
    line-height: 1.6;
}

.contact-reasons li strong {
    color: #ffffff;
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3742fa;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(55, 66, 250, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Form Status */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.form-status.success {
    background: rgba(168, 230, 207, 0.2);
    border: 1px solid #a8e6cf;
    color: #a8e6cf;
}

.form-status.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    background: #1a1a1a;
    border-top: 1px solid #3e3e42;
    padding: 3rem 40px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid #3e3e42;
    padding-top: 1rem;
    text-align: center;
    color: #808080;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    /* Keep mascot at consistent 120px width on tablets */
    .mascot {
        width: 120px !important;
        height: auto;
    }
    
    .version {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .btn {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .examples-grid,
    .steps {
        grid-template-columns: 1fr;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    /* Keep mascot at consistent 120px width even on small phones */
    .mascot {
        width: 120px !important;
        height: auto;
    }
    
    /* Ensure mascot container doesn't affect positioning */
    .mascot-container {
        width: 100%;
        text-align: center;
    }
    
    .footer-mascot {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-mascot-img {
        margin: 0 auto 1rem;
    }
    
    .feature-card,
    .example-card,
    .keyboard-shortcuts {
        padding: 1.5rem;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }