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

:root {
    --red: #c41e3a;
    --red-dark: #a01830;
    --gray-dark: #2d2d2d;
    --gray-medium: #555;
    --gray-light: #f5f5f5;
    --white: #ffffff;
    --max-width: 1100px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background: var(--white);
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--red-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
header {
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--gray-medium);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gray-dark) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-split {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.hero-split .hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-split .hero-content h1 span {
    color: var(--red);
}

.hero-split .hero-content p {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.hero-split .hero-buttons {
    justify-content: flex-start;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--red);
}

.hero p {
    font-size: 1.25rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--gray-dark);
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Procedure Steps */
.procedure-steps {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.procedure-step {
    flex: 1;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: var(--gray-dark);
    margin-bottom: 0.25rem;
}

.step-content p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .procedure-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.spec-item {
    background: var(--gray-light);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    color: var(--gray-medium);
}

.spec-item strong {
    color: var(--gray-dark);
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Two-column specs */
.specs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.spec-group h3 {
    color: var(--red);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.spec-group p {
    margin: 0;
}

@media (max-width: 768px) {
    .specs-two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-medium);
}

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card h3 {
    color: var(--red);
    margin-bottom: 0.75rem;
}

.card p {
    margin-bottom: 1rem;
}

.card a {
    font-weight: 600;
}

/* Feature List */
.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-medium);
}

.feature-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--red);
}

/* Device Cards */
.device-card {
    background: var(--gray-light);
    border: none;
}

.device-card h3 {
    color: var(--gray-dark);
}

.device-card .tag {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Card as link */
.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    color: inherit;
}

.card-link:hover h3 {
    color: var(--red);
}

.card-cta {
    display: inline-block;
    color: var(--red);
    font-weight: 600;
    margin-top: 0.5rem;
}

.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Device Sub-Navigation */
.device-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.device-nav a {
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    color: var(--gray-medium);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.device-nav a:hover {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.device-nav a.active {
    background: var(--red);
    color: var(--white);
}

@media (max-width: 768px) {
    .device-nav {
        flex-wrap: wrap;
    }
}

/* Device Page Hero */
.device-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.device-image {
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    font-weight: 600;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
    color: var(--gray-dark);
}

input,
textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--red);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* About Page */
.about-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-header img {
    border-radius: 8px;
    width: 100%;
}

.credentials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.credentials a {
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.25rem;
}

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

/* Timeline */
.timeline {
    list-style: none;
}

.timeline li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-medium);
    border-left: 2px solid #e0e0e0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 1rem;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
}

/* Client Grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.client {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background: var(--gray-light);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--gray-dark);
    color: #999;
    padding: 2rem;
    text-align: center;
}

footer p {
    color: #999;
    margin: 0;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-bottom: 1px solid #e0e0e0;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-split .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 400px;
        margin: 0 auto;
    }

    main {
        padding: 2rem 1.5rem;
    }

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

    .about-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-header img {
        max-width: 200px;
        margin: 0 auto;
    }

    .credentials {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Publications */
.publications-list h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--red);
}

.publications-list h2:first-child {
    margin-top: 0;
}

.publications-list ul {
    list-style: none;
}

.publications-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    color: var(--gray-medium);
    line-height: 1.7;
}

.publications-list li:last-child {
    border-bottom: none;
}

.publications-list em {
    font-style: italic;
}

.publications-list a {
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Collaboration CTA Section */
.collab-cta {
    background: var(--gray-light);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
}

.collab-cta h2 {
    margin-bottom: 1rem;
}

.collab-cta p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.collab-cta .btn {
    margin-top: 0.5rem;
}
