:root {
    /* Colors */
    --primary: #FA2B22;
    --secondary: #ED0706;
    --accent: #000000;
    --background: #FFFFFF;
    --surface: #F9F9F9;
    --text-primary: #000000;
    --text-secondary: #757575;
    --link: #0000EE;
    --border-color: #E0E0E0;

    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Work Sans', Arial, sans-serif;
    
    --text-h1: clamp(40px, 5vw, 68px);
    --text-h2: clamp(28px, 4vw, 40px);
    --text-h3: 24px;
    --text-body: 16px; /* 16px minimum for iOS auto-zoom prevention */
    --text-small: 14px;

    /* Spacing & Borders */
    --base-unit: 4px;
    --radius-box: 10px;
    --radius-input: 24px;
    --radius-button: 4px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 600;
}

img, video {
    max-width: 100%;
    display: block;
}

/* Base Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    min-height: 44px; /* Touch target */
    width: 100%; /* Default full width for mobile */
}

@media (min-width: 768px) {
    .btn {
        width: auto;
    }
    .btn-full {
        width: 100%;
    }
}

.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
    border-radius: var(--radius-button);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: #F0F0F0;
    color: var(--text-primary);
    border-radius: 0px;
}

.btn-secondary:hover {
    background-color: #E0E0E0;
}

/* Utilities */
.text-center { text-align: center; }
.bg-gray { background-color: var(--surface); padding: 80px 0; }

/* Header */
.header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}
.logo {
    height: 40px;
}

/* Hero Section */
.hero.has-bg-video {
    position: relative;
    padding: 120px 0;
    background-color: #000;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: var(--text-h1);
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero-title.text-white {
    color: #ffffff;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
}
.hero-subtitle.text-white {
    color: #f0f0f0;
}

.hero-cta {
    margin-bottom: 40px;
    font-size: 18px;
}

.trust-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.trust-stack.justify-center {
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-small);
    color: var(--text-secondary);
    font-weight: 500;
}
.trust-item.text-white {
    color: #ffffff;
}

.trust-icon {
    font-size: 20px;
}

.trust-cert {
    height: 84px;
    width: auto;
}
.blend-screen {
    mix-blend-mode: screen;
}

/* Industry Qualification */
.section-title {
    font-size: var(--text-h2);
    margin-bottom: 48px;
}

.industry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .industry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.industry-card {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: var(--radius-box);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.industry-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.industry-card p {
    color: var(--text-secondary);
    font-size: 15px; /* From design tokens body font size */
}

/* Products Section */
.products {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: #fff;
    border-radius: var(--radius-box);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image.crossfade {
    position: relative;
}

.product-image.crossfade img {
    position: absolute;
    top: 0;
    left: 0;
}

.product-image.crossfade .img-front {
    opacity: 1;
    animation: fadeCross 10s infinite;
    animation-delay: var(--delay, 0s);
}

.product-image.crossfade .img-back {
    opacity: 0;
    animation: fadeCrossBack 10s infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeCross {
    0%, 40% { opacity: 1; }
    50%, 90% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeCrossBack {
    0%, 40% { opacity: 0; }
    50%, 90% { opacity: 1; }
    100% { opacity: 0; }
}

.product-image.crossfade-3 {
    position: relative;
}

.product-image.crossfade-3 img {
    position: absolute;
    top: 0;
    left: 0;
}

.product-image.crossfade-3 .img-1 {
    animation: fade3-1 15s infinite;
    animation-delay: var(--delay, 0s);
}

.product-image.crossfade-3 .img-2 {
    opacity: 0;
    animation: fade3-2 15s infinite;
    animation-delay: var(--delay, 0s);
}

.product-image.crossfade-3 .img-3 {
    opacity: 0;
    animation: fade3-3 15s infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes fade3-1 {
    0%, 25% { opacity: 1; }
    33%, 92% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fade3-2 {
    0%, 25% { opacity: 0; }
    33%, 58% { opacity: 1; }
    66%, 100% { opacity: 0; }
}
@keyframes fade3-3 {
    0%, 58% { opacity: 0; }
    66%, 92% { opacity: 1; }
    100% { opacity: 0; }
}

.product-image.crossfade-4 {
    position: relative;
}

.product-image.crossfade-4 img {
    position: absolute;
    top: 0;
    left: 0;
}

.product-image.crossfade-4 .img-1 {
    animation: fade4-1 20s infinite;
    animation-delay: var(--delay, 0s);
}

.product-image.crossfade-4 .img-2 {
    opacity: 0;
    animation: fade4-2 20s infinite;
    animation-delay: var(--delay, 0s);
}

.product-image.crossfade-4 .img-3 {
    opacity: 0;
    animation: fade4-3 20s infinite;
    animation-delay: var(--delay, 0s);
}

.product-image.crossfade-4 .img-4 {
    opacity: 0;
    animation: fade4-4 20s infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes fade4-1 {
    0%, 17% { opacity: 1; }
    25%, 92% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fade4-2 {
    0%, 17% { opacity: 0; }
    25%, 42% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@keyframes fade4-3 {
    0%, 42% { opacity: 0; }
    50%, 67% { opacity: 1; }
    75%, 100% { opacity: 0; }
}
@keyframes fade4-4 {
    0%, 67% { opacity: 0; }
    75%, 92% { opacity: 1; }
    100% { opacity: 0; }
}


.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.product-content p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-content .btn {
    width: 100%;
}

/* R&D Section */
.rd-section {
    padding: 80px 0;
}

.rd-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .rd-container {
        grid-template-columns: 1fr 1fr;
    }
}

.rd-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.rd-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.rd-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

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

.rd-step p {
    font-size: 16px;
    margin-top: 8px;
}

.rd-media {
    border-radius: var(--radius-box);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

/* Data Section */
.data-section {
    padding: 80px 0;
    background-color: var(--accent);
    color: white;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 576px) {
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .data-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.data-item {
    text-align: center;
    padding: 24px;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.data-item:last-child {
    border-right: none;
}

@media (max-width: 991px) {
    .data-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 575px) {
    .data-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .data-item:last-child {
        border-bottom: none;
    }
}

.data-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 120px;
    margin-bottom: 24px;
}

.data-number {
    font-family: var(--font-heading);
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.data-unit {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-desc {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

.cert-img {
    height: 120px;
    margin-bottom: 0;
}

.iso-cert-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.iso-cert-img {
    height: 120px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Form Section */
.form-section {
    padding: 80px 0;
}

.form-box {
    background: #FFFFFF;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-box);
    box-shadow: var(--shadow-md);
}

@media (max-width: 576px) {
    .form-box {
        padding: 24px;
    }
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(250, 43, 34, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--primary);
    background-color: #fffafa;
}

.error-msg {
    color: var(--primary);
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.gdpr-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
}

.form-step {
    animation: fadeIn 0.4s ease forwards;
}

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

/* Animations & Interactions */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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