/* Base styles and new dynamic background */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #010414; /* Darker base color */
    color: white;
    overflow-x: hidden;
}

#root {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 120px 20px 40px; /* Added top padding for header */
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Moving background shapes */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #010414;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.shape1 {
    width: 450px;
    height: 450px;
    background: rgba(25, 118, 210, 0.3);
    top: -150px;
    left: -150px;
    animation: moveShape1 25s infinite alternate ease-in-out;
}

.shape2 {
    width: 500px;
    height: 500px;
    background: rgba(66, 165, 245, 0.25);
    bottom: -200px;
    right: -200px;
    animation: moveShape2 30s infinite alternate ease-in-out;
}

.shape3 {
    width: 300px;
    height: 300px;
    background: rgba(13, 71, 161, 0.3);
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    animation: moveShape3 20s infinite alternate ease-in-out;
}

@keyframes moveShape1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(200px, 100px) scale(1.2); }
}
@keyframes moveShape2 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-200px, -150px) scale(0.8); }
}
@keyframes moveShape3 {
    from { transform: translate(50%, 50%) scale(1); }
    to { transform: translate(calc(50% + 100px), calc(50% - 100px)) scale(1.1); }
}

/* Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
    background: rgba(1, 4, 20, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}
.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 20px;
}
.nav-link {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s;
    padding: 5px 10px;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* Hide on very small screens for now to keep the bar simple, or keep it */
    }
}

/* Card Styles with Glowing Border */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate-glow {
    to { --angle: 360deg; }
}

.card {
    position: relative;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    background: rgba(10, 25, 47, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: conic-gradient(from var(--angle), transparent 20%, #42a5f5, #0d47a1, transparent 80%);
    z-index: -1;
    border-radius: 20px;
    padding: 3px;
    animation: rotate-glow 5s linear infinite;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Landing Page Styles */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.top-heading-group {
    margin-bottom: 2rem;
}

.main-heading {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.gradient-text {
    background: linear-gradient(110deg, #a8c0ff 8%, #fafafa 18%, #a8c0ff 33%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    background-size: 250% 250%;
    animation: chroma-animation 10s ease infinite;
}

@keyframes chroma-animation {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

.sub-heading {
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 400;
    color: #fff;
    margin-top: 0.75rem;
    max-width: 500px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cta-button {
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(66, 165, 245, 0.4), 0 0 25px rgba(66, 165, 245, 0.2);
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 165, 245, 0.3), 0 0 40px rgba(66, 165, 245, 0.5);
}
.header-apply-button {
    padding: 10px 22px;
    font-size: 1rem;
}
.main-apply-button {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.social-links-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 1rem;
}
.social-links-bottom a {
    color: #aaa;
    transition: color 0.3s ease;
}
.social-links-bottom a:hover {
    color: #fff;
}
.social-links-bottom svg {
    width: 28px;
    height: 28px;
}

/* Form & Result Styles */
.form-question, .result-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-question label {
    font-size: 1.5rem;
    font-weight: 500;
}

.form-input {
    padding: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 10px rgba(66, 165, 245, 0.5);
}

.radio-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    margin: 0 auto;
    width: fit-content;
}

.radio-option {
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.next-button {
    padding: 12px 30px;
    align-self: center;
    margin-top: 1rem;
}

.error-message {
    color: #ff8a80;
    margin-top: -15px;
    font-weight: 500;
}

.result-container h2 {
    font-size: 2rem;
    color: #42a5f5;
    margin: 0;
}

.result-container p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.calendly-link {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 1rem;
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.calendly-link:hover {
    background-color: #45a049;
}

/* Custom Sections (About & Services) */
.info-card {
    text-align: left;
    max-width: 800px;
    padding: 30px 40px;
}
.section-heading {
    font-size: 2rem;
    color: #42a5f5;
    margin-bottom: 1rem;
    margin-top: 0;
}
.section-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}
.services-list {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    padding-left: 20px;
    margin-bottom: 0;
}
.services-list li {
    margin-bottom: 15px;
}
.services-list li:last-child {
    margin-bottom: 0;
}

/* ─── Stats Bar ────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 90%;
    max-width: 800px;
    margin-top: 1rem;
}
.stat-item {
    background: rgba(10, 25, 47, 0.4);
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.stat-num {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.78rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}
@media (max-width: 600px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Section Block (shared) ───────────────────────────── */
.section-block {
    width: 90%;
    max-width: 1000px;
    text-align: center;
    margin-top: 2rem;
}
.block-heading {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.block-sub {
    font-size: 1rem;
    color: #aaa;
    margin: 0 0 1.8rem;
}

/* ─── The System Grid ──────────────────────────────────── */
.system-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    text-align: left;
}
.system-card {
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 26px;
    transition: border-color 0.3s, transform 0.3s;
}
.system-card:hover {
    border-color: rgba(66, 165, 245, 0.4);
    transform: translateY(-4px);
}
.system-num {
    font-size: 0.78rem;
    color: #42a5f5;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}
.system-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.system-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}
@media (max-width: 800px) {
    .system-grid { grid-template-columns: 1fr; }
}

/* ─── Track Record / Results ───────────────────────────── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    text-align: left;
}
.results-grid.four {
    grid-template-columns: repeat(4, 1fr);
}
.result-card {
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 22px;
    transition: transform 0.3s, border-color 0.3s;
}
.result-card:hover {
    transform: translateY(-4px);
    border-color: rgba(66, 165, 245, 0.4);
}
.result-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}
.result-tag {
    font-size: 0.78rem;
    color: #82b1ff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 4px 0 14px;
}
.result-metric {
    font-size: 1.7rem;
    font-weight: 800;
    color: #42a5f5;
    letter-spacing: -0.02em;
}
.result-detail {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 6px;
    line-height: 1.4;
}
.result-card.highlight {
    border-color: rgba(66, 165, 245, 0.5);
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.18), rgba(10, 25, 47, 0.6));
    box-shadow: 0 0 20px rgba(66, 165, 245, 0.15);
}
.result-card.highlight .result-metric { color: #82b1ff; }
@media (max-width: 1000px) {
    .results-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .results-grid, .results-grid.four { grid-template-columns: 1fr; }
}

/* ─── Products Grid ────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: left;
}
.product-card {
    background: rgba(10, 25, 47, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}
.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.product-desc {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.5;
}
@media (max-width: 800px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* ─── Why Now ──────────────────────────────────────────── */
.why-card {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.25), rgba(10, 25, 47, 0.5));
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 16px;
    padding: 32px 36px;
    text-align: left;
}
.why-text {
    font-size: 1rem;
    color: #d5d5d5;
    line-height: 1.7;
    margin: 0 0 1rem;
}
.why-text:last-child { margin-bottom: 0; }

/* ─── Founder Card ─────────────────────────────────────── */
.founder-card {
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 28px;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}
.founder-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}
.founder-role {
    font-size: 0.9rem;
    color: #82b1ff;
    margin: 6px 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.founder-bio {
    font-size: 0.98rem;
    color: #ccc;
    line-height: 1.65;
}

/* ─── Entity Block ─────────────────────────────────────── */
.entity-block {
    width: 90%;
    max-width: 800px;
    margin-top: 2rem;
    background: rgba(10, 25, 47, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 24px;
}
.entity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
}
.entity-row:last-child { border-bottom: none; }
.entity-row span:first-child {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}
.entity-row span:last-child {
    color: #fff;
    font-weight: 500;
    text-align: right;
}
@media (max-width: 600px) {
    .entity-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .entity-row span:last-child { text-align: left; }
}
