:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --primary-accent: #1e88e5;
    --text-main: #ffffff;
    --text-alt: #8b949e;
    --border: #30363d;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* UPDATED: Increased max-width to make the index.html slightly wider */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 32px;
    margin-right: 12px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-alt);
    transition: 0.3s;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-contact-link {
    font-weight: 700;
    color: #fff !important;
    padding-bottom: 2px;
}

.nav-contact-link:hover {
    color: var(--primary-accent) !important;
}

/* Hero */
#hero {
    padding: 8rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

#hero h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-alt);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* UPDATED: link CTA styling for default underline */
.text-cta {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    padding-bottom: 3px;
    /* Blue line is always present now */
    border-bottom: 2px solid var(--primary-accent);
    transition: 0.2s;
}

.text-cta:hover {
    opacity: 0.8;
    /* Subtle mouse-over feedback */
}

/* Grid Logic */
.grid {
    display: grid;
    gap: 2rem;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

/* Solutions Card Styling */
#solutions {
    padding: 6rem 0;
    background: #090c10;
}

.solutions-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.solution-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 8px;
}

.solution-card h3 {
    color: var(--primary-accent);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-left: 4px solid var(--primary-accent);
    padding-left: 15px;
}

.solution-list {
    list-style: none;
    color: var(--text-alt);
}

.solution-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.solution-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-accent);
}

/* About Us / Founders */
#about {
    padding: 6rem 0;
}

.founders-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.founder-card {
    text-align: center;
}

.founder-img {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--border);
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

/* Contact Form and Text Constraints */
#contact {
    padding: 6rem 0;
    background: var(--card-bg);
}

.contact-flex {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1.2;
}

/* Shifted slightly to support longer titles on 1 line */

/* UPDATED: Strict constraint for "Secure Your Next Step" to fit on 1 line */
.form-title {
    font-size: 2.25rem;
    /* Slightly smaller so it fits */
    letter-spacing: -1px;
    line-height: 1.1;
    white-space: nowrap;
    /* Forces text to NOT wrap to 2 lines */
    overflow: hidden;
    /* Crucial for strict 1-line enforcement */
    margin-bottom: 1rem;
}

/* UPDATED: Strict constraint for subtext to wrap exactly to 2 lines maximum */
.form-subtext {
    font-size: 1.1rem;
    color: var(--text-alt);
    margin-bottom: 2.5rem;
    max-width: 480px;
    /* Limit width precisely so text must wrap at this point */
}

.contact-form-container {
    flex: 1.5;
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: var(--text-alt);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
textarea {
    width: 100%;
    background: #0d1117;
    border: 1px solid var(--border);
    padding: 0.8rem;
    color: white;
    border-radius: 4px;
}

button {
    width: 100%;
    background: var(--primary-accent);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* Legal & Footer */
#legal {
    padding: 4rem 0;
    color: var(--text-alt);
    font-size: 0.9rem;
}

#legal h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
}

footer {
    padding: 2rem 0;
    text-align: center;
    color: #484f58;
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {

    .solutions-grid,
    .founders-grid,
    .contact-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    /* UPDATED: Mobile constraint overrides for better visibility */
    .form-title {
        white-space: normal;
        overflow: visible;
        font-size: 2rem;
    }

    .form-subtext {
        max-width: 100%;
    }
}