/* Global Variables */
:root {
    --primary-color: #222222;
    /* Softened from #000 */
    --accent-color: #fff;
    --bg-color: #EAD24C;
    --surface-color: #FFFFFF;
    --text-color: #333333;
    /* Softened from #121212 */
    --text-muted: #555555;
    --border-color: rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --header-height: 80px;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.outline-btn {
    background-color: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.outline-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.logo .dot {
    color: #fff;
}

#nav-menu ul {
    display: flex;
    gap: 40px;
}

#nav-menu a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

#nav-menu a:hover,
#nav-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    /* Changed from height to min-height to prevent cutting off on small screens */
    display: flex;
    align-items: center;
    padding-top: 150px;
    /* Increased padding to clear the fixed header completely */
    padding-bottom: 60px;
    background: transparent;
}

#hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    /* Slightly smaller to fit Korean better if needed */
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    word-break: keep-all;
}

.hero-content .highlight {
    position: relative;
    z-index: 1;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: #fff;
    z-index: -1;
    opacity: 0.6;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 500px;
    font-weight: 500;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Common Section Styles */
section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    /* Standardized size (was 3rem) */
    color: var(--primary-color);
}

/* Company Section */
/* #company .section-header h2 removed - using global defaults */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-block p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.feature-list svg {
    color: var(--primary-color);
    /* Checkmarks black */
    width: 20px;
    height: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 40px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #333;
}

.keyword {
    color: #d73a49;
}

.variable {
    color: #005cc5;
}

.string {
    color: #22863a;
}

/* Company Section - Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    /* Increased gap for elegance */
    margin-top: 50px;
}

.feature-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 0;
    /* No padding needed without card bg */
    background: transparent;
    /* No white background */
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    /* Subtle lift */
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    /* Black/Dark Gray #222 */
    border-radius: 50%;
    /* Elegant Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item:hover .feature-icon {
    background: var(--primary-color);
    /* Stays dark */
    transform: scale(1.05);
    /* Subtle pulse */
}

.feature-icon svg {
    color: var(--bg-color);
    /* Yellow Icon #EAD24C */
    width: 28px;
    height: 28px;
}

.feature-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-text p {
    color: var(--text-color);
    /* Use main text color for readability on yellow */
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* How It Works Section - Workflow Diagram */
/* #how-it-works .section-header h2 removed - using global defaults */

/* Pricing Section - Package Details */
#pricing {
    padding-top: 90px;
    /* Reduced to 90px */
    padding-bottom: 120px;
}

.pricing-desc {
    max-width: 800px;
    margin: 40px auto 50px;
    /* Reduced bottom margin to move grid up */
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.package-features {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping for side-by-side items */
    justify-content: center;
    gap: 40px 60px;
    /* Gap between rows and columns */
    max-width: 1000px;
    /* Increased max-width */
    margin: 0 auto;
}

.pkg-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: transparent;
    width: calc(50% - 30px);
    /* 2 items per row */
    text-align: left;
    box-sizing: border-box;
}

.pkg-icon {
    width: 80px;
    /* Adjusted size for grid */
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform: translateY(-15px);
    /* Lift icon up */
}

.pkg-item:hover .pkg-icon {
    transform: translateY(-15px) scale(1.1) rotate(5deg);
    /* Preserve lift on hover */
}

.pkg-icon svg {
    color: var(--bg-color);
    width: 40px;
    height: 40px;
}

.pkg-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* How It Works Section - Workflow Diagram (Restored) */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    position: relative;
    gap: 20px;
}

.wf-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Icon Top */
    align-items: center;
    position: relative;
    text-align: center;
}

.wf-icon-box {
    width: 80px;
    height: 80px;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    background-color: #fff;
    flex-shrink: 0;
}

.wf-icon-box svg {
    color: var(--primary-color);
    width: 32px;
    height: 32px;
}

.wf-number {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Connecting Arrow */
.wf-step:not(:last-child) .wf-arrow {
    display: block;
    position: absolute;
    top: 40px;
    /* Center of 80px icon */
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.wf-step:not(:last-child) .wf-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.wf-step h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    word-break: keep-all;
    margin: 0;
}

/* Detailed Descriptions */
.workflow-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    background: transparent;
    padding: 20px 0;
    border-radius: 0;
}

.detail-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.detail-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
    flex-shrink: 0;
}

.detail-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.detail-content p {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .workflow-steps {
        flex-wrap: wrap;
        justify-content: center;
    }

    .wf-step {
        flex: 0 0 30%;
        /* 3 per row */
        margin-bottom: 30px;
    }

    /* Adjust Arrows for Mobile Wrap */
    .wf-step:not(:last-child) .wf-arrow {
        display: none;
    }

    .workflow-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .wf-step {
        flex: 0 0 45%;
        /* 2 per row */
    }
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.pricing-card {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 12px;
}

/* FAQ Section */
#faq {
    padding-top: 60px;
}

#faq .section-header h2 {
    font-size: 2rem;
    /* Reduced from 3rem to match Contact header visual weight closer */
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item .question {
    padding: 30px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Spacing between icon and text */
}

.q-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: var(--bg-color);
    /* Yellow text on Black icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.faq-item .question h4 {
    flex-grow: 1;
    /* Pushes arrow to the right */
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.3s;
    color: var(--primary-color);
}

.faq-item .question:hover h4 {
    opacity: 0.7;
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .answer {
    max-height: 200px;
    padding-bottom: 30px;
}

.faq-item.active svg {
    transform: rotate(45deg);
    transition: transform 0.3s;
}

/* Contact Section */
#contact {
    padding: 100px 0;
    /* Increased from 60px to move it down slightly */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    /* Ensures consistent alignment across browsers */
}

.contact-info h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    /* Matched to FAQ section header size */
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.info-item svg {
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 1rem;
    /* Compact margin */
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.contact-form textarea {
    height: 100px;
    /* Reduced height */
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer (Dark for Contrast) */
/* Footer (Compact Dark) */
#footer {
    background: var(--primary-color);
    padding: 20px 0;
    /* Reduced padding */
    color: #fff;
    margin-top: 100px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand .logo {
    color: #fff;
}

.footer-brand .dot {
    color: var(--bg-color);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Reduced row spacing */
    font-size: 0.65rem;
    /* Reduced to 0.65rem */
    color: #bbb;
}

.footer-info .info-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
	height: 30px; 
}

.footer-info .info-item {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #bbb;
}

/* Target SVG generated by Lucide */
.footer-info .info-item svg {
    width: 12px;
    /* Smaller icon size */
    height: 12px;
    color: var(--bg-color);
    margin-right: 2px;
    stroke-width: 2px;
}

.footer-info .info-item a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-info .info-item a:hover {
    color: var(--bg-color);
    text-decoration: underline;
}

.divider {
    color: #444;
    font-size: 0.65rem;
    /* Match text size */
}

.copyright {
    margin-top: 10px;
    color: #666;
    font-size: 0.65rem;
    /* Match text size */
}

/* Responsive Footer */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    #nav-menu.active {
        display: block;
    }

    #nav-menu ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    #hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-visual {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #FFFFFF;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--primary-color);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 80px;
    height: 80px;
    color: #222;
    fill: var(--bg-color);
    /* Yellow Fill */
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.4;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-content .primary-btn {
    width: 100%;
}