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

:root {
    --color-primary: #222222;
    --color-secondary: #333333;
    --color-accent: #1a3a5c; /* Deep Navy */
    --color-highlight: #fff3cd;
    --color-bg: #fafafa;
    --color-white: #ffffff;
    --color-muted: #666666;
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.9;
    color: var(--color-primary);
    background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.5;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlight {
    background: linear-gradient(transparent 60%, var(--color-highlight) 60%);
    padding: 0 4px;
}

strong {
    font-weight: 500;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Minimal & Transparent */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 0;
    z-index: 100;
    transition: background 0.3s;
}

.site-header.scrolled {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-primary);
    margin: 6px 0;
    transition: 0.3s;
}

/* Hero Section - Typewriter Effect */
.hero-typewriter {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.hero-content {
    max-width: 600px;
}

.typewriter-text {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 40px;
    min-height: 140px;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--color-primary);
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Noise Section - Blurred Background */
.noise-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.noise-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    animation: noiseBlur 4s ease-in-out forwards;
}

@keyframes noiseBlur {
    0% {
        filter: blur(0px);
        opacity: 0.5;
    }
    50% {
        filter: blur(1px);
        opacity: 0.35;
    }
    100% {
        filter: blur(3px);
        opacity: 0.15;
    }
}

.noise-text {
    font-size: 0.9rem;
    color: var(--color-primary);
    white-space: nowrap;
}

.noise-foreground {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px;
}

.noise-foreground blockquote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Base */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--color-white);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--color-secondary);
    font-size: 0.95rem;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 18px 48px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 1px solid var(--color-primary);
}

.cta-button:hover {
    background: transparent;
    color: var(--color-primary);
}

.cta-wrapper {
    text-align: center;
    margin-top: 80px;
}

/* Portfolio Slider */
.portfolio-item {
    margin-bottom: 120px;
    padding-bottom: 120px;
    border-bottom: 1px solid #eee;
}

.portfolio-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-number {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.portfolio-title {
    font-size: 1.5rem;
}

.slider-container {
    max-width: 400px;
    margin: 0 auto 40px;
    position: relative;
}

.phone-mockup {
    background: var(--color-white);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.phone-screen {
    background: var(--color-bg);
    border-radius: 16px;
    height: 500px;
    overflow-y: auto;
    padding: 24px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.phone-screen::-webkit-scrollbar {
    width: 4px;
}

.phone-screen::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.slider-content {
    display: none;
}

.slider-content.active {
    display: block;
}

.slider-content.before {
    color: var(--color-muted);
}

.slider-content.before p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.slider-content.after p {
    margin-bottom: 16px;
}

.slider-content.after strong {
    font-weight: 500;
}

.slider-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.slider-btn {
    padding: 10px 24px;
    border: 1px solid var(--color-primary);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.portfolio-result {
    text-align: center;
    padding: 40px;
    background: var(--color-white);
    border: 1px solid #eee;
}

.result-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-muted);
    margin-bottom: 12px;
}

.result-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

.result-highlight {
    color: var(--color-accent);
    font-weight: 700;
}

/* Philosophy Section */
.philosophy-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23111" width="100" height="100"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.philosophy-item {
    margin-bottom: 60px;
    padding-left: 70px;
    position: relative;
}

.philosophy-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.8rem;
    opacity: 1;
}

.philosophy-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.philosophy-item p {
    color: #f0f0f0;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.8;
}

/* Contact Form - Letter Style */
.contact-letter {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 2;
}

.form-line {
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 2.5;
}

.form-line label {
    color: var(--color-secondary);
}

.underline-input {
    border: none;
    border-bottom: 2px solid var(--color-primary);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 8px 12px;
    min-width: 300px;
    transition: border-color 0.3s;
}

.underline-input:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

.underline-input::placeholder {
    color: var(--color-muted);
    font-style: italic;
}

textarea.underline-input {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    border: 1px solid #e0e0e0;
    padding: 16px;
    margin-top: 8px;
}

textarea.underline-input:focus {
    border-color: var(--color-accent);
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.submit-button:hover {
    background: var(--color-accent);
}

/* Footer */
.site-footer {
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid #eee;
    background: var(--color-white);
}

.footer-brand {
    margin-bottom: 32px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 0;
}

.footer-menu {
    margin-bottom: 40px;
}

.footer-menu a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--color-primary);
}

.footer-menu span {
    margin: 0 12px;
    color: var(--color-muted);
}

.footer-contact {
    margin-bottom: 32px;
}

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--color-secondary);
}

.footer-business {
    margin-bottom: 32px;
}

.footer-business p {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 4px;
    line-height: 1.6;
}

.footer-policy {
    margin-bottom: 24px;
}

.footer-policy a {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-policy a:hover {
    color: var(--color-primary);
}

.copyright {
    font-size: 0.7rem;
    color: var(--color-muted);
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    padding: 140px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.page-header p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Principle Cards for Philosophy Page */
.principle {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--color-white);
    border-left: 2px solid var(--color-accent);
}

.principle-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #eee;
    margin-bottom: 16px;
}

.principle h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.principle p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.difference {
    margin-top: 80px;
    padding: 60px 40px;
    background: var(--color-primary);
    color: #ffffff;
    text-align: center;
}

.difference p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 0;
    color: #ffffff;
}

.difference strong {
    color: #ffffff;
    font-weight: 700;
}

/* Service Items */
.service-item {
    margin-bottom: 60px;
    padding: 48px;
    background: var(--color-white);
    border: 1px solid #eee;
}

.service-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.service-item p {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.9;
}

.service-price {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Process */
.process {
    margin-top: 80px;
    padding: 60px 40px;
    background: var(--color-white);
}

.process h3 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 1.2rem;
}

.process-steps {
    display: grid;
    gap: 32px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    min-width: 60px;
}

.step-content h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0;
    line-height: 1.8;
}

/* Before/After comparison */
.comparison {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}

.comparison-item {
    padding: 36px;
    border-radius: 4px;
}

.comparison-item.before {
    background: #f5f5f5;
}

.comparison-item.after {
    background: #e8f0e8;
    border-left: 3px solid var(--color-accent);
}

.comparison-item h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.comparison-item p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-primary);
}

/* Privacy Policy */
.privacy-content h3 {
    font-size: 1.1rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Checkbox */
.checkbox-group {
    margin: 32px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .typewriter-text {
        font-size: 1.6rem;
    }

    .noise-foreground blockquote {
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 0;
    }

    .phone-screen {
        height: 400px;
    }

    .contact-letter {
        padding: 40px 24px;
    }

    .underline-input {
        min-width: 200px;
    }

    .philosophy-section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .typewriter-text {
        font-size: 1.4rem;
    }

    .form-line {
        font-size: 0.9rem;
    }

    .underline-input {
        min-width: 160px;
        font-size: 1rem;
    }
}
