/* ============================================
   GLOBAL BASE STYLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

main {
    padding-top: 80px;
}

/* ============================================
   HEADER NAVIGATION
============================================ */
.main-header {
    width: 100%;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.main-header .logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

.main-header .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #4b5563;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #111827;
}

.nav-btn {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.nav-btn-primary {
    padding: 8px 14px;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 6px;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-trust {
    margin-top: 12px;
    color: #6b7280;
    font-size: 0.9rem;
}

.hero-image img {
    max-width: 520px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* ============================================
   SECTION BASE
============================================ */
.section {
    padding: 80px 40px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 40px;
}

/* ============================================
   FEATURES SECTION
============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    transition: 0.2s;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

.feature-card:hover {
    border-color: #cbd5e1;
    background: #f9fafb;
}

/* ============================================
   WORKFLOW SECTION
============================================ */
.workflow-steps {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    text-align: left;
}

.workflow-step h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.workflow-step p {
    color: #6b7280;
}

.workflow-image img {
    margin: 40px auto 0;
    max-width: 800px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* ============================================
   AI + GMAIL SECTION
============================================ */
.ai-gmail-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.ai-card {
    background: #f9fafb;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.ai-card h3 {
    margin-bottom: 8px;
}

.ai-card p {
    color: #6b7280;
}

/* ============================================
   PRICING CTA SECTION
============================================ */
.pricing-cta {
    background: #2563eb;
    color: #ffffff;
    padding: 80px 40px;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.cta-btn {
    background: #ffffff;
    color: #2563eb;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: 8px;
}

.cta-btn:hover {
    background: #e5e7eb;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 60px 40px 20px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
}

.footer-grid h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-grid a {
    display: block;
    color: #6b7280;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer-grid a:hover {
    color: #111827;
}

.footer-bottom {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image img {
        margin: 20px auto 0;
    }

    .nav-links {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 20px;
    }

    .main-header {
        padding: 0 20px;
    }
}

/* AUTH PAGES */
.auth-section {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.auth-container {
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    padding: 40px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #6b7280;
}

.auth-form .auth-group {
    margin-bottom: 20px;
}

.auth-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.auth-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.auth-btn {
    width: 100%;
    margin-top: 10px;
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
}

/* PRICING */
.pricing-grid {
    max-width: 1100px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px 30px;
    background: #ffffff;
    position: relative;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0 20px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: #6b7280;
}

.pricing-card.featured {
    border: 2px solid #2563eb;
    background: #f0f7ff;
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #2563eb;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.blog-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.blog-card {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    text-align: left;
    transition: 0.2s;
}

.blog-card:hover {
    background: #f9fafb;
}

.blog-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.blog-card p {
    color: #6b7280;
}

.blog-date {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* ============================================
   CRM DASHBOARD
============================================ */
.crm-container {
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

.crm-title {
    font-size: 2rem;
    font-weight: 700;
}

.crm-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
}

.crm-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.crm-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.crm-widget h3 {
    color: #6b7280;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.crm-widget-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.crm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.crm-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 25px;
    border-radius: 12px;
}

.crm-panel h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.crm-empty {
    color: #9ca3af;
    font-size: 0.95rem;
}

.crm-list {
    list-style: none;
}

.crm-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.crm-list li:last-child {
    border-bottom: none;
}

.small {
    font-size: 0.85rem;
    color: #6b7280;
}

.crm-quick-actions {
    margin-top: 40px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.qa-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: #f9fafb;
    transition: 0.25s;
}

.qa-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.qa-card h3 {
    margin-bottom: 8px;
}

/* ============================================
   INVESTORS LIST
============================================ */
.investor-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.investor-search-form {
    display: flex;
    gap: 10px;
}

.investor-search-form input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    width: 220px;
}

.investor-search-form button {
    padding: 10px 16px;
    background: #2563eb;
    border-radius: 8px;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.investor-filters {
    margin-bottom: 25px;
}

.filter-form {
    display: flex;
    gap: 20px;
}

.filter-group label {
    font-size: 0.8rem;
    display: block;
    color: #6b7280;
    margin-bottom: 5px;
}

.filter-group select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    width: 180px;
}

.investor-table-wrapper {
    overflow-x: auto;
}

.investor-table {
    width: 100%;
    border-collapse: collapse;
}

.investor-table th {
    background: #f3f4f6;
    padding: 14px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.investor-table td {
    padding: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.empty-text {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
}

.actions a {
    margin-right: 10px;
    font-size: 0.9rem;
}

.actions a.delete {
    color: #dc2626;
}

/* ============================================
   INVESTOR PROFILE PAGE
============================================ */

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-actions {
    display: flex;
    gap: 12px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.profile-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    background: #ffffff;
}

.profile-section-title {
    font-size: 1.1rem;
    margin-bottom: 18px;
    font-weight: 600;
}

.profile-item {
    margin-bottom: 16px;
}

.profile-item label {
    font-size: 0.8rem;
    color: #6b7280;
}

.profile-item input,
.profile-item textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-top: 6px;
}

.profile-textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

/* TIMELINE */

.timeline-section {
    margin-top: 50px;
}

.timeline-list {
    list-style: none;
}

.timeline-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

.timeline-icon {
    font-size: 1.6rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.timeline-date {
    color: #9ca3af;
    font-size: 0.85rem;
}

.timeline-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.timeline-message {
    white-space: pre-wrap;
    line-height: 1.5;
}


/* ============================================
   ADD / EDIT INVESTOR FORM
============================================ */
.form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    max-width: 900px;
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.form-full {
    grid-column: 1 / -1;
}


.delete-card {
    background: #fff0f0;
    padding: 25px;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    max-width: 600px;
    margin-top: 25px;
}

.btn-danger {
    background: #dc2626;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #b91c1c;
}


/* TASK LIST */
.task-list { margin-top: 25px; }

.task-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.task-due {
    color: #6b7280;
    font-size: 0.85rem;
}

.btn-small,
.btn-small-success,
.btn-small-danger {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
}

.btn-small { background: #e5e7eb; color: black; }
.btn-small-success { background: #16a34a; color:white; }
.btn-small-danger { background: #dc2626; color:white; }

.tab-row { margin-top: 15px; margin-bottom: 20px; }
.tab {
    padding: 8px 14px;
    border-radius: 6px;
    background: #f3f4f6;
    margin-right: 10px;
}
.tab.active { background:#2563eb; color:white; }
