/* ===== MIRRA LABS — Enhanced Website Styles ===== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --terra: #DA7756;
    --terra-deep: #B85C3A;
    --cream: #F7F2EC;
    --black: #000000;
    --brown: #7A6358;
    --sand: #C4B5A8;
    --dark-bg: #2C2420;
    --white: #FFFFFF;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: Calibri, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* --- Hero Fade-In --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.faded-in { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: 0.25s; }
.fade-delay-2 { transition-delay: 0.5s; }

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-scrolled {
    background: rgba(247, 242, 236, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 181, 168, 0.3);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 24px;
    width: auto;
    max-height: 24px;
    display: block;
    transition: filter 0.3s;
}

/* On hero (transparent nav bg), invert to white */
.nav:not(.nav-scrolled) .nav-logo-img {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    color: rgba(247, 242, 236, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-scrolled .nav-link { color: var(--brown); }
.nav-link:hover, .nav-link.nav-active { color: var(--terra); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terra);
    transition: width 0.2s;
}
.nav-link:hover::after, .nav-link.nav-active::after { width: 100%; }

.nav-cta {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--cream);
    text-decoration: none;
    padding: 8px 20px;
    border: 1.5px solid rgba(247, 242, 236, 0.5);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-scrolled .nav-cta { color: var(--terra); border-color: var(--terra); }
.nav-cta:hover { background: var(--terra); color: var(--white); border-color: var(--terra); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--terra);
    color: var(--white);
    padding: 14px 36px;
}

.btn-primary:hover {
    background: var(--terra-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 119, 86, 0.3);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 36, 32, 0.92) 0%,
        rgba(44, 36, 32, 0.7) 50%,
        rgba(184, 92, 58, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--cream);
    max-width: 780px;
    margin-bottom: 40px;
}

/* --- Sections --- */
.section { padding: 100px 0; }
.section-alt { background: var(--white); }

.section-dark {
    background: var(--dark-bg);
    color: var(--cream);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
    margin-bottom: 20px;
}

.section-title.light { color: var(--cream); }

.section-subtitle {
    font-size: 18px;
    color: var(--brown);
    max-width: 640px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.section-intro {
    font-size: 17px;
    color: var(--brown);
    max-width: 700px;
    margin-bottom: 48px;
}

/* --- Problem Cards --- */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-icon {
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.card-text {
    font-size: 15px;
    color: var(--brown);
    line-height: 1.6;
}

/* --- Differentiator List --- */
.diff-list {
    list-style: none;
    margin: 0 0 56px 0;
    padding: 0;
    max-width: 760px;
}

.diff-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--brown);
    line-height: 1.6;
}

.diff-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--terra);
    border-radius: 50%;
}

/* --- Comparison Table --- */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 56px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--cream);
}

.comparison-table thead th {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    padding: 18px 20px;
    text-align: left;
    border-bottom: 2px solid var(--sand);
    color: var(--black);
    background: rgba(196, 181, 168, 0.12);
}

.comparison-table thead th.highlight-col { color: var(--terra); }

.comparison-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(196, 181, 168, 0.25);
    vertical-align: top;
    color: var(--brown);
    transition: background 0.2s;
}

.comparison-table tbody tr:hover td { background: rgba(218, 119, 86, 0.04); }

.comparison-table tbody td.row-label {
    font-weight: 600;
    color: var(--black);
    font-style: italic;
    min-width: 180px;
}

.comparison-table tbody td.highlight-col {
    color: var(--terra-deep);
    font-weight: 600;
}

/* --- About inline --- */
.about-inline {
    max-width: 760px;
    padding: 32px 0 0;
    border-top: 1px solid rgba(196, 181, 168, 0.4);
}

.about-inline p {
    font-size: 16px;
    color: var(--brown);
    line-height: 1.7;
}

/* --- Steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 48px;
    margin-top: 48px;
}

.step {
    position: relative;
    padding: 28px;
    border-radius: 8px;
    transition: background 0.3s;
}

.step:hover { background: rgba(218, 119, 86, 0.04); }

.step-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--terra);
    margin-bottom: 4px;
    line-height: 1;
    opacity: 0.7;
}

.step-icon {
    margin-bottom: 12px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.step-text {
    font-size: 15px;
    color: var(--brown);
    line-height: 1.65;
}

/* --- Follow-On --- */
.follow-on {
    margin-top: 56px;
    padding: 32px;
    background: var(--cream);
    border-left: 4px solid var(--terra);
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s;
}

.follow-on:hover { transform: translateX(4px); }

.follow-on-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--terra-deep);
    margin-bottom: 12px;
}

.follow-on p {
    font-size: 15px;
    color: var(--brown);
    line-height: 1.65;
    max-width: 700px;
}

/* --- Proof Points (with background image) --- */
.section-proof {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.proof-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.proof-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(44, 36, 32, 0.92) 0%,
        rgba(44, 36, 32, 0.88) 100%
    );
}

.section-proof .container { position: relative; z-index: 1; }

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.proof-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 8px;
    background: rgba(247, 242, 236, 0.06);
    border: 1px solid rgba(247, 242, 236, 0.1);
    backdrop-filter: blur(4px);
    transition: transform 0.3s, background 0.3s;
}

.proof-card:hover {
    transform: translateY(-4px);
    background: rgba(247, 242, 236, 0.1);
}

.proof-stat {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--terra);
    margin-bottom: 12px;
}

.proof-card p {
    font-size: 14px;
    color: rgba(247, 242, 236, 0.75);
    line-height: 1.6;
}

.proof-methodology {
    max-width: 760px;
    margin: 40px auto 0;
    text-align: center;
    border-top: 1px solid rgba(247, 242, 236, 0.15);
    padding-top: 32px;
}

.proof-method-text {
    font-size: 13px;
    color: rgba(247, 242, 236, 0.55);
    line-height: 1.7;
    font-style: italic;
}

/* --- Use Cases --- */
.cards-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.use-card {
    background: var(--cream);
    border-radius: 8px;
    padding: 28px 24px;
    border-top: 3px solid var(--terra);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.use-icon { margin-bottom: 16px; }

.use-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.use-card p {
    font-size: 14px;
    color: var(--brown);
    line-height: 1.6;
}

/* --- SEA Coverage --- */
.section-map {
    background: var(--dark-bg);
    padding: 72px 0;
}

.map-countries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 36px;
    margin-top: 48px;
}

.map-country {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.map-country-secondary {
    color: var(--sand);
    font-weight: 400;
}

.map-dot-live {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--terra);
    box-shadow: 0 0 8px rgba(218, 119, 86, 0.6);
    animation: dot-pulse 2.5s ease-in-out infinite;
}

.map-dot-live.secondary {
    background: var(--sand);
    box-shadow: 0 0 6px rgba(196, 181, 168, 0.4);
    opacity: 0.6;
}

.map-footnote {
    text-align: center;
    font-size: 13px;
    color: var(--sand);
    opacity: 0.5;
    margin-top: 24px;
    font-style: italic;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* --- Audience Grid --- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.audience-item {
    padding: 24px;
    border-left: 3px solid var(--terra);
    transition: transform 0.2s, background 0.2s;
    border-radius: 0 6px 6px 0;
}

.audience-item:hover {
    transform: translateX(4px);
    background: rgba(218, 119, 86, 0.04);
}

.audience-item h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--black);
}

.audience-item p {
    font-size: 15px;
    color: var(--brown);
}

/* --- About (with background image) --- */
.section-about {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 36, 32, 0.9) 0%,
        rgba(44, 36, 32, 0.8) 100%
    );
}

.section-about .container { position: relative; z-index: 1; }

.about-block { max-width: 700px; }

.about-block p {
    font-size: 17px;
    color: rgba(247, 242, 236, 0.85);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* --- Contact --- */
.contact-subtitle {
    font-size: 17px;
    color: var(--sand);
    margin-bottom: 40px;
}

.contact-form { max-width: 560px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sand);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid rgba(196, 181, 168, 0.3);
    border-radius: 4px;
    background: rgba(247, 242, 236, 0.06);
    color: var(--cream);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terra);
    box-shadow: 0 0 0 3px rgba(218, 119, 86, 0.15);
}

.form-group textarea { resize: vertical; }

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* --- Footer --- */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(196, 181, 168, 0.1);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-img {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

.footer-copy {
    font-size: 13px;
    color: var(--sand);
    opacity: 0.6;
}

.footer-email {
    font-size: 13px;
    color: var(--sand);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-email:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-headline { font-size: 34px; }
    .hero { min-height: 70vh; }
    .section-title { font-size: 28px; }
    .cards-3, .steps { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-5 { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .nav-links { gap: 16px; }
    .nav-link { display: none; }
    .nav-cta { font-size: 12px; padding: 6px 16px; }
    .comparison-table { font-size: 13px; }
    .comparison-table thead th, .comparison-table tbody td { padding: 10px 12px; }
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .map-countries { flex-direction: column; align-items: center; gap: 12px; }
}

@media (max-width: 600px) {
    .hero { padding: 130px 0 70px; min-height: 60vh; }
    .hero-headline { font-size: 28px; }
    .section { padding: 64px 0; }
    .section-title { font-size: 24px; }
    .proof-grid { grid-template-columns: 1fr; }
    .nav-logo-img { height: 20px; }
    .nav-cta { font-size: 11px; padding: 5px 12px; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
    .step { padding: 20px 0; }
    .diff-list li { font-size: 14px; }
    .comparison-table { font-size: 12px; }
    .comparison-table thead th, .comparison-table tbody td { padding: 8px 8px; }
    .proof-methodology { padding: 24px 16px 0; }
    .proof-method-text { font-size: 12px; }
    .about-block p { font-size: 15px; }
    .map-countries { gap: 10px; }
    .map-country { font-size: 14px; }
}
