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

:root {
    /* Brand: Pantone 2635 C */
    --purple: #6B4C9A;
    --purple-light: #C5B4E3;
    --purple-pale: #F0EBF8;
    --purple-dark: #4A3470;
    --purple-deep: #2D1F4A;
    --cream: #FAF9FC;
    --dark: #1A1530;
    --gray: #5C5470;
    --gray-light: #A8A0B8;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 2px 20px rgba(26, 21, 48, 0.08);
    --shadow-hover: 0 8px 40px rgba(107, 76, 154, 0.15);
    --max-width: 1140px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--gray); }

.accent { color: var(--purple); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 100px; font-weight: 600;
    font-size: 0.95rem; transition: var(--transition); cursor: pointer;
    border: none; letter-spacing: -0.01em;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(107, 76, 154, 0.35); }
.btn-secondary { background: transparent; color: var(--dark); border: 1.5px solid var(--gray-light); }
.btn-secondary:hover { border-color: var(--purple); background: var(--purple-pale); }
.btn-full { width: 100%; }

/* ===== Navbar ===== */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 76, 154, 0.08); transition: var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--gray); transition: var(--transition); }
.nav-links a:hover { color: var(--purple); }
.nav-cta {
    background: var(--purple); color: var(--white) !important; padding: 10px 24px;
    border-radius: 100px; font-weight: 600;
}
.nav-cta:hover { background: var(--purple-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); transition: var(--transition); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; position: relative; overflow: hidden;
    padding: 120px 24px 80px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, var(--purple-pale) 0%, var(--white) 60%);
}
.hero-bg::before {
    content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(197, 180, 227, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-bg::after {
    content: ''; position: absolute; bottom: -10%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(107, 76, 154, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { max-width: 760px; }
.hero-badge {
    display: inline-block; padding: 8px 20px; background: var(--white); border: 1px solid var(--purple-light);
    border-radius: 100px; font-size: 0.85rem; font-weight: 500; color: var(--purple-dark);
    margin-bottom: 24px; box-shadow: var(--shadow);
}
.hero h1 { margin-bottom: 24px; }
.hero-sub { font-size: 1.15rem; max-width: 580px; margin: 0 auto 40px; color: var(--gray); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { margin-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray-light); font-size: 0.8rem; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(180deg, var(--gray-light), transparent); }

/* ===== Stats ===== */
.stats { background: var(--purple-deep); padding: 48px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--purple-light); }
.stat-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }

/* ===== Section Header ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--purple); margin-bottom: 16px;
}
.section-header.light .section-tag { color: var(--purple-light); }
.section-header.light h2 { color: var(--white); }

/* ===== About ===== */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text .lead { font-size: 1.3rem; color: var(--dark); font-weight: 500; margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }
.about-features { display: flex; flex-direction: column; gap: 20px; }
.feature-card {
    padding: 28px; background: var(--cream); border-radius: var(--radius-lg);
    border: 1px solid rgba(107, 76, 154, 0.08); transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--purple); color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

/* ===== Products ===== */
.products { padding: 120px 0; background: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition); box-shadow: var(--shadow);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-img { aspect-ratio: 1; background: var(--purple-pale); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; background: var(--purple-pale); }
.product-info { padding: 24px; }
.product-info h3 { margin-bottom: 8px; }
.product-info p { font-size: 0.9rem; margin-bottom: 16px; }
.product-tag {
    display: inline-block; padding: 4px 12px; background: var(--purple-pale); color: var(--purple-dark);
    border-radius: 100px; font-size: 0.75rem; font-weight: 600;
}
.products-note { text-align: center; margin-top: 48px; }
.products-note p { font-size: 0.95rem; }

/* ===== Quality ===== */
.quality { padding: 120px 0; background: var(--purple-deep); position: relative; overflow: hidden; }
.quality::before {
    content: ''; position: absolute; top: 0; right: 0; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(197, 180, 227, 0.12) 0%, transparent 70%); border-radius: 50%;
}
.quality-steps { display: flex; align-items: stretch; gap: 0; position: relative; }
.quality-step { flex: 1; text-align: center; padding: 0 16px; }
.step-num { font-size: 0.85rem; font-weight: 700; color: var(--purple-light); margin-bottom: 12px; letter-spacing: 0.1em; }
.quality-step h3 { color: var(--white); margin-bottom: 8px; }
.quality-step p { color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; }
.quality-line { width: 40px; align-self: center; height: 1px; background: rgba(197, 180, 227, 0.3); }

/* ===== Partners ===== */
.partners { padding: 120px 0; }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.partner-card {
    padding: 36px; border: 1.5px solid rgba(107, 76, 154, 0.08); border-radius: var(--radius-lg);
    transition: var(--transition); background: var(--white);
}
.partner-card:hover { border-color: var(--purple-light); box-shadow: var(--shadow-hover); }
.partner-card h3 { margin-bottom: 12px; color: var(--purple-dark); }
.partner-card p { font-size: 0.92rem; }

/* ===== Contact ===== */
.contact { padding: 120px 0; background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info .section-tag { margin-bottom: 16px; display: inline-block; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { font-size: 1.05rem; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-light); }
.contact-item a { font-size: 1.1rem; font-weight: 600; color: var(--dark); }
.contact-item a:hover { color: var(--purple); }

.contact-form-wrap {
    background: var(--white); padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1.5px solid rgba(107, 76, 154, 0.12);
    border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; transition: var(--transition);
    background: var(--cream);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--purple); background: var(--white);
}
.form-note { margin-top: 16px; font-size: 0.9rem; text-align: center; color: var(--purple); min-height: 20px; }

/* ===== Footer ===== */
.footer { background: var(--purple-deep); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo img { filter: brightness(0) invert(1); height: 36px; }
.footer-brand p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-links a { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--purple-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-bottom p { color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; }
.footer-disclaim { max-width: 500px; text-align: right; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 20px; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .stats .container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .quality-steps { flex-direction: column; gap: 32px; }
    .quality-line { width: 1px; height: 32px; }
    .partner-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-disclaim { text-align: center; }
}

@media (max-width: 600px) {
    .stats .container { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .nav-logo img { height: 32px; }
}
