/* ========================================
   H.D.L. (Hours. Days. Life.) 
   Universal Design System v1.5
   Signature Color: #202020 | Pure Black: #111111
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;700&display=swap');

/* 1. Global Variables & Reset */
:root {
    --hdl-bg-grey: #202020;
    --hdl-pure-black: #111111;
    --hdl-white: #ffffff;
    --hdl-grey: #a0a0a0;
    --hdl-border: #333333;
    --ai-bg: #111111;
    --text-grey: #888888;
    --font-en: 'Montserrat', sans-serif;
    --font-kr: 'Noto Sans KR', sans-serif;
    --nav-height: 64px;
}

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

body, html {
    background-color: var(--hdl-bg-grey);
    color: var(--hdl-white);
    font-family: var(--font-kr);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

    /* Hero Section */
    .hero { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(rgba(32,32,32,0.6), rgba(32,32,32,0.6)), url('image_4b9df3.jpg'); background-size: cover; background-position: center; }
    .hero h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(40px, 8vw, 90px); font-weight: 700; letter-spacing: -4px; margin: 0; line-height: 0.9; }
    .hero h2 { font-size: clamp(18px, 3vw, 28px); font-weight: 300; letter-spacing: 6px; margin-top: 25px; color: #eee; }
    .hero-btn { margin-top: 40px; padding: 15px 40px; border: 1px solid #fff; color: #fff; text-decoration: none; font-size: 14px; letter-spacing: 2px; transition: 0.3s; }
    .hero-btn:hover { background: #fff; color: #000; }

    /* Content Sections */
    .section { padding: 140px 25px; max-width: 1100px; margin: 0 auto; }
    .label { font-size: 11px; letter-spacing: 5px; color: #555; text-transform: uppercase; display: block; margin-bottom: 20px; }
    .title-l { font-size: clamp(22px, 8vw, 40px) !important; font-weight: 700; line-height: 1.2; margin-bottom: 30px; word-break: keep-all; padding: 0 10px; max-width: 100%; }
    .desc-l { font-size: 18px; color: var(--text-grey); line-height: 1.8; font-weight: 300; }

    /* View More Button Style */
    .view-more-btn {
      margin-top: 40px; background: transparent; border: 1px solid #444; color: #888;
      padding: 12px 35px; font-family: 'Montserrat', sans-serif; font-size: 11px;
      letter-spacing: 3px; cursor: pointer; transition: 0.3s; text-decoration: none;
      display: inline-block; text-align: center;
    }
    .view-more-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }
      
      
      /* 2. Signature Typography (The H.D.L. Identity) */
      /* 작가님이 강조하신 허브/랩 공통 타이틀 로직 */
      .hub-title, .lab-title, .mid-title {
          font-family: var(--font-en);
          font-size: 12px;
          letter-spacing: 8px;
          color: var(--hdl-grey);
          margin-bottom: 60px;
          display: block;
          border-left: 2px solid var(--hdl-white);
          padding-left: 15px;
          text-transform: uppercase;
      }
      
      .title-xl {
          font-family: var(--font-en);
          font-size: clamp(22px, 8vw, 40px); /* 📱 모바일 유동 크기 */
          font-weight: 700;
          letter-spacing: -2px;
          line-height: 1.2;
          word-break: keep-all;
      }
      
      .text_m { font-size: 18px; color: var(--hdl-grey); font-weight: 300; line-height: 1.8; }
      .text_s { font-size: 11px; letter-spacing: 5px; color: #555; text-transform: uppercase; }

/* 3. Navigation System (PC & Mobile 통합) */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(32, 32, 32, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--hdl-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    height: var(--nav-height);
    box-sizing: border-box;
}

.logo-font {
    font-family: var(--font-en);
    font-weight: 600;
    letter-spacing: -1.5px;
    font-size: 22px;
    text-decoration: none;
    color: #fff;
}

.desktop-menu {
    display: flex;
    align-items: center;
}

.desktop-menu a {
    color: var(--text-grey);
    text-decoration: none;
    margin-left: 30px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.desktop-menu a:hover,
.desktop-menu a.active {
    color: #fff;
}

.desktop-menu a.active {
    font-weight: 900;
}

.contact-btn-pc {
    color: #fff !important;
    border: 1px solid #444;
    padding: 5px 12px;
    border-radius: 2px;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-btn span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    transition: 0.4s ease-in-out;
}

.mobile-overlay.active {
    right: 0;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: #1a1a1a;
    padding: 80px 30px;
    box-sizing: border-box;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: #888;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 4. Common Page Header System */
.hub-header,
.lab-header,
.phi-header,
.sketch-header {
    padding: 140px 25px 56px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hub-header .label,
.lab-header .label,
.phi-header .label,
.sketch-header .label {
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 8px;
    color: #555;
    text-transform: uppercase;
    display: block;
    margin-bottom: 25px;
}

.hub-header .title-xl,
.lab-header .title-xl,
.phi-header .title-xl,
.sketch-header .title-xl {
    font-size: clamp(22px, 8vw, 40px) !important;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.2;
    margin-bottom: 30px;
    word-break: keep-all;
    padding: 0 10px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .hub-header,
    .lab-header,
    .phi-header,
    .sketch-header {
        padding: 110px 20px 56px;
    }

    .hub-header .title-xl,
    .lab-header .title-xl,
    .phi-header .title-xl,
    .sketch-header .title-xl {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    .hub-header .title-xl,
    .lab-header .title-xl,
    .phi-header .title-xl,
    .sketch-header .title-xl {
        font-size: 7vw !important;
        display: inline-block;
        width: 100%;
    }
}

/* 5. Common Components (Cards & Grids) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px; margin-top: 60px;
}

.hdl-card {
    background: var(--hdl-pure-black);
    border: 1px solid var(--hdl-border);
    padding: clamp(25px, 5vw, 50px);
    transition: 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
}

.hdl-card:hover { transform: translateY(-10px); border-color: #777; }


/* 8. result box */
.result-placeholder {
    margin-top: 40px;
    padding: 10px 20px;
    border: 2px dashed #444; /* H.D.L. 감성에 맞는 어두운 점선 */
    border-radius: 15px;
    text-align: flex;
    min-height: 150px; /* 세로 높이를 좀 작게 설정 */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: rgba(255, 255, 255, 0.03); /* 아주 살짝 밝은 배경 */
}

.result-placeholder p {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 결과가 들어왔을 때 점선을 없애는 클래스 */
.result-active {
    border: none;
    background: none;
    display: block; /* 다시 원래대로 */
    padding: 0;
}


/* -------------------------------------------
       INTELLIGENT SOLUTION HUB (Tech Grid)
       ------------------------------------------- */
    .ai-section { background: var(--hdl-bg-grey); padding: 80px 25px; border-top: 1px solid #333; }
    .ai-container { margin: 0 auto; }
    
    .gpt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
    .gpt-card { background: #111; border: 1px solid #333; padding: clamp(25px, 5vw, 40px); border-radius: 4px; transition: 0.4s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
    .gpt-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: #555; transition: 0.4s; }
    .gpt-card:hover { transform: translateY(-8px); border-color: #555; box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
    .gpt-card:hover::before { background: #fff; }
    
    .gpt-label { font-size: 10px; letter-spacing: 2px; color: #777; margin-bottom: 15px; display: block; }
    .gpt-card h4 { font-size: clamp(18px, 4vw, 22px); font-weight: 700; margin: 0 0 15px; color: #fff; word-break: keep-all; }
    .gpt-card p { font-size: 14px; color: #999; line-height: 1.6; flex-grow: 1; margin-bottom: 30px; word-break: keep-all; }
    .btn-launch { font-size: 12px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
    .btn-launch::after { content: '→'; font-size: 14px; transition: 0.3s; }
    .gpt-card:hover .btn-launch::after { transform: translateX(5px); }

   /* 크고 시원한 HDL 스타일 복사 버튼 */
    .hdl-copy-btn-large {
       display: block;
       width: 100%;
       text-align: center;
       text-decoration: none;
       margin-top: 25px;
       font-weight: 900;
       padding: 20px 0;
       background: #fff;
       color: #000;
       border: none;
       cursor: pointer;
       font-family: 'Montserrat', sans-serif;
       font-size: 14px;
       letter-spacing: 1px;
       transition: 0.3s;
    }
   
    .hdl-copy-btn-large:hover {
       background: #e0e0e0; /* 살짝 회색으로 변하는 효과 */
    }
   


    footer { padding: 80px 25px; border-top: 1px solid var(--border-soft); text-align: center; color: #444; font-size: 12px; }
    @media (max-width: 480px) {
      .gpt-grid {
        grid-template-columns: 1fr; /* 모바일은 무조건 한 줄! */
        gap: 15px;
      }
      
      .gpt-card {
        padding: 25px 20px; /* 더 좁은 화면을 위한 최후의 보루 */
      }
    }
    @media (max-width: 900px) {
      .book-item { grid-template-columns: 1fr; gap: 30px; }
      .book-visual { height: 200px; }
    }
    @media (max-width: 768px) {
      .title-xl { font-size: 32px; }
      .modal-content { padding: 40px 25px; }
    }
