/* css/style.css */

/* --- Variables and Basic Setup --- */
:root {
    --bg-dark: #0d1117;
    --bg-light: #161b22;
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    font-size: 16px;
}
html { scroll-behavior: smooth; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.narrow-container { max-width: 800px; }
.section-padding { padding: 80px 0; }
.dark-bg { background-color: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.grid-2-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* --- Header and Navigation --- */
header.site-header {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav.main-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img {
    height: 40px;
    width: 40px; /* Enforce a square shape */
    margin-right: 10px;
    border-radius: 50%; /* This is the key to making it a circle */
    border: 2px solid var(--border-color); /* Adds a subtle, professional border */
    object-fit: cover; /* Prevents the image from being squished */
}
.logo span { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); }
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-primary); }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background-color: var(--text-primary); margin: 5px 0; transition: 0.3s; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary { background-color: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.btn-primary:hover { background-color: #79b8ff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(88, 166, 255, 0.2); }
.btn-secondary { background-color: transparent; color: var(--text-primary); border-color: var(--border-color); }
.btn-secondary:hover { background-color: var(--bg-light); border-color: var(--text-primary); }

/* --- Hero Section --- */
#hero { padding: 100px 0; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); max-width: 650px; margin: 20px auto 30px; }
.hero-cta { display: flex; justify-content: center; gap: 15px; }
.hero-visual { margin-top: 60px; }
.hero-visual img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border-color); }
.shadow-glow { box-shadow: 0 0 40px rgba(88, 166, 255, 0.2), 0 0 15px rgba(88, 166, 255, 0.1); }

/* --- Cards and Features --- */
.section-title { font-size: 2.5rem; margin-bottom: 50px; text-align: center; }
.card { background-color: var(--bg-light); border: 1px solid var(--border-color); padding: 30px; border-radius: 10px; }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card ul { list-style: none; }
.card li { margin-bottom: 10px; }
.before-card { border-left: 3px solid var(--accent-red); }
.after-card { border-left: 3px solid var(--accent-green); }

.feature-card { text-align: center; }
.feature-card img { max-width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; background: #000; }
.feature-card .feature-icon { height: 100px; width: auto; object-fit: contain; }
.feature-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* --- Pricing Section --- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 800px; margin: 0 auto; }
.pricing-card { border: 1px solid var(--border-color); padding: 40px; border-radius: 10px; text-align: center; }
.pricing-card.featured { border-color: var(--accent-blue); transform: scale(1.05); position: relative; box-shadow: 0 10px 30px rgba(88, 166, 255, 0.1); }
.popular-badge { position: absolute; top: 0; right: 20px; background-color: var(--accent-blue); color: #fff; padding: 5px 10px; font-size: 0.8rem; font-weight: 600; border-radius: 0 0 5px 5px; }
.price { font-size: 3rem; font-weight: 700; margin: 10px 0; }
.price .price-term { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.price-desc { color: var(--text-secondary); margin-bottom: 30px; }
.pricing-card ul { list-style: none; margin-bottom: 30px; text-align: left; }
.pricing-card ul li { margin-bottom: 15px; }
.pricing-card .btn { width: 100%; }

/* --- FAQ Section --- */
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { background: none; border: none; width: 100%; text-align: left; padding: 20px 0; font-size: 1.2rem; font-weight: 500; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--text-secondary); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding-bottom: 20px; color: var(--text-secondary); }
.faq-item.active .faq-answer { max-height: 200px; }

/* --- Forms --- */
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--bg-light); border: 1px solid var(--border-color); color: var(--text-primary); padding: 12px; border-radius: 6px; font-size: 1rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-blue); outline: none; }

/* --- System Requirements Section --- */
.requirements-box {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-blue);
    padding: 30px;
    border-radius: 8px;
}
.requirements-box p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}
.requirements-box ul {
    list-style: none;
    padding-left: 0;
}
.requirements-box li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}
.requirements-box li::before {
    content: '✔';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    top: 0;
}
.requirements-box li strong {
    color: var(--text-primary);
}
/* --- Icon Styling --- */
.feature-icon-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.feature-icon-wrapper svg {
    width: 80px;
    height: 80px;
    color: var(--accent-blue);
}
.feature-title-with-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.feature-title-with-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-blue);
    flex-shrink: 0;
}
.feature-title-with-icon h3 {
    margin-bottom: 0;
}
/* --- Download Modal Styling --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.visible {
    display: flex;
    opacity: 1;
}
.modal-content {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}
.modal-content h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}
.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}
.modal-content .download-form input {
    width: 100%;
    margin-bottom: 15px;
}
.modal-content .download-form button {
    width: 100%;
}

#modal-form-status {
    margin-top: 15px;
    font-weight: 500;
}
#modal-form-status.success {
    color: var(--accent-green);
}
#modal-form-status.error {
    color: var(--accent-red);
}
/* --- Footer --- */
footer.site-footer { border-top: 1px solid var(--border-color); padding: 40px 0; text-align: center; color: var(--text-secondary); }

/* --- Getting Started Page & Excel UI Simulation --- */
.excel-example-container {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}
.excel-example-container h3 {
    text-align: center;
    font-size: 1.5rem;
}
.excel-example-container > p { /* Target direct child p */
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;
}
.excel-simulation {
    margin-bottom: 15px;
}
.sim-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background-color: var(--bg-dark);
}
.excel-table th, .excel-table td {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.excel-table thead th {
    background-color: #21262d;
    font-weight: 600;
    text-align: center;
}
.excel-table .row-num {
    background-color: #21262d;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
}
.excel-table code {
    font-family: 'Consolas', 'Menlo', monospace;
    color: #a5d6ff; /* A lighter blue for formulas */
    font-size: 0.85rem;
}
.excel-table .result-cell {
    background-color: rgba(63, 185, 80, 0.1); /* Subtle green highlight */
    color: #afdbb6;
    font-weight: 500;
}
.excel-table .result-cell ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.yields-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 10px 0;
}
.troubleshooting-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 3px solid #f85149; /* Red accent for warnings */
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}
.troubleshooting-box ol {
    margin-top: 20px;
    padding-left: 20px;
}
.troubleshooting-box li {
    margin-bottom: 15px;
}
/* --- Responsive Design --- */
/* --- Responsive YouTube Video Player --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.video-container .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none; /* Override general img border */
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px; /* Creates the triangle shape */
    border-color: transparent transparent transparent #fff;
    margin-left: 5px; /* Centers the triangle */
}
.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(88, 166, 255, 0.8); /* Use accent color on hover */
    border-color: var(--accent-blue);
}
/* --- About Page Specifics --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}
.founder-photo img {
    max-width: 250px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    margin: 0 auto;
    display: block;
}
.founder-story h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.founder-story .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.founder-story p {
    margin-bottom: 15px;
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.principle-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}
.principle-icon {
    margin-bottom: 20px;
}
.principle-icon svg {
    width: 48px;
    height: 48px;
    color: var(--accent-blue);
}
.principle-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.principle-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    .hero-title { font-size: 2.5rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: scale(1); }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .founder-story {
        text-align: left;
    }
}