/* SkinAI Corporate Website — Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-y: scroll; }

:root {
    --primary: #38BCD8;
    --primary-dark: #2E9AB8;
    --primary-light: #5CD6E8;
    --primary-bg: rgba(56, 188, 216, 0.08);
    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-tertiary: #8896a6;
    --bg: #ffffff;
    --bg-subtle: #f7f9fc;
    --bg-dark: #0f1923;
    --bg-dark-card: #182736;
    --border: #e8edf2;
    --radius: 8px;
    --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ---- Defensive overflow ---- */
.hero-title, .section-title, .stat-number,
.product-card h3, .team-card h3 {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-subtle); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .section-tag { color: var(--primary-light); }

/* ---- Typography ---- */
.section-tag {
    display: inline-block; font-size: 12px; font-weight: 700;
    color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.section-title {
    font-size: 36px; font-weight: 800; line-height: 1.2;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px; color: var(--text-secondary); line-height: 1.6;
    max-width: 640px;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-family: inherit; font-size: 15px; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--text-primary); }
.btn-white:hover { background: var(--bg-subtle); }
.btn-outline-light {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ---- Top bar ---- */
.top-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
}

/* ---- Navbar ---- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar .container {
    display: flex; align-items: center; height: 64px; gap: 32px;
}
.navbar-logo { height: 64px; }
.navbar-links { display: flex; align-items: center; gap: 32px; list-style: none; margin-right: auto; }
.navbar-links a {
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: color 0.15s; display: flex; flex-direction: column; align-items: center;
}
.navbar-links a::after {
    content: attr(data-text);
    font-weight: 600; height: 0; overflow: hidden; visibility: hidden;
    pointer-events: none;
}
.navbar-links a:hover { color: var(--primary); }
.navbar-links .active { color: var(--primary); font-weight: 600; }
.navbar-cta { display: flex; align-items: center; gap: 12px; }
.navbar-lang {
    font-size: 13px; font-weight: 500; color: var(--text-tertiary);
    padding: 6px 10px; border-radius: 4px; border: 1px solid var(--border);
}
.navbar-lang:hover { background: var(--bg-subtle); }

/* Mobile menu */
.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--text-secondary);
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
}
.menu-toggle svg { transition: transform 0.2s; }
.mobile-menu {
    display: flex; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0 24px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.mobile-menu a {
    display: block; padding: 14px 0; font-size: 15px; font-weight: 500;
    color: var(--text-secondary); border-bottom: 1px solid var(--border);
    min-height: 44px; display: flex; align-items: center;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { max-height: 400px; padding: 8px 24px 16px; }

/* ---- Hero ---- */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}
.hero .container {
    display: flex; align-items: center; gap: 60px;
}
.hero-content { flex: 1; }
.hero-title {
    font-size: 48px; font-weight: 800; line-height: 1.15;
    margin-bottom: 20px;
}
.hero-title span { color: var(--primary); }
.hero-subtitle {
    font-size: 18px; color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 32px; max-width: 520px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
    flex: 1; display: flex; align-items: center; justify-content: center;
}
.hero-image {
    width: 100%; max-width: 480px;
}

/* ---- Touch / Mobile UX ---- */
@media (hover: none) {
    .product-card:hover { transform: none; box-shadow: none; }
    .btn-primary:hover { transform: none; }
}
@media (hover: hover) {
    .usecase-card { transition: border-color 0.2s, box-shadow 0.2s; }
    .usecase-card:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 20px rgba(56, 188, 216, 0.1);
    }
    .detail-item { transition: border-color 0.2s, box-shadow 0.2s; }
    .detail-item:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 20px rgba(56, 188, 216, 0.1);
    }
    .team-card { transition: border-color 0.2s, transform 0.2s; }
    .team-card:hover { border-color: var(--primary); transform: translateY(-2px); }
}

/* ---- Focus / Accessibility ---- */
.btn:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---- Product Cards ---- */
.products-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    margin-top: 48px;
}
.product-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 32px; transition: all 0.25s;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.product-icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: var(--primary-bg); display: flex;
    align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--primary);
}
.product-card h3 {
    font-size: 22px; font-weight: 700; margin-bottom: 12px;
}
.product-card p {
    font-size: 15px; color: var(--text-secondary); line-height: 1.6;
    margin-bottom: 20px; flex: 1;
}
.product-link {
    font-size: 14px; font-weight: 600; color: var(--primary);
    display: inline-flex; align-items: center; gap: 6px;
}
.product-link:hover { gap: 10px; }

/* ---- Features grid ---- */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    margin-top: 48px;
}
.feature-item { text-align: center; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--primary-bg); display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 16px; color: var(--primary);
}
.feature-item h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 8px;
}
.feature-item p {
    font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}

/* ---- Stats ---- */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    margin-top: 48px;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 40px; font-weight: 800; color: var(--primary);
    line-height: 1;
}
.stat-number--text {
    font-size: 28px; letter-spacing: -0.01em;
}
.stat-label {
    font-size: 14px; color: var(--text-tertiary); margin-top: 8px;
}
.section-dark .stat-label { color: rgba(255,255,255,0.6); }

/* ---- Trust / Logos ---- */
.trust-logos {
    display: flex; align-items: center; justify-content: center;
    gap: 48px; margin-top: 40px; flex-wrap: wrap;
    opacity: 0.5;
}
.trust-logos img { height: 32px; filter: grayscale(100%); }

/* ---- CTA section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff; text-align: center; padding: 80px 0;
}
.cta-section .section-title { color: #fff; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.85); }
.cta-buttons { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

/* ---- Footer ---- */
.footer {
    background: var(--bg-dark); color: rgba(255,255,255,0.7);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-logo { height: 32px; filter: brightness(0) invert(1); }
.footer-col h4 {
    font-size: 13px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-col a {
    display: block; font-size: 14px; padding: 4px 0;
    color: rgba(255,255,255,0.6); transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.5); }
.footer-social a:hover { color: var(--primary-light); }

/* ---- Page Header (inner pages) ---- */
.page-header {
    padding: 48px 0 40px;
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
    text-align: center;
}
.page-header .section-title { margin-bottom: 12px; }
.page-header .section-subtitle { margin-bottom: 0; }

/* ---- Steps (How it works) ---- */
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    margin-top: 48px;
}
.step-item { text-align: center; position: relative; }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
    margin: 0 auto 16px;
}
.step-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
/* Connector line between steps (desktop) */
.steps-grid .step-item:not(:last-child)::after {
    content: '';
    position: absolute; top: 24px; left: calc(50% + 36px); right: -32px;
    height: 2px; background: var(--border);
    z-index: 0;
}

/* ---- Detail grid (product pages) ---- */
.detail-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
    margin-top: 48px;
}
.detail-item {
    padding: 28px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg);
}
.detail-item h3 {
    font-size: 18px; font-weight: 700; margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px;
}
.detail-item h3 svg { color: var(--primary); flex-shrink: 0; }
.detail-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ---- Team ---- */
.team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    margin-top: 48px;
}
.team-card {
    text-align: center; padding: 32px 20px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg);
}
.team-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--primary-bg); display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 16px; color: var(--primary);
    font-size: 28px; font-weight: 700;
    overflow: hidden;
}
.team-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}

/* ---- Trust logos ---- */
.trust-section { padding: 48px 0; }
.trust-row {
    display: flex; align-items: center; justify-content: center;
    gap: 48px; flex-wrap: wrap;
}
.trust-row img { height: 120px; opacity: 0.7; transition: opacity 0.2s; }
.trust-row img:hover { opacity: 1; }
.team-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.team-card .team-role {
    font-size: 13px; color: var(--primary); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px;
}
.team-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.team-quote {
    font-size: 15px; font-style: italic; color: var(--text-primary);
    line-height: 1.6; margin-bottom: 16px; position: relative;
}
.team-quote::before { content: "\201C"; }
.team-quote::after { content: "\201D"; }

/* ---- Contact form ---- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    margin-top: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    font-family: inherit; font-size: 15px; color: var(--text-primary);
    background: var(--bg); transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info-card {
    padding: 32px; background: var(--bg-subtle); border-radius: 12px;
}
.contact-info-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 20px;
}
.contact-info-item svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-info-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--text-secondary); }
.contact-info-item a { color: var(--primary); }
.contact-info-item a:hover { text-decoration: underline; }

/* ---- Privacy / Legal ---- */
.legal-content {
    max-width: 760px; margin: 0 auto; padding: 48px 24px;
}
.legal-content h2 {
    font-size: 22px; font-weight: 700; margin-top: 32px; margin-bottom: 12px;
}
.legal-content h3 {
    font-size: 18px; font-weight: 600; margin-top: 24px; margin-bottom: 8px;
}
.legal-content p, .legal-content li {
    font-size: 15px; color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 12px;
}
.legal-content ul { padding-left: 24px; }
.legal-content a { color: var(--primary); }
.legal-content a:hover { text-decoration: underline; }

/* ---- Use cases ---- */
.usecases-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 48px;
}
.usecase-card {
    text-align: center; padding: 32px 20px;
    border: 1px solid var(--border); border-radius: 12px;
}
.usecase-card svg { color: var(--primary); margin-bottom: 16px; }
.usecase-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.usecase-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ---- Testimonial strip (homepage) ---- */
.testimonial-strip {
    padding: 64px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.testimonial-strip .container {
    display: flex; align-items: center; gap: 40px;
}
.testimonial-avatar {
    width: 96px; height: 96px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 3px solid var(--primary-bg);
}
.testimonial-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.testimonial-body { flex: 1; }
.testimonial-quote {
    font-size: 20px; font-weight: 600; line-height: 1.5;
    margin-bottom: 16px; padding-left: 24px; position: relative;
    color: var(--text-primary);
}
.testimonial-quote::before {
    content: '\201C'; position: absolute;
    left: -4px; top: -6px; font-size: 52px;
    color: var(--primary); opacity: 0.25;
    font-family: Georgia, serif; line-height: 1;
}
.testimonial-author {
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    padding-left: 24px;
}
.testimonial-role {
    font-size: 13px; color: var(--text-tertiary);
    margin-top: 2px; padding-left: 24px;
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1; transform: translateY(0);
}

/* ---- Utility ---- */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 1024px) {
    .hero .container { gap: 40px; }
    .hero-title { font-size: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { gap: 24px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
    .team-grid { gap: 20px; }
    .usecases-grid { gap: 16px; }
    .contact-grid { gap: 32px; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .section { padding: 56px 0; }
    .section-title { font-size: 26px; }
    .section-subtitle { font-size: 16px; }

    /* Navbar */
    .navbar-links { display: none; }
    .navbar-cta .btn { display: none; }
    .navbar-cta { margin-left: auto; gap: 0; }
    .navbar .container {
        height: 68px; gap: 8px;
    }
    .navbar-logo { height: 56px; }
    .navbar-cta .navbar-lang {
        font-size: 13px; font-weight: 600; min-width: 36px; min-height: 36px;
        padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px;
        color: var(--text-secondary); display: inline-flex; align-items: center;
        justify-content: center;
    }
    .menu-toggle { display: flex; }

    /* Hero */
    .hero { padding: 36px 0 28px; }
    .hero .container { flex-direction: column; gap: 28px; text-align: center; }
    .hero-title { font-size: 30px; }
    .hero-subtitle {
        font-size: 16px; margin-left: auto; margin-right: auto;
        margin-bottom: 24px;
    }
    .hero-buttons { justify-content: center; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-image { max-width: 260px; margin: 0 auto; }

    /* Page header */
    .page-header { padding: 32px 0 28px; }
    .page-header .section-title { font-size: 26px; }

    /* Grids → single column */
    .products-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
    .steps-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
    .steps-grid .step-item::after { display: none; }
    .detail-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
    .team-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
    .usecases-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }

    /* Trust logos */
    .trust-row { gap: 32px; }
    .trust-row img { height: 56px; }

    /* Cards - compact */
    .product-card { padding: 24px; }
    .product-card h3 { font-size: 20px; }
    .detail-item { padding: 20px; }
    .usecase-card { padding: 24px 16px; }
    .team-card { padding: 24px 16px; }

    /* Testimonial */
    .testimonial-strip { padding: 40px 0; }
    .testimonial-strip .container {
        flex-direction: column; text-align: center; gap: 24px;
    }
    .testimonial-quote { font-size: 18px; padding-left: 0; }
    .testimonial-quote::before { display: none; }
    .testimonial-author, .testimonial-role { padding-left: 0; }

    /* Stats - smaller numbers */
    .stat-number { font-size: 32px; }
    .stat-number--text { font-size: 24px; }

    /* Buttons */
    .btn { padding: 14px 24px; font-size: 15px; }

    /* CTA */
    .cta-section { padding: 56px 0; }
    .cta-buttons { flex-direction: column; align-items: stretch; max-width: 320px; margin: 24px auto 0; }
    .cta-buttons .btn { justify-content: center; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-info-card { padding: 24px; }

    /* Footer */
    .footer { padding: 40px 0 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-grid .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom {
        flex-direction: column; gap: 12px; text-align: center;
        margin-top: 32px; padding-top: 20px;
    }
    .footer-col h4 { margin-bottom: 10px; }

    /* Legal */
    .legal-content { padding: 32px 20px; }
    .legal-content h2 { font-size: 20px; }
}

/* Small phones */
@media (max-width: 380px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 26px; }
    .section-title { font-size: 24px; }
    .stat-number { font-size: 28px; }
    .hero-image { max-width: 220px; }
    .btn { padding: 12px 20px; font-size: 14px; }
}
