/* ======================================
   ResCast Landing Page - Global Styles
   ====================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

/* CSS Variables - ResCast Brand */
:root {
    /* Colors */
    --color-primary: #38B6CB;
    --color-primary-dark: #2ea3b5;
    --color-primary-light: rgba(56, 182, 203, 0.1);
    --color-bg: #F9FAFB;
    --color-surface: #FFFFFF;
    --color-text: #1F2937;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;
    --color-border: #E5E7EB;
    --color-success: #10B981;
    --color-warning: #F97316;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #38B6CB 0%, #2ea3b5 100%);
    --gradient-hero: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(56, 182, 203, 0.3);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --container-padding: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(56, 182, 203, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(56, 182, 203, 0.3);
    color: white;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

/* ======================================
   Header / Navigation
   ====================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 128px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
}

/* ======================================
   Hero Section
   ====================================== */
.hero {
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-visual {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero-screenshot {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid var(--color-border);
}

/* ======================================
   Problem Section
   ====================================== */
.problem {
    padding: var(--section-padding);
    background: var(--color-surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.problem-card {
    padding: 32px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.problem-card h4 {
    margin-bottom: 12px;
    color: var(--color-text);
}

.problem-card p {
    font-size: 15px;
}

/* ======================================
   Solution Section
   ====================================== */
.solution {
    padding: var(--section-padding);
    background: var(--gradient-hero);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.solution-card {
    padding: 40px 32px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    font-size: 28px;
    margin: 0 auto 24px;
}

.solution-card h4 {
    margin-bottom: 12px;
}

/* ======================================
   How It Works Section
   ====================================== */
.how-it-works {
    padding: var(--section-padding);
    background: var(--color-surface);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.step {
    flex: 0 0 280px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 36px;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md), 0 0 30px rgba(56, 182, 203, 0.2);
}

.step h4 {
    margin-bottom: 12px;
}

/* ======================================
   Features Section
   ====================================== */
.features {
    padding: var(--section-padding);
    background: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    font-size: 24px;
}

.feature-content h4 {
    margin-bottom: 8px;
}

.pro-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gradient-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-left: 8px;
    vertical-align: middle;
}

.coming-soon-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-warning);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-left: 4px;
    vertical-align: middle;
}

/* ======================================
   Pricing Section
   ====================================== */
.pricing {
    padding: var(--section-padding);
    background: var(--color-surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border);
    text-align: center;
    transition: var(--transition-normal);
}

.pricing-card.featured {
    background: var(--color-surface);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: scale(1.05);
}

.pricing-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.pricing-card.featured .pricing-name {
    color: var(--color-primary);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-description {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 700;
}

.pricing-notes {
    list-style: none;
    max-width: 500px;
    margin: 40px auto 16px;
    text-align: left;
}

.pricing-notes li {
    color: var(--color-text-muted);
    font-size: 13px;
    padding: 4px 0;
}

.pricing-notes li::before {
    content: '•';
    margin-right: 8px;
    color: var(--color-text-light);
}

.pricing-notes-sub {
    text-align: center;
    color: var(--color-text-light);
    font-size: 12px;
}

.pricing-upgrade-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    margin-top: 16px;
}

.pricing-no-card-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    margin-top: 24px;
}

/* ======================================
   Developer Message Section
   ====================================== */
.developer-message {
    padding: 80px 0;
    background-color: var(--color-bg-secondary);
}

.developer-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.developer-content h2 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 32px;
}

.developer-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.developer-content p:last-child {
    margin-bottom: 0;
}

/* ======================================
   FAQ Section
   ====================================== */
.faq {
    padding: var(--section-padding);
    background-color: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.faq-question span {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-question h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text);
}

.faq-answer {
    padding-left: 32px;
}

.faq-answer p {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ======================================
   CTA Section
   ====================================== */
.cta {
    padding: var(--section-padding);
    background: var(--gradient-primary);
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ======================================
   Footer
   ====================================== */
.footer {
    padding: 60px 0 40px;
    background: var(--color-text);
    color: white;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 32px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h5 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ======================================
   Responsive
   ====================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    .problem-grid,
    .solution-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .steps {
        flex-direction: column;
        gap: 40px;
    }

    .steps::before {
        display: none;
    }

    .step {
        flex: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .header-inner {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}