@charset "utf-8";
/**
 * Kanana.ai Service Page Styles
 * Mobile-First Responsive Design (320px ~ 480px)
 * Based on Figma: mo_kor_light_320
 *
 * Note: @font-face는 page.html에서 환경별 CDN URL로 인라인 정의됨
 */

/* ========================================
 * 1. Reset & Base Styles
 * ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
    background-color: var(--bg-page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

/* ========================================
 * 3. Layout Container
 * ======================================== */
.container {
    position: relative;
    width: 100%;
    min-width: 320px;
    max-width: var(--container-max-width);
    min-height: 100vh;
    margin: 0 auto;
    background: linear-gradient(180deg, #FEF7FA 0%, #FFF2EA 100%);
    overflow-x: hidden;
}

/* ========================================
 * 4. Hero Section
 * - Gradient background
 * - Kanana logo
 * - Tagline text
 * - Navigation arrows and pagination
 * ======================================== */
.hero {
    position: relative;
    height: var(--hero-height);
    background: var(--bg-hero-gradient);
    overflow: hidden;
}

/* Hero Background Pattern (decorative circles) */
.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero__background-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(200, 180, 180, 0.3);
}

/* Hero Content */
.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.hero__logo {
    width: var(--hero-logo-size);
    height: var(--hero-logo-size);
    margin: 0 auto 24px;
}

.hero__logo svg {
    width: 100%;
    height: 100%;
}

.hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hero-text-gap);
}

.hero__title {
    font-size: var(--font-size-hero-title);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-hero-title);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
    white-space: pre-line;
}

.hero__subtitle {
    font-size: var(--font-size-hero-subtitle);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-hero-subtitle);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
    white-space: pre-line;
}

/* Hero Dimmed Overlay (bottom gradient) */
.hero__dimmed {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        0deg,
        rgba(150, 142, 142, 0.5) 0%,
        rgba(150, 142, 142, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Hero Navigation Arrows */
.hero__nav {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 3;
}

.hero__arrow {
    width: var(--arrow-btn-size);
    height: var(--arrow-btn-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dimmed);
    border-radius: 50%;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.hero__arrow:hover {
    background-color: rgba(17, 17, 17, 0.6);
}

.hero__arrow:active {
    transform: scale(0.95);
}

.hero__arrow svg {
    width: var(--arrow-icon-size);
    height: var(--arrow-icon-size);
}

.hero__arrow--prev svg {
    transform: rotate(180deg);
}

/* Hero Pagination Dots */
.hero__pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--dot-gap);
    z-index: 3;
}

.hero__dot {
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background-color: var(--color-dot-inactive);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.hero__dot.active {
    background-color: var(--color-dot-active);
}

/* ========================================
 * 5. Content Wrapper & Link Section (Categories)
 * ======================================== */

.link-section {
    padding: var(--section-gap) var(--container-padding) 0;
}

/* 마지막 링크 섹션과 푸터 사이 간격 */
.content-wrapper {
    margin-bottom: 60px;
}

@media (min-width: 448px) {
    .content-wrapper {
        margin-bottom: 96px;
    }
}

/* 카테고리 간 간격 (두 번째 섹션부터) - 모바일: 40px, PC: 78px */
.link-section + .link-section {
    padding-top: 40px;
}

@media (min-width: 448px) {
    .link-section + .link-section {
        padding-top: 62px;
    }
}

.link-section__title {
    font-size: var(--font-size-section-title);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-title);
    letter-spacing: var(--letter-spacing-hero);
    color: var(--text-primary);
    margin-bottom: var(--section-title-gap);
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
}

/* ========================================
 * 6. Link Card Component
 * - White background with shadow
 * - Rounded corners (19px)
 * - Icon with gradient stroke
 * - Title and description
 * - Arrow button
 * ======================================== */
.link-card {
    position: relative;
    display: block;
    height: var(--card-height);
    padding: var(--card-padding);
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 6px 0px rgba(190, 160, 160, 0.35);
}

.link-card:active {
    transform: translateY(0);
}

/* Card Text Content */
.link-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 448px) {
    .link-card__content {
        gap: 6px;
    }
}

.link-card__title {
    font-size: var(--font-size-card-title);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-title);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-card__subtitle {
    font-size: var(--font-size-card-desc);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Icon */
.link-card__icon {
    position: absolute;
    left: var(--card-padding);
    bottom: var(--card-padding);
    width: var(--icon-size);
    height: var(--icon-size);
}

.link-card__icon svg,
.link-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card Arrow Button */
.link-card__arrow {
    position: absolute;
    right: var(--card-padding);
    bottom: var(--card-padding);
    width: var(--arrow-btn-size);
    height: var(--arrow-btn-size);
    transition: transform var(--transition-fast);
}

.link-card:hover .link-card__arrow {
    transform: translateX(2px);
}

.link-card__arrow img {
    width: 100%;
    height: 100%;
}

/* ========================================
 * 7. Footer Section
 * Figma: Mobile 320x138, PC 560x246
 * ======================================== */
.footer {
    padding: 20px 15px 100px;
    border-top: 0.5px solid #BFBFBF;
    background-color: #fff;
}

@media (min-width: 448px) {
    .footer {
        padding: 40px 19px 129px;
    }
}

.footer__text {
    font-size: 12px;
    font-weight: var(--font-weight-regular);
    line-height: 18px;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-secondary);
}

@media (min-width: 448px) {
    .footer__text {
        font-size: 19px;
        line-height: 28px;
    }
}

/* ========================================
 * 8. SVG Gradient Definitions
 * ======================================== */
.kanana-gradient {
    --gradient-start: #FF5CAA;
    --gradient-mid1: #FF287D;
    --gradient-mid2: #FF327B;
    --gradient-mid3: #FF4D75;
    --gradient-mid4: #FF796D;
    --gradient-end: #FFA066;
}

/* ========================================
 * 9. Utility Classes
 * ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
 * 10. Responsive Adjustments
 * ======================================== */
@media (min-width: 375px) {
    :root {
        --hero-height: 520px;
        --hero-logo-size: 110px;
        --font-size-hero-title: 32px;
        --font-size-hero-subtitle: 18px;
    }
}

/* PC: 중앙 컨텐츠 영역 외 좌우 배경색 */
@media (min-width: 448px) {
    body {
        background-color: #FFFAFD;
    }

    :root {
        --container-padding: 22px;
        --card-height: 224px;
        --card-radius: 27px;
        --card-padding: 26px;
        --icon-size: 67px;
        --arrow-btn-size: 36px;
        --arrow-icon-size: 14px;
        --section-gap: 82px;
        --section-title-gap: 27px;
        --card-gap: 24px;
        --font-size-section-title: 26px;
        --font-size-card-title: 26px;
        --font-size-card-desc: 19px;
        --line-height-title: 30px;
        --line-height-body: 28px;
    }
}

/* ========================================
 * 11. Rolling Banner Section (Backward Compatibility)
 * ======================================== */
.rolling-banner {
    position: relative;
    width: 100%;
    max-width: 448px;
    aspect-ratio: 2 / 3;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
}

.rolling-banner__wrapper {
    display: flex;
    height: 100%;
    transition: transform var(--transition-normal);
}

.rolling-banner__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
}

.rolling-banner__slide a {
    display: block;
    position: relative;
    height: 100%;
}

.rolling-banner__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.rolling-banner__dimmed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    border-radius: 0;
    pointer-events: none;
}

.rolling-banner__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

@media (min-width: 448px) {
    .rolling-banner__nav {
        padding: 0 21px;
    }
}

.rolling-banner__arrow {
    width: var(--arrow-btn-size);
    height: var(--arrow-btn-size);
    pointer-events: auto;
    transition: transform var(--transition-fast);
}

.rolling-banner__arrow:hover {
    transform: scale(1.05);
}

.rolling-banner__arrow:active {
    transform: scale(0.95);
}

.rolling-banner__arrow img {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.rolling-banner__indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

@media (min-width: 448px) {
    .rolling-banner__indicators {
        bottom: 58px;
        gap: 8px;
    }
}

.rolling-banner__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: opacity var(--transition-fast), background-color var(--transition-fast);
}

@media (min-width: 448px) {
    .rolling-banner__dot {
        width: 11px;
        height: 11px;
    }
}

.rolling-banner__dot.active {
    background-color: #111111CC;
}

/* Header - 롤링 배너 위에 오버레이 */
.header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 25px 15px;
}

@media (min-width: 448px) {
    .header {
        padding: 36px 22px;
    }
}

.header__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header__logo-kanana {
    width: 64.75px;
    height: 21px;
}

@media (min-width: 448px) {
    .header__logo-kanana {
        width: 86px;
        height: 28px;
    }
}
