:root {
    /* Colors */
    --bg-body: #F7F7F7;
    --bg-card: #FFFFFF;
    --text-main: #2e2e2e;
    --text-muted: #3a3a3a;
    --accent-color: #000000;
    --border-color: #E5E5E5;

    --hero-bg-color: #040404;
    --hero-text-color: #eeeeee;
    --hero-text-muted: #d0d0d0;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;

    /* Layout */
    --container-width: 850px;
    --border-radius-card: 24px;
    --border-radius-panel: 12px;
    --spacing-section: 40px;

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-panel: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
    font-size: 90%; 
}

/* =========================
   HERO ANIMATIONS
   ========================= */

@keyframes hero-text-in {
    from {
        opacity: 1;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(20px);
    }
}

@keyframes hero-image-in {
    from {
        opacity: 0;
        transform: translate(6px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero * {
        animation: none !important;
    }
}

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

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

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.mb-2 { margin-bottom: 1.2rem; }
.mb-4 { margin-bottom: 2.4rem; }

/* =========================
   NAVIGATION
   ========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(247, 247, 247, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-main);
    text-decoration: none;
    gap: 15px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: var(--font-weight-medium);
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Mobile toggle button (hidden on desktop) */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--text-main);
    outline-offset: 2px;
}

.nav-toggle-icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* =========================
   HERO
   ========================= */

.hero {
    background-color: var(--hero-bg-color);
    color: var(--hero-text-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero .hero-content {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2.4rem 20px;
    min-height: 300px;
}

/* Text block */
.hero .hero-content > div:first-child {
    position: relative;
    z-index: 2;
    /* white-space: nowrap; */
    animation: hero-text-in 20s both;
}

.hero h1 {
    font-size: 4rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.3rem;
    margin-top: 1.2rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.3rem;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--hero-text-muted);
}

/* Image */
.hero-image-wrapper {
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 1;
    pointer-events: none;
    animation: hero-image-in 1s ease-out both;
}

.hero-image {
    width: 360px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

/* =========================
   SECTIONS
   ========================= */

.section-card {
    scroll-margin-top: 86px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-card);
    padding-left: 2.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-right: 2.5rem;
    margin-bottom: var(--spacing-section);
    margin-top:0.75rem;
    box-shadow: var(--shadow-card);
}

.section-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1.5rem;
}

.content-wrapper p {
    font-size: 1.1rem;
    text-align: justify;
}

/* Technology list */
.tech-list {
    list-style: none;
    padding-left: 0.6rem;
    font-size: 1.1rem;
}

.tech-list li {
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1.8rem;
}

.tech-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tech-list li strong {
    font-weight: var(--font-weight-medium);
}

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

@media (max-width: 768px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .hero .hero-content > div:first-child {
        white-space: normal;
    }

    /* .hero-image-wrapper {
        display: none;
    } */

    /* Navbar collapses */
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        flex-direction: column;
        gap: 14px;
        padding: 16px 18px;
        background: rgba(247, 247, 247, 0.92);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 12px;
        box-shadow: var(--shadow-panel);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar.nav-open .nav-links {
        display: flex;
    }
}

.app-panel {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-panel);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 380px;
    background: #fff;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-panel);
}

.app-header {
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
}

.app-icon-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon {
    max-width: 100%;
    max-height: 160px;
    min-width: 96px;
    min-height: 96px;
}

.app-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    max-width: 90%;
}

/* =========================
   BLOG (CTA + LIST)
   ========================= */

.blog-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 180px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-panel);
}

.blog-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 14px;
}

.blog-list li {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-panel);
    padding: 16px 18px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.blog-list li:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-panel);
}

.blog-list a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.blog-list a:hover {
    opacity: 0.7;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 1rem;
    white-space: nowrap;
}

/* =========================
   FAQ (Accordion)
   ========================= */

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-panel);
    background: #fff;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: var(--font-weight-medium);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-weight: var(--font-weight-bold);
    line-height: 1;
    opacity: 0.7;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-answer {
    padding: 0 18px 18px 18px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

/* Contact */
.contact-intro {
    margin-bottom: 2.4rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-form {
    display: grid;
    gap: 1.8rem;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 1.08rem;
    font-weight: var(--font-weight-medium);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    font-family: inherit;
    font-size: 1.1rem;
    background: #FAFAFA;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    padding: 8px 18px;
    outline: none;
    border-color: var(--text-main);
    background: #FFF;
}

.form-group textarea {
    padding: 8px 18px;
    resize: none;
    min-height: 140px;
    height: 30vh;
    max-height: 320px;
}

.btn-submit {
    background-color: var(--hero-bg-color);
    color: #FFF;
    border: none;
    width: 150px;
    height: 40px;
    padding: 8px 8px;
    border-radius: 9px;
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #555555;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.4rem;
    color: var(--text-muted);
    font-size: 1.08rem;
}

/* =========================
   COMPARISON
   ========================= */

.metadir-comparison {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    align-items: center;
    text-align: center;
}

.comparison-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparison-item img {
    width: 500px;
    height: auto;
}

.comparison-label {
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .metadir-comparison {
        grid-template-columns: 1fr;
    }

    .comparison-item img {
        width: 100%;
        max-width: 520px;
    }
}

.hero--simple .hero-content {
    min-height: 220px;
    white-space: normal;
}

.hero--simple h1 {
  font-size: 2.6rem; /* was 4rem */
  line-height: 1.15;
}

.hero--simple .hero-subtitle {
  font-size: 1.15rem; /* was 1.5rem */
}