:root {
    --color-primary: #1ee0ca;           /* teal - main brand color for CTAs */
    --color-secondary: #ff750f;         /* orange - secondary brand color */
    --color-accent: #ff750f;            /* bright teal accent for highlights */
    
    --color-background: #ffffff;        /* white background */
    --color-surface: #f3f4f6;          /* light surface color for cards/stats */

    --color-text-primary: #1a1a1a;      /* main text color */
    --color-text-secondary: #2e2e2e;    /* secondary text color */
    --color-border: #d0d7dd;            /* border color */

    --color-dark: #1a1a1a;              /* dark color for backgrounds */
    --color-light: #ffffff;             /* light color for text on dark backgrounds */

    /* Wave Background Colors - dark blur */
    --wave-color-1: rgba(0, 0, 0, 0.15);
    --wave-color-2: rgba(0, 0, 0, 0.12);
    --wave-color-3: rgba(0, 0, 0, 0.14);
    --wave-color-4: rgba(0, 0, 0, 0.10);
    --wave-color-5: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    position: relative;
    overflow-x: hidden;
}

/* Smooth Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.12) 75%,
        rgba(0, 0, 0, 0.15) 100%
    );
    filter: blur(8px);
}

/* Additional smooth gradient layer */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.01) 0%,
        rgba(0, 0, 0, 0.03) 40%,
        rgba(0, 0, 0, 0.06) 70%,
        rgba(0, 0, 0, 0.09) 100%
    );
    filter: blur(12px);
    opacity: 0.7;
}

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

/* Header */
header {
    background: var(--color-dark); /* dark background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    color: white;
    min-height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent); /* use your bright teal accent for hover */
}

.sign-in {
    background: var(--color-secondary);
    color: var(--color-dark);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1;
    height: auto;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin: 4px 0;
}

.sign-in:hover {
    background: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-dark);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

/* Dashboard */
.dashboard {
    background: var(--color-dark);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dashboard-title {
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--color-dark);
    opacity: 1;
}

.main-content {
    background: var(--color-primary);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--color-dark);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-primary);
}

/* Pre-features Section */
.pre-features {
    padding: 0 0;
    position: relative;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

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

.feature {
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature h3 {
    min-height: 3rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature p {
    background: var(--color-dark);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0;
    flex-grow: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feature:hover {
    transform: translateY(-5px);
}

/* About Page Styles */
.about-section {
    padding: 4rem 0;
}

.about-section .container {
    padding: 0 10px;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

/* Special styling for Inhi's team grid to constrain width */
#advisors .team-grid:first-of-type {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    background: var(--color-dark);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.photo-placeholder {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-photo a:hover .member-img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 2rem;
}

.member-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.member-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-light);
    max-width: 350px;
    margin-bottom: 0.8rem;
}

.member-bio:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .dashboard {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .dashboard-header {
        padding: 0.75rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .flowchart-svg {
        max-width: 100%;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    .logo {
        margin-bottom: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
    }
    
    .about-section .container {
        padding: 0 1.5rem;
    }
}

.flowchart-wrapper {
    background: var(--color-dark);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
}

.flowchart-svg {
    width: 100%;
    height: auto;
    max-width: 500px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.pre-features h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pre-features p {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.curve-divider-top {
    position: relative;
    height: 100px;
    overflow: hidden;
    margin-bottom: -15px;
}

.curve-divider-bottom {
    position: relative;
    height: 100px;
    overflow: hidden;
    margin-top: -15px;
}

.curve-svg {
    width: 100%;
    height: 100px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Footer */
footer {
    background: var(--color-dark);
    color: var(--color-primary);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    min-height: 4rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Content Section Styles */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-section h3:first-child {
    margin-top: 0;
}

.content-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-section ul {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    margin-left: 3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-section li {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Engine Steps Styling */
.content-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agent-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-item {
    background: var(--color-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: transform 0.3s ease;
    border: 3px solid transparent;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-number {
    background: var(--color-primary);
    color: var(--color-text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    min-width: 3rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.step-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-dark);
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 3rem;
}

.step-text a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Details Section Styling */
.details-section {
    margin-top: 3rem;
    background: var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 2rem 0;
}

.details-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-box {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-section {
    margin-left: 2rem;
    margin-right: 2rem;
}

.content-box pre {
    background: var(--color-dark);
    color: var(--color-primary);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.content-box code {
    background: var(--color-dark);
    color: var(--color-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.content-section a {
    text-decoration: none;
    color: inherit;
}

/* Pull Request Styling */
.pr-header {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.pr-title {
    background: var(--color-surface);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text-primary);
}

.pr-content {
    padding: 1.5rem;
}

.pr-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.code-block {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
}

.code-header {
    background: var(--color-surface);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.code-header code {
    background: none;
    padding: 0;
    color: var(--color-text-primary);
    font-weight: 600;
}

.toggle-button {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.toggle-button:hover {
    color: var(--color-text-primary);
}

.code-content {
    background: var(--color-background);
}

.code-content.hidden {
    display: none;
}

/* Diff styling */
.diff-line {
    color: #6b7280;
    font-style: italic;
}

.diff-added {
    background-color: #d1fae5;
    color: #065f46;
}

.diff-removed {
    background-color: #fee2e2;
    color: #991b1b;
} 