/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

:root {
    --color-primary: #0099ff;
    --color-orange: #ff6b35;
    --color-text: #000000;
    --color-background: #ffffff;
    --color-gray: #666666;
    --color-light-gray: #f2f2f2;
    --color-border: #e0e0e0;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --max-width: 1000px;
    --padding-desktop: 100px;
    --padding-tablet: 50px;
    --padding-mobile: 20px;

    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

.large-text {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.5;
    font-weight: 400;
}

a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ===================================
   Layout
   =================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
}

section {
    padding: 5rem 0;
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    overflow: visible;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* ===================================
   Glowing Logo Animation
   =================================== */

.instromeda-glow-logo {
    overflow: visible;
}

.glow-layer {
    animation: glow-pulse 2.5s ease-out infinite;
}

.glow-layer-delayed {
    animation: glow-pulse 2.5s ease-out infinite;
    animation-delay: 0.8s;
}

@keyframes glow-pulse {
    0% {
        opacity: 0;
        stroke-width: 3;
    }
    50% {
        opacity: 0.5;
        stroke-width: 28;
    }
    100% {
        opacity: 0;
        stroke-width: 48;
    }
}

/* ===================================
   Hero Section (Index Page)
   =================================== */

.hero {
    padding: 3rem 0 0rem;
    text-align: left;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
}

.hero-title-prefix {
    color: var(--color-orange);
    display: inline;
}

.animated-text {
    color: var(--color-text);
    display: inline;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text);
    font-weight: 400;
    margin-bottom: 0;
}

.hero-image-section {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.hero-full-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    max-width: 900px;
    object-fit: contain;
    object-position: center;
}

/* ===================================
   Mission Section (Index Page)
   =================================== */

.mission {
    padding: 2rem 0;
}

.mission h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.mission-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--color-gray);
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.mission-text {
    max-width: 900px;
}

.mission-text p {
    color: var(--color-gray);
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.mission-text p strong {
    font-weight: 600;
}

/* ===================================
   Fully Automated Section (Index Page)
   =================================== */

.fully-automated {
    padding: 2rem 0;
    background-color: var(--color-background);
}

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

.automated-image {
    border-radius: 12px;
    overflow: hidden;
}

.automated-image img {
    width: 100%;
    height: auto;
    display: block;
}

.automated-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.automated-text p {
    color: var(--color-gray);
    font-size: 1.5rem;
    line-height: 1.7;
}

/* ===================================
   Flagship Section (Index Page)
   =================================== */

.flagship {
    padding: 4rem 0;
}

.flagship h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    font-weight: 700;
}

.flagship-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--color-gray);
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.flagship-text-only {
    max-width: 900px;
    margin-bottom: 4rem;
}

.flagship-text-only p {
    color: var(--color-gray);
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.flagship-product {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.flagship-image {
    margin-bottom: 2rem;
}

.flagship-image img {
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.btn-link {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--color-text);
    opacity: 1;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--color-light-gray);
    padding: 3rem 0;
    margin-top: 5rem;
}

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

.footer-info p {
    margin-bottom: 0.5rem;
    color: var(--color-gray);
}

.footer-info a {
    color: var(--color-text);
}

.footer-social a {
    color: var(--color-text);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--color-primary);
}

/* ===================================
   About Page
   =================================== */

.page-title {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.about-hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

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

.team-member {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--color-light-gray);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-role {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-personal {
    font-style: italic;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.mission-statement {
    background-color: var(--color-light-gray);
}

.statement-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ===================================
   Product Page
   =================================== */

.product-page-hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.product-hero-image {
    margin: 0 auto 2rem;
    max-width: var(--max-width);
}

.product-hero-image img {
    width: 100%;
    height: auto;
}

.product-main-info {
    padding: 0rem 0;
}

.info-box {
    border: 2px solid var(--color-text);
    padding: 0;
    margin-bottom: 4rem;
    overflow: hidden;
}

.info-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    padding: 1rem 2rem;
    background-color: #e8e8e8;
    font-weight: 700;
}

.info-subtitle {
    color: white;
    font-size: 1rem;
    margin: 0;
    padding: 1rem 2rem;
    background-color: #2a2a2a;
    font-weight: 500;
}

.product-benefits {
    list-style: none;
    padding: 2rem;
    margin: 0;
}

.product-benefits li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.product-text {
    list-style: none;
    padding: 2rem;
    padding-left: 3rem;
    margin: 0;
}

.feature-callouts-section {
    position: relative;
    margin: 1rem 0;
}

.callout-image {
    width: 100%;
    height: auto;
}

.spec-subtitle {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.spec-table,
.spec-table-two-col {
    width: 100%;
    border-collapse: collapse;
}

.spec-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
}

.spec-table td:first-child {
    font-weight: 600;
    width: 30%;
}

.spec-table-two-col td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
}

.spec-table-two-col td:nth-child(odd) {
    font-weight: 600;
    width: 25%;
}

.software-image {
    width: 100%;
    margin-bottom: 1rem;
}

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

.workload-device {
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    text-align: center;
}

.workload-device h4 {
    margin-bottom: 1rem;
}

.lab-partner-features {
    margin-top: 2rem;
}

.lab-partner-features ol {
    padding-left: 2rem;
}

.lab-partner-features li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.user-serviceable {
    color: var(--color-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.data-params {
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.data-params p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ===================================
   Animations
   =================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .container,
    .nav-container {
        padding: 0 var(--padding-tablet);
    }

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

    .hero-full-image {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 var(--padding-mobile);
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-full-image {
        max-height: 40vh;
    }

    .mission,
    .fully-automated,
    .flagship {
        padding: 3rem 0;
    }

    .automated-content {
        grid-template-columns: 1fr;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-background);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem var(--padding-mobile);
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

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

/* ===================================
   Print Styles
   =================================== */

@media print {
    .header,
    .footer,
    .mobile-menu-toggle {
        display: none;
    }
}
