/* ===========================
   Custom Properties
   =========================== */
:root {
    --color-bg: #ffffff;
    --color-surface: #f8f9fa;
    --color-text: #1a1a2e;
    --color-text-secondary: #6b7280;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-light: #eff6ff;
    --color-border: #e5e7eb;
    --color-success: #059669;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-max: 1200px;
    --header-height: 72px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

/* ===========================
   Layout
   =========================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 2rem);
}

section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-title--left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

.header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
}

.header__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition);
}

.header__link:hover {
    color: var(--color-text);
}

.header__cta {
    margin-left: 1rem;
    white-space: nowrap;
}

.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   Hero
   =========================== */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 4rem) 0 5rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg-shape {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 130%;
    background: radial-gradient(ellipse at center, var(--color-accent-light) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

.hero__inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__trust {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ===========================
   Pain Points
   =========================== */
.pain-points {
    background-color: var(--color-surface);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.pain-points__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pain-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

.pain-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pain-card__icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.pain-card__text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ===========================
   Services
   =========================== */
.services {
    background-color: var(--color-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card__icon {
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.service-card__title {
    margin-bottom: 0.75rem;
}

.service-card__desc {
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.service-card__list {
    padding-left: 0;
}

.service-card__list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

/* ===========================
   AI Team
   =========================== */
.ai-team {
    background-color: var(--color-surface);
}

.ai-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.employee-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 2rem;
    transition: box-shadow var(--transition), transform var(--transition);
}

.employee-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.employee-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.employee-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.employee-card__number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-accent-light);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.employee-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.employee-card__function {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
}

.employee-card__stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.employee-card__stat-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
}

.employee-card__list {
    padding-left: 0;
}

.employee-card__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.employee-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
}


/* ===========================
   About
   =========================== */
.about {
    background-color: var(--color-bg);
}

.about__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about__photo {
    flex-shrink: 0;
}

.about__avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.about__content p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about__content p:last-child {
    margin-bottom: 0;
}

/* ===========================
   Process
   =========================== */
.process {
    background-color: var(--color-surface);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
}

.process-step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.process-step__title {
    margin-bottom: 0.75rem;
}

.process-step__desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ===========================
   CTA Section
   =========================== */
.cta {
    background-color: var(--color-accent-light);
}

.cta__inner {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.cta__title {
    margin-bottom: 1rem;
}

.cta__subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__logo {
    font-size: 1.1rem;
    font-weight: 700;
}

.footer__tagline {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.footer__links {
    display: flex;
    gap: 1rem;
}

.footer__links a {
    color: var(--color-text-secondary);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__copy {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 1rem;
}

/* ===========================
   Animations
   =========================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .header__nav,
    .header__cta {
        display: none;
    }

    .header__nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        gap: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .header__nav.active .header__link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .header__hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 3rem) 0 3rem;
    }

    .about__inner {
        flex-direction: column;
        text-align: center;
    }

    .about__content .section-title--left {
        text-align: center;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .ai-team__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f0f14;
        --color-surface: #1a1a22;
        --color-text: #f0f0f3;
        --color-text-secondary: #9ca3af;
        --color-accent: #4f8fff;
        --color-accent-hover: #3b7aed;
        --color-accent-light: #1a2540;
        --color-border: #2a2a35;
    }

    .header.scrolled {
        background-color: rgba(15, 15, 20, 0.97);
    }

    .pain-card {
        background: var(--color-surface);
    }

    .service-card,
    .employee-card {
        background: var(--color-surface);
    }

    .case-card {
        background: var(--color-surface);
    }

    .about__avatar-img {
        border: none;
    }

    .footer {
        border-top-color: var(--color-border);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ai-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
