/* --- CSS Variables & Reset --- */
:root {
    --bg-dark: #030305;
    --bg-card: rgba(15, 15, 20, 0.4);
    --text-primary: #ffffff;
    --text-sec: #9ca3af;
    --accent: #00e5ff;
    --accent-hover: #00bfff;
    --accent-glow: rgba(0, 229, 255, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;

    --tr-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.eyebrow {
    font-family: var(--font-head);
}

/* --- 3D Background & Ambient Glow --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 100%, #101018 0%, #030305 100%);
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.glow-1 {
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(0, 229, 255, 0.05);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(100, 150, 255, 0.05);
}

/* --- Sub-Components --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.glass-panel.dark {
    background: rgba(10, 10, 15, 0.5);
}

.glass-panel.blur-heavy {
    backdrop-filter: blur(40px);
    background: rgba(20, 20, 25, 0.3);
}

/* Buttons */
.primary-btn {
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tr-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.primary-btn.glow {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.primary-btn.glow:hover {
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px);
}

.primary-btn.glass {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.primary-btn.glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.primary-btn.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.primary-btn.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Text Utils */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #6b7280 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.italic-accent {
    font-style: italic;
    font-weight: 300;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 2rem;
}

.section-header.center {
    text-align: center;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--tr-slow), transform var(--tr-slow);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.premium-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--tr-fast);
}

.premium-nav.scrolled {
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo .dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--tr-fast);
}

.icon-btn:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
}

.glow-btn {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.glow-btn:hover {
    background: var(--accent);
    color: #000;
}

.hidden {
    display: none !important;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    z-index: 10;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-sec);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 6.5rem;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.3rem;
    color: var(--text-sec);
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-prompt {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 13px;
    position: relative;
}

.mouse-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
        transform: translateY(5px);
    }
}

/* --- Section Formatting --- */
section {
    padding: 8rem 0;
    position: relative;
}

/* --- ESG Data (Marshalls Style) --- */
.esg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.esg-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

.esg-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.esg-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.esg-metric {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    font-family: var(--font-head);
    display: flex;
    align-items: baseline;
}

.esg-metric .unit {
    font-size: 2rem;
    color: var(--text-sec);
    margin-left: 0.5rem;
    font-weight: 300;
}

.esg-card h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.esg-card h3 .sub-title {
    display: block;
    font-size: 1.05rem;
    color: var(--text-sec);
    margin-top: 0.3rem;
    font-weight: 400;
}

.esg-card p {
    color: var(--text-sec);
    font-size: 1rem;
}

/* --- Texture Showcase (Unilock Style) --- */
.texture-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
}

.texture-text p {
    color: var(--text-sec);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0;
    transition: gap var(--tr-fast);
}

.link-btn:hover {
    gap: 1rem;
}

.macro-showcase {
    position: relative;
}

.macro-image-wrapper {
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.macro-gradient-overlay {
    width: 100%;
    height: 100%;
    transition: background var(--tr-slow);
}

.macro-gradient-overlay.type-a {
    background: linear-gradient(135deg, #2a2a35 0%, #111 100%);
}

.macro-gradient-overlay.type-b {
    background: linear-gradient(135deg, #3a322c 0%, #15100c 100%);
}

.macro-gradient-overlay.type-c {
    background: linear-gradient(135deg, #202b36 0%, #080c11 100%);
}

.macro-gradient-overlay.type-d {
    background: linear-gradient(135deg, #2a3c36 0%, #0d1511 100%);
}

.macro-caption {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
}

.macro-caption h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.macro-caption p {
    color: var(--text-sec);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.macro-thumbnails {
    position: absolute;
    bottom: 3rem;
    right: -2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.thumb[data-type="type-a"] {
    background: linear-gradient(135deg, #2a2a35, #111);
}

.thumb[data-type="type-b"] {
    background: linear-gradient(135deg, #3a322c, #15100c);
}

.thumb[data-type="type-c"] {
    background: linear-gradient(135deg, #202b36, #080c11);
}

.thumb[data-type="type-d"] {
    background: linear-gradient(135deg, #2a3c36, #0d1511);
}

.thumb.active {
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Interactive Design Studio (Belgard Style) --- */
.studio-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border-radius: 32px;
    overflow: hidden;
    min-height: 600px;
}

.studio-preview {
    background: #111;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ar-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--glass-border);
}

/* CSS Pattern Simulator */
.render-canvas {
    width: 80%;
    height: 80%;
    transform: perspective(1000px) rotateX(60deg) rotateZ(-45deg);
    transition: all 1s ease;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    position: relative;
    background-color: #2a2a2a;
    /* Default Base */
    overflow: hidden;
}

.pattern-grid {
    width: 200%;
    height: 200%;
    position: absolute;
    top: -50%;
    left: -50%;
    /* Creating a grid pattern using CSS gradients */
    background-size: 50px 100px;
    transition: all 0.5s ease;
    opacity: 0.8;
}

/* Running Pattern */
.pattern-grid.running {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.3) 2px, transparent 2px),
        linear-gradient(0deg, rgba(0, 0, 0, 0.3) 2px, transparent 2px);
    background-size: 100px 50px;
    background-position: 0 0, 50px 25px;
}

/* Herringbone Pattern */
.pattern-grid.herringbone {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.3) 10px, rgba(0, 0, 0, 0.3) 12px);
    background-size: 30px 30px;
}

/* Basket Pattern */
.pattern-grid.basket {
    background-image:
        linear-gradient(90deg, transparent 50%, rgba(0, 0, 0, 0.2) 50%),
        linear-gradient(0deg, transparent 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100px 100px;
}


.studio-controls {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.control-group {
    margin-bottom: 2.5rem;
}

.control-group h4 {
    font-size: 1rem;
    color: var(--text-sec);
    margin-bottom: 1rem;
    font-weight: 500;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.select-btn {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.select-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.select-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 600;
}

.color-swatches {
    display: flex;
    gap: 1rem;
}

.swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--c);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.swatch:hover {
    transform: translateY(-3px);
}

.swatch.active {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.1);
}

.control-summary {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-summary span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Functional Blocks --- */
.functional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.f-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.f-card h4 {
    font-size: 1.5rem;
    color: var(--accent);
}

.f-spec {
    font-weight: 500;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.5;
}

.f-desc {
    color: var(--text-sec);
    line-height: 1.6;
}

/* --- BIM Library / R&D Certificates --- */
.bim-section .subtitle {
    color: var(--text-sec);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.bim-downloads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bim-card {
    text-decoration: none;
    color: #fff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.bim-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 40, 0.6);
}

.bim-icon {
    font-size: 3rem;
    color: var(--text-sec);
    transition: color 0.3s;
}

.bim-card:hover .bim-icon {
    color: var(--accent);
}

.bim-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.bim-info p {
    color: var(--text-sec);
    font-size: 0.95rem;
}

.action-icon {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.bim-card:hover .action-icon {
    opacity: 1;
    transform: translateX(0);
}

/* --- AR CTA Section --- */
.ar-glass-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(5, 5, 10, 0.9));
}

.ar-content {
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ar-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ar-content h2 span {
    color: var(--accent);
}

.ar-content p {
    color: var(--text-sec);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.ar-features {
    list-style: none;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ar-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.ar-features i {
    color: var(--accent);
    font-size: 1.2rem;
}

.ar-visual {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    width: 250px;
    height: 500px;
    border: 8px solid #333;
    border-radius: 40px;
    background: #000;
    position: relative;
    overflow: hidden;
    transform: rotate(10deg);
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.8);
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ar-grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(0deg, rgba(0, 229, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    transform: perspective(400px) rotateX(60deg);
}

.ar-block-3d {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.8);
    transform: perspective(400px) rotateX(45deg) rotateZ(45deg);
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.5), 10px 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.ar-ui-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.ar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1s infinite;
}

/* --- Footer --- */
.premium-footer {
    position: relative;
    background: #010102;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.brand-desc {
    color: var(--text-sec);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-sec);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #fff;
}

.footer-links-group {
    display: flex;
    justify-content: space-around;
}

.link-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.link-col a {
    display: block;
    color: var(--text-sec);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.link-col a:hover {
    color: var(--accent);
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-sec);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: var(--text-sec);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

/* Animations Keyframes */
@keyframes float {

    0%,
    100% {
        transform: perspective(400px) rotateX(45deg) rotateZ(45deg) translateZ(0);
    }

    50% {
        transform: perspective(400px) rotateX(45deg) rotateZ(45deg) translateZ(20px);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }

    .texture-container,
    .studio-layout,
    .ar-glass-box {
        grid-template-columns: 1fr;
    }

    .macro-thumbnails {
        right: 2rem;
        flex-direction: row;
    }

    .studio-layout {
        display: flex;
        flex-direction: column;
    }

    .studio-controls {
        padding: 3rem 2rem;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions button:not(.mobile-menu-btn) {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .mobile-menu-btn .bar {
        width: 25px;
        height: 2px;
        background: #fff;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .esg-grid,
    .bim-downloads {
        grid-template-columns: 1fr;
    }

    .macro-image-wrapper {
        height: 400px;
    }

    .footer-links-group {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}