/* ============================================================
   DupWiz — Landing Page Stylesheet
   Palette (matches desktop app theme):
   --primary:       #1D63ED
   --primary-dark:  #1550C9
   --primary-light: #E9F1FD
   --bg:            #F4F7FA
   --surface:       #FFFFFF
   --border:        #DCE3EA
   --text:          #1B2B3C
   --text-muted:    #5D6B7C
   ============================================================ */

:root {
    --primary: #1D63ED;
    --primary-dark: #1550C9;
    --primary-light: #E9F1FD;
    --primary-hover: #2E77F5;
    --bg: #F4F7FA;
    --surface: #FFFFFF;
    --border: #DCE3EA;
    --text: #1B2B3C;
    --text-muted: #5D6B7C;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(22, 35, 59, 0.06);
    --shadow-md: 0 6px 24px rgba(22, 35, 59, 0.08);
    --shadow-lg: 0 20px 60px rgba(29, 99, 237, 0.12);
    --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ============ NAV ============ */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand-logo { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }

.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-btn {
    background: none; border: none; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    padding: 4px 6px; border-radius: 4px;
}
.lang-btn:hover { color: var(--primary); }
.lang-btn.active { color: var(--primary); background: var(--primary-light); }
.lang-sep { color: var(--border); font-size: 13px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: 0.3s; }

/* ============ HERO ============ */
.hero { padding: 72px 0 96px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.badge {
    display: inline-block; padding: 6px 14px;
    background: var(--primary-light); color: var(--primary-dark);
    border-radius: 100px; font-size: 13px; font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 { font-size: 48px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.text-primary { color: var(--primary); }
.hero-sub { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; color: var(--text-muted); font-size: 14px; }
.hero-visual { position: relative; }
.hero-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ============ CAROUSEL ============ */
.carousel {
    position: relative;
    outline: none;
}
.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: #fff;
}
.carousel-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}
.hero-carousel .carousel-img {
    min-height: 280px;
    object-fit: cover;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.15s, transform 0.15s;
}
.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    min-height: 24px;
}
.carousel-counter {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 4em;
    text-align: center;
}
.carousel-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--border);
    cursor: pointer;
}
.carousel-dot.is-active {
    background: var(--primary);
    transform: scale(1.15);
}
.carousel-dots:empty + .carousel-counter,
.hero-carousel .carousel-counter:empty {
    display: none;
}
.hero-carousel .carousel-footer:has(.carousel-dots:empty) {
    display: none;
}

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--text-muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============ FEATURE CARDS ============ */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon { font-size: 32px; margin-bottom: 16px; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ============ MODE CARDS ============ */
.mode-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
}
.mode-shot { background: #fff; border-bottom: 1px solid var(--border); padding: 20px; }
.mode-shot img { border-radius: 8px; border: 1px solid var(--border); }
.mode-body { padding: 24px; }
.mode-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.mode-body p { color: var(--text-muted); font-size: 15px; }

/* ============ PRICING ============ */
.pricing { align-items: stretch; }
.price-card {
    position: relative;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    display: flex; flex-direction: column;
}
.price-featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.price-ribbon {
    position: absolute; top: 16px; right: 16px;
    background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 100px;
}
.price-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0; }
.price-unit { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.price-sub { color: var(--text-muted); margin-bottom: 24px; }
.price-list { list-style: none; margin-bottom: 28px; flex: 1; }
.price-list li { padding: 8px 0; font-size: 15px; }
.price-list li.muted { color: #A9B4C2; text-decoration: line-through; }

/* ============ OPEN SOURCE ============ */
.oss-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; flex-direction: column; gap: 4px;
}
.oss-name { font-weight: 700; font-size: 16px; }
.oss-license { font-size: 13px; color: var(--text-muted); }
.oss-item a { font-size: 13px; margin-top: 4px; }

/* ============ CTA ============ */
.cta-section {
    background: linear-gradient(135deg, #1D63ED 0%, #1550C9 100%);
    color: #fff; text-align: center;
}
.cta-inner { max-width: 640px; }
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { background: #0F172A; color: #94A3B8; padding: 48px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; }
.footer-brand .brand-logo { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #94A3B8; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; opacity: 0.7; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 36px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: #fff; flex-direction: column; gap: 0;
        padding: 12px 24px; border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: block; }
    .section { padding: 64px 0; }
    .section-head h2 { font-size: 28px; }
}
