:root {
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --color-brand: #2db84b;
    --color-brand-dim: #1a8f37;
    --color-celeste: #5bc0eb;

    --bg-white: #ffffff;
    --bg-off: #f8f8f6;
    --bg-light: #f2f2ef;
    --bg-mist: #ebebe7;
    --bg-dark: #1a1a1a;
    --bg-deep: #111111;

    --text-main: #1a1a1a;
    --text-body: #3d3d3d;
    --text-muted: #6b6b6b;
    --text-light: #9a9a9a;
    --color-white: #ffffff;

    --gray-100: #f5f5f3;
    --gray-200: #e8e8e5;
    --gray-300: #d1d1cc;
    --gray-400: #a8a8a3;
    --gray-500: #6b6b66;
    --gray-600: #3d3d3a;
    --gray-700: #1a1a18;

    --glass-bg: rgba(255,255,255,0.85);
    --glass-border: rgba(0,0,0,0.06);
    --card-bg: #ffffff;
    --card-border: #e8e8e5;
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.10);

    --nav-bg: rgba(255,255,255,0.85);
    --nav-border: rgba(0,0,0,0.06);
    --section-alt-bg: var(--bg-off);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark-mode {
    --bg-white: #1a1a1a;
    --bg-off: #222222;
    --bg-light: #2a2a2a;
    --bg-mist: #333333;
    --text-main: #ffffff;
    --text-body: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-light: #707070;
    --gray-100: #2a2a2a;
    --gray-200: #333333;
    --gray-300: #444444;
    --gray-400: #666666;
    --gray-500: #888888;
    --gray-600: #aaaaaa;
    --gray-700: #cccccc;
    --glass-bg: rgba(30,30,30,0.85);
    --glass-border: rgba(255,255,255,0.08);
    --card-bg: #222222;
    --card-border: #333333;
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
    --nav-bg: rgba(26,26,26,0.92);
    --nav-border: rgba(255,255,255,0.06);
    --section-alt-bg: var(--bg-off);
    --color-white: #1a1a1a;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-main);
    transition: color var(--transition);
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding { padding: 6rem 0; }

/* ========== LOADER ========== */
.loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #111111;
    display: flex; justify-content: center; align-items: center;
    z-index: 99999;
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), visibility 0.8s;
}
.loader-wrapper.fade-out { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.loader-logo { height: 80px; width: auto; margin-bottom: 30px; animation: loaderPulse 2.5s ease-in-out infinite; filter: brightness(0) invert(1); }
.loader-progress { width: 150px; height: 2px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; border-radius: 2px; }
.loader-progress::after {
    content: ''; position: absolute; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.5));
    animation: loaderProgress 2s cubic-bezier(0.16,1,0.3,1) infinite;
}
@keyframes loaderPulse { 0%,100%{opacity:0.4;transform:scale(0.95)} 50%{opacity:1;transform:scale(1)} }
@keyframes loaderProgress { 0%{left:-100%} 100%{left:100%} }

/* ========== NAV ========== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
    background: transparent;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 0.75rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow-soft);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; transition: all 0.3s ease; filter: brightness(0) invert(1); }
.navbar.scrolled .logo-img { filter: brightness(0); }
body.dark-mode .navbar.scrolled .logo-img { filter: brightness(0) invert(1); }
.dark-mode .navbar.scrolled .logo-img { filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 2rem; align-items: center; justify-content: center; flex: 1; }
.nav-links a {
    color: rgba(255,255,255,0.75);
    font-weight: 500; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    position: relative; padding: 0.5rem 0;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--text-main); }
.nav-links a:hover,
.nav-links a.active { color: #ffffff; }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--gray-400);
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.theme-toggle-btn {
    font-size: 1.2rem; color: rgba(255,255,255,0.75); padding: 0.4rem;
    transition: color 0.3s; display: flex; align-items: center; line-height: 1;
}
.navbar.scrolled .theme-toggle-btn { color: var(--text-muted); }
.theme-toggle-btn:hover { color: #fff; }
.navbar.scrolled .theme-toggle-btn:hover { color: var(--text-main); }
.hamburger { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; z-index: 1001; }
.navbar.scrolled .hamburger { color: var(--text-main); }

/* ========== HERO ========== */
.hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; overflow: hidden;
    background: #000;
}
.hero-video-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; pointer-events: none;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
body.dark-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
}
.hero-3d-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5; cursor: grab;
    touch-action: pan-y;
    pointer-events: auto;
    background: transparent;
}
.hero-3d-canvas:active { cursor: grabbing; }
.hero-content {
    position: relative; z-index: 10; width: 100%;
    display: flex; align-items: center; height: 100%;
    pointer-events: none;
}
.hero-text { max-width: 520px; padding-top: 10vh; pointer-events: auto; }
.hero-spacer { flex: 1; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-heading); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 3px;
    color: rgba(255,255,255,0.7); margin-bottom: 2rem;
}
body.dark-mode .hero-kicker { color: rgba(255,255,255,0.55); }
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 800; line-height: 0.92; letter-spacing: -0.04em;
    color: #ffffff; margin-bottom: 1.5rem;
}
body.dark-mode .hero-title { color: rgba(255,255,255,0.92); }
.hero-title-accent {
    font-weight: 400; font-style: italic;
    color: rgba(255,255,255,0.55); letter-spacing: 0;
}
body.dark-mode .hero-title-accent { color: rgba(255,255,255,0.4); }
.hero-subtitle {
    font-family: var(--font-body); font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.7; color: rgba(255,255,255,0.7);
    font-weight: 400; margin-bottom: 3rem;
}
body.dark-mode .hero-subtitle { color: rgba(255,255,255,0.55); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions-mobile { display: none; }
.btn-primary-solid {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.9rem 2rem;
    background: #1a1a1a !important; color: #ffffff !important;
    font-family: var(--font-heading); font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    border: none; border-radius: var(--radius-full);
    cursor: pointer; transition: all 0.3s ease;
}
.btn-primary-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #ffffff !important;
}
body.dark-mode .btn-primary-solid { background: #ffffff !important; color: #1a1a1a !important; }
body.dark-mode .btn-primary-solid:hover { color: #1a1a1a !important; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-heading); font-size: 0.85rem;
    font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
body.dark-mode .btn-ghost { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.15); }
body.dark-mode .btn-ghost:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); }
.scroll-indicator {
    position: absolute; bottom: 4rem; left: 50%; transform: translateX(-50%);
    z-index: 10; pointer-events: none;
}
.scroll-line {
    display: block; width: 1px; height: 60px;
    background: rgba(255,255,255,0.15); position: relative; overflow: hidden;
}
.scroll-line::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
    background: var(--gray-300);
    animation: scrollLineDrop 2s infinite cubic-bezier(0.645,0.045,0.355,1);
}
@keyframes scrollLineDrop { 0%{transform:translateY(-100%)} 100%{transform:translateY(200%)} }

/* ========== SECTION HEADERS ========== */
.section-kicker {
    font-family: var(--font-heading);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted); margin-bottom: 1rem; display: block;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
    color: var(--text-main); margin-bottom: 1.5rem;
}
.text-accent {
    font-weight: 400; font-style: italic;
    color: var(--text-light); letter-spacing: 0;
}
.section-subtitle {
    font-family: var(--font-body); font-size: 1.1rem; line-height: 1.7;
    color: var(--text-muted); max-width: 600px;
}
.section-header { max-width: 800px; margin-bottom: 4rem; }

/* ========== ABOUT ========== */
.about { background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.about-paragraph {
    font-family: var(--font-body); font-size: 1.2rem; line-height: 1.8;
    color: var(--text-body); margin-bottom: 3rem;
}
.about-features { display: flex; flex-direction: column; gap: 1.5rem; }
.about-feature {
    display: flex; align-items: center; gap: 1rem;
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--card-border);
    font-family: var(--font-heading); font-weight: 500; color: var(--text-main);
}
.feature-num {
    font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800;
    color: var(--text-light);
}
.about-image { position: relative; padding: 2rem; }
.about-image img { width: 100%; height: auto; object-fit: cover; position: relative; z-index: 2; }
.about-image-border {
    position: absolute; top: 0; right: 0; bottom: 3rem; left: 3rem;
    border: 1px solid var(--card-border); z-index: 1;
}

/* ========== SEAL ========== */
.seal { background: var(--bg-off); padding: 6rem 0 3rem; }
.seal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--card-border); }
.seal-card {
    background: var(--bg-white); padding: 4rem 3rem;
    transition: background var(--transition), box-shadow var(--transition);
}
.seal-card:hover { background: var(--bg-off); }
.seal-icon {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 800;
    color: var(--gray-300); margin-bottom: 2rem; display: block;
    transition: color var(--transition);
}
.seal-card:hover .seal-icon { color: var(--text-light); }
.seal-card-title {
    font-family: var(--font-heading); font-size: 1.4rem;
    color: var(--text-main); margin-bottom: 1rem;
}
.seal-card p { font-family: var(--font-body); color: var(--text-muted); line-height: 1.7; }

/* ========== ENV BANNER ========== */
.env-banner {
    padding: 8vw 0; position: relative; background-size: cover; background-position: center;
}
.env-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
.env-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; text-align: center; }
.env-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 800; color: #fff; margin-bottom: 1.5rem;
}
.env-desc {
    font-family: var(--font-body); font-size: 1.15rem;
    color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; line-height: 1.8;
}
.btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    color: #fff; font-family: var(--font-heading); font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ========== PRODUCTS ========== */
.products { background: var(--bg-white); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.product-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.product-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-hover);
    border-color: var(--gray-300);
}
.product-img { width: 100%; height: 260px; overflow: hidden; background: var(--bg-off); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 2rem; }
.product-brand {
    font-family: var(--font-heading); font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--text-light); margin-bottom: 0.5rem; display: block;
}
.product-name {
    font-family: var(--font-heading); font-size: 1.5rem;
    font-weight: 700; color: var(--text-main); margin-bottom: 0.75rem;
}
.product-desc {
    font-family: var(--font-body); font-size: 0.95rem;
    color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem;
}
.product-tags {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
    padding-top: 1.25rem; border-top: 1px solid var(--card-border);
}
.product-tags span {
    font-family: var(--font-body); font-size: 0.8rem;
    color: var(--text-light);
}

/* ========== CONTACT ========== */
.contact { background: var(--bg-off); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.contact-info { display: flex; flex-direction: column; gap: 2.5rem; padding-top: 1rem; }
.contact-block { }
.contact-label {
    font-family: var(--font-heading); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-light); margin-bottom: 0.5rem; display: block;
}
.contact-block p {
    font-family: var(--font-heading); font-size: 1.15rem;
    color: var(--text-main); font-weight: 500;
}
.contact-form { display: flex; flex-direction: column; gap: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.form-group { position: relative; }
.form-group input,
.form-group textarea {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0; color: var(--text-main);
    font-family: var(--font-body); font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-bottom-color: var(--text-muted); }
.form-group label {
    position: absolute; top: 1rem; left: 0;
    color: var(--text-light); font-family: var(--font-body);
    font-size: 1rem; pointer-events: none;
    transition: all 0.3s ease;
}
.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.75rem; font-size: 0.7rem;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary-solid.full-width { width: 100%; justify-content: center; }

/* ========== BLOG ========== */
.blog-section { background: var(--bg-white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card-img { width: 100%; height: 200px; overflow: hidden; background: var(--bg-off); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.75rem; }
.blog-card-meta {
    display: flex; gap: 1rem; margin-bottom: 0.75rem;
    font-family: var(--font-body); font-size: 0.75rem;
    color: var(--text-light); text-transform: uppercase; letter-spacing: 1px;
}
.blog-card-title {
    font-family: var(--font-heading); font-size: 1.1rem;
    font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem;
}
.blog-card-title a { color: var(--text-main); }
.blog-card-title a:hover { color: var(--text-muted); }
.blog-card-excerpt {
    font-family: var(--font-body); font-size: 0.9rem;
    color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem;
}
.blog-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-heading); font-size: 0.8rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-main); transition: gap 0.3s ease;
}
.blog-link:hover { gap: 0.75rem; color: var(--text-muted); }
.blog-more-toggle {
    display: none; margin: 2rem auto 0; padding: 0.7rem 2rem;
    background: transparent; border: 1px solid var(--card-border);
    border-radius: var(--radius-full); color: var(--text-muted);
    font-family: var(--font-heading); font-size: 0.8rem;
    font-weight: 500; cursor: pointer; transition: all 0.3s;
    text-transform: uppercase; letter-spacing: 1px;
}
.blog-more-toggle:hover { border-color: var(--text-muted); color: var(--text-main); }
@media (max-width: 768px) {
    .blog-grid:not(.expanded) .blog-card:nth-child(n+4) { display: none; }
    .blog-more-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem; position: relative;
    border-top: 1px solid var(--card-border);
}
.text-center { text-align: center; }
.developed-by {
    margin-top: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; font-size: 0.85rem;
    font-family: var(--font-body);
}
.developed-by img { height: 24px; opacity: 0.5; transition: opacity 0.3s ease; filter: brightness(0) invert(1); }
.developed-by a:hover img { opacity: 0.8; }
.management-links-hidden {
    margin-top: 3rem; display: flex; justify-content: center; flex-wrap: wrap;
    gap: 1.5rem; opacity: 0.12; transition: opacity 0.4s ease;
}
.management-links-hidden:hover { opacity: 0.5; }
.management-links-hidden a {
    font-size: 0.7rem; color: var(--text-light);
    font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px;
}
.management-links-hidden a:hover { color: var(--text-muted); }
.back-to-top {
    position: fixed; right: 2rem; bottom: 2rem;
    width: 44px; height: 44px; z-index: 100;
    border: 1px solid var(--card-border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); background: var(--glass-bg);
    transition: all 0.3s ease; backdrop-filter: blur(8px);
}
.back-to-top:hover { background: var(--text-muted); border-color: var(--text-muted); color: #fff; }
.map-section { display: block; width: 100%; line-height: 0; }

/* ========== BLOG ARTICLE TEMPLATE ========== */
.glass-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.3s ease;
}
.glass-nav .nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.glass-nav .logo-link { display: flex; align-items: center; }
.glass-nav .nav-logo { height: 35px; width: auto; }
.glass-nav .nav-links { display: flex; gap: 2rem; align-items: center; }
.glass-nav .nav-links a {
    color: var(--text-muted); font-family: var(--font-heading);
    font-size: 0.8rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 1px; transition: color 0.3s ease;
}
.glass-nav .nav-links a:hover { color: var(--text-main); }
.btn-glass {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.4rem; border-radius: 100px;
    background: var(--text-main); color: var(--bg-white);
    font-family: var(--font-heading); font-size: 0.75rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    border: none; cursor: pointer; transition: all 0.3s ease;
}
.btn-glass:hover { opacity: 0.85; transform: translateY(-1px); }

.article-hero {
    padding: 10rem 0 3rem;
    background: linear-gradient(135deg, var(--bg-off) 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--nav-border);
    position: relative;
}
.article-hero .back-link {
    color: var(--text-muted); text-decoration: none; display: inline-flex;
    align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.85rem;
    transition: color 0.3s; font-family: var(--font-body);
}
.article-hero .back-link:hover { color: var(--text-main); }
.article-hero .article-category {
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.7rem; font-weight: 600; font-family: var(--font-heading);
    display: inline-block; margin-bottom: 0.5rem;
}
.article-hero h1 {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700; line-height: 1.15; margin: 0.75rem 0 1.25rem;
    color: var(--text-main); max-width: 800px;
}
.article-hero .article-meta {
    display: flex; gap: 1.5rem; color: var(--text-muted);
    font-size: 0.8rem; font-family: var(--font-body);
}
.article-hero .article-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.article-content { padding: 3rem 0 5rem; background: var(--bg-white); }
.article-image {
    width: 100%; border-radius: 16px; margin-bottom: 3rem; max-height: 480px;
    object-fit: cover; box-shadow: var(--shadow-soft);
}
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 {
    font-family: var(--font-heading); font-size: clamp(1.5rem,2.5vw,2rem);
    font-weight: 700; color: var(--text-main); margin: 3rem 0 1.5rem; line-height: 1.2;
}
.article-body h3 {
    font-family: var(--font-heading); font-size: clamp(1.15rem,2vw,1.4rem);
    font-weight: 600; color: var(--text-main); margin: 2rem 0 1rem;
}
.article-body p {
    font-family: var(--font-body); font-size: 1.05rem; line-height: 1.8;
    color: var(--text-body); margin-bottom: 1.5rem;
}
.article-body ul, .article-body ol {
    margin: 1.5rem 0; padding-left: 1.5rem;
    font-family: var(--font-body); font-size: 1.05rem; line-height: 1.8;
    color: var(--text-body);
}
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text-main); font-weight: 600; }
.article-body a { color: var(--text-main); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--text-muted); }
.article-cta {
    background: var(--bg-off); border-radius: 16px; padding: 2.5rem 2rem;
    margin: 2.5rem 0; text-align: center; border: 1px solid var(--nav-border);
}
.article-cta p {
    font-family: var(--font-heading); font-size: 1.25rem;
    font-weight: 600; margin-bottom: 1.25rem; color: var(--text-main);
}
.cta-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #1a1a1a; padding: 0.8rem 2rem; border-radius: 100px;
    font-family: var(--font-body); font-size: 0.9rem;
    text-decoration: none; transition: all 0.3s;
    border: none; cursor: pointer;
}
.article-body .cta-btn,
.cta-btn { color: #ffffff; }
.cta-btn:hover { opacity: 0.85; transform: translateY(-1px); color: #ffffff; }
body.dark-mode .article-body .cta-btn,
body.dark-mode .cta-btn { background: #ffffff; color: #1a1a1a; }
body.dark-mode .cta-btn:hover { color: #1a1a1a; }
.back-link { color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.9rem; transition: color 0.3s; }
.back-link:hover { color: var(--text-main); }
.hamburger-menu { display: none; cursor: pointer; }
.hamburger-menu span { display: block; width: 22px; height: 2px; background: var(--text-main); margin: 5px 0; transition: all 0.3s; }

/* Blog footer premium */
.footer-premium {
    background: var(--bg-dark); color: var(--text-light); position: relative;
}
.footer-premium .footer-wave-top { height: 40px; background: var(--bg-white); }
.footer-premium .footer-container { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 2rem; }
.footer-premium .footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr 1fr; gap: 3rem; }
.footer-premium .footer-logo { height: 36px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-premium .footer-desc { font-family: var(--font-body); font-size: 0.85rem; color: rgba(255,255,255,0.35); line-height: 1.6; margin-bottom: 1rem; }
.footer-premium .footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-premium .badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 100px; color: rgba(255,255,255,0.35); font-family: var(--font-heading); }
.footer-premium .footer-heading { font-family: var(--font-heading); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; font-weight: 600; }
.footer-premium .footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-premium .footer-links a { font-family: var(--font-body); font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: color 0.3s; display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-premium .footer-links a:hover { color: rgba(255,255,255,0.6); }
.footer-premium .footer-contact-list { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-premium .footer-contact-list a, .footer-premium .footer-location { font-family: var(--font-body); font-size: 0.8rem; color: rgba(255,255,255,0.3); display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-premium .footer-contact-list a:hover { color: rgba(255,255,255,0.6); }
.footer-premium .footer-social-links { display: flex; gap: 0.6rem; }
.footer-premium .social-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 1rem; transition: all 0.3s; }
.footer-premium .social-icon:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
.footer-premium .footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.04); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-premium .copyright, .footer-premium .dev-credit { font-size: 0.75rem; color: rgba(255,255,255,0.2); }
.footer-premium .dev-credit a { color: rgba(255,255,255,0.3); }
.footer-premium .dev-credit a:hover { color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
    .hamburger-menu { display: block; }
    .glass-nav .nav-links {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--bg-white); flex-direction: column; justify-content: center;
        align-items: center; gap: 1.5rem; z-index: 999;
    }
    .glass-nav .nav-links.active { display: flex; }
    .glass-nav .nav-links a { font-size: 1.1rem; }
    .glass-nav .nav-links + .btn-glass { display: none; }
    .footer-premium .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-premium .footer-bottom { flex-direction: column; text-align: center; }
    .footer-premium .footer-wave-top { height: 25px; }
}

/* ========== SCROLL REVEAL ========== */
.fade-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.22,1,0.36,1),
                transform 1.2s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.revealed { opacity: 1; transform: translateY(0); }
.fade-right {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 1.2s cubic-bezier(0.22,1,0.36,1),
                transform 1.2s cubic-bezier(0.22,1,0.36,1);
}
.fade-right.revealed { opacity: 1; transform: translateX(0); }
.fade-left {
    opacity: 0; transform: translateX(40px);
    transition: opacity 1.2s cubic-bezier(0.22,1,0.36,1),
                transform 1.2s cubic-bezier(0.22,1,0.36,1);
}
.fade-left.revealed { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-3d-canvas { width: 100%; }

}

@media (max-width: 768px) {
    .navbar { padding: 0.75rem 0; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%); }
    .navbar.scrolled { background: var(--nav-bg); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
    .container { padding: 0 1.5rem; }
    .nav-container { display: flex; justify-content: space-between; align-items: center; }
    .logo { position: static; }
    .logo-img { height: 32px; }
    .nav-right { display: flex; align-items: center; gap: 0.4rem; }
    .theme-toggle-btn {
        position: static; transform: none; font-size: 1.15rem;
        color: rgba(255,255,255,0.75); padding: 0.3rem;
    }
    .navbar.scrolled .theme-toggle-btn { color: var(--text-muted); }
    .theme-toggle-btn:hover { color: #fff; }
    .hamburger { position: static; display: block; font-size: 1.4rem; color: #fff; }
    .navbar.scrolled .hamburger { color: var(--text-main); }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bg-white); flex-direction: column; justify-content: center;
        align-items: center; transition: right 0.4s cubic-bezier(0.16,1,0.3,1);
        z-index: 999; gap: 1.5rem;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; letter-spacing: 2px; color: var(--text-muted); }
    .hero { min-height: 100svh; height: auto; align-items: stretch; }
    .hero-content { flex-direction: column; flex: 1; height: auto; justify-content: center; }
    .hero-spacer { display: none; }
.hero-text { align-self: center; margin-bottom: 18rem; padding-top: 9rem; max-width: 100%; }
    .hero-title { font-size: clamp(2.8rem, 11vw, 3.5rem); margin-bottom: 0.3rem; }
    .hero-subtitle { font-size: clamp(1rem, 4vw, 1.3rem); margin-bottom: 1rem; }
    .hero-kicker { font-size: 0.85rem; margin-bottom: 0.75rem; }
    .hero-actions-desktop { display: none; }
    .hero-actions-mobile {
        display: flex; flex-direction: column; gap: 1rem;
        padding: 0 1.5rem; pointer-events: auto; align-self: center;
    }
    .hero-actions-mobile .btn-primary-solid,
    .hero-actions-mobile .btn-ghost { width: 100%; justify-content: center; padding: 0.9rem 1.5rem; font-size: 0.85rem; }
    .scroll-indicator { display: none; }
    .section-padding { padding: 3.5rem 0; }
    .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .section-subtitle { font-size: 0.95rem; }
    .products-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .seal-grid { grid-template-columns: 1fr; }
    .seal-card { padding: 2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group input, .form-group textarea { font-size: 16px; }
    .article-hero { padding: 7rem 0 2rem; }
    .article-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .article-image { max-height: 280px; border-radius: 12px; }
    .article-body { padding: 0; }
    .article-body p { font-size: 0.95rem; }
    .article-cta { padding: 1.5rem 1.25rem; }
    .footer .container { padding: 0 1rem; }
    .about-grid { gap: 2rem; }
    .section-header { margin-bottom: 2.5rem; }
    .back-to-top { right: 1rem; bottom: 1rem; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .navbar { padding: 0.6rem 0; }
    .logo-img { height: 28px; }
    .hero-text { padding-top: 6rem; }
    .hero-title { font-size: 2.4rem; }
    .hero-kicker { font-size: 0.65rem; letter-spacing: 2px; }
    .blog-card { border-radius: 10px; }
    .seal-card { padding: 1.5rem 1.25rem; }
}
