/* Home — Apple-grade composition */

/* Hero */
.hero {
    background: var(--bg-elevated);
    padding: 100px 0 88px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero .container {
    max-width: 780px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 7.5vw, 64px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.028em;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-lead {
    font-size: clamp(17px, 2.2vw, 21px);
    line-height: 1.381;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
}

.search-container {
    display: flex;
    max-width: 560px;
    margin: 0 auto 20px;
    background: var(--bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.hero-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 17px;
    font-family: inherit;
    letter-spacing: -0.01em;
    color: var(--text);
    outline: none;
}

.hero-input::placeholder {
    color: var(--text-tertiary);
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s var(--ease);
    font-family: inherit;
}

.search-button:hover {
    opacity: 0.7;
    color: var(--accent);
}

.search-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hero-hint {
    font-size: 14px;
    color: var(--text-tertiary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.45;
}

/* Nexa chat panel */
.nexa-chat {
    max-width: 560px;
    margin: 0 auto;
}

.nexa-chat-log {
    display: none;
    text-align: left;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 4px 2px 8px;
}

.nexa-chat-log.is-open {
    display: block;
}

.nexa-bubble {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    animation: nexaIn 0.28s var(--ease);
}

@keyframes nexaIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nexa-bubble-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.55;
}

.nexa-bubble p {
    margin: 0;
    color: inherit;
}

.nexa-bubble--user {
    background: var(--text);
    color: #fff;
    margin-left: 18%;
}

.nexa-bubble--bot {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    margin-right: 12%;
}

.nexa-bubble--bot .nexa-cta {
    margin-top: 10px !important;
}

.nexa-bubble--bot .nexa-cta a {
    font-weight: 500;
    font-size: 13px;
}

.nexa-typing p {
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
}

/* Stats strip */
.stats {
    background: var(--bg-elevated);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: -0.01em;
}

/* About cards */
.about {
    padding: 100px 0;
    background: var(--bg);
}

.about .section-head {
    margin-bottom: 56px;
}

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

.card {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid var(--border);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.016em;
    color: var(--text);
    margin-bottom: 6px;
}

.card h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

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

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.service-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.service-icon {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 10px;
}

.service-card > p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.service-points {
    list-style: none;
    margin-bottom: 22px;
}

.service-points li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.service-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* Industries */
.industries {
    padding: 100px 0;
    background: var(--bg);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.industry-card {
    padding: 28px 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.industry-card i {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 16px;
}

.industry-card h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 8px;
}

.industry-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Process */
.process {
    padding: 100px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.process-step {
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--bg);
}

.process-num {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.process-step h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.016em;
    color: var(--text);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Vision principles */
.vision_new {
    padding: 100px 0;
    background: var(--bg);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.vision-card {
    text-align: left;
    padding: 28px 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.vision-card i {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 16px;
}

.vision-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.vision-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.btn-learn {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.btn-learn:hover {
    text-decoration: underline;
}

/* CTA */
.cta_new {
    background: var(--text);
    padding: 100px 0;
    text-align: center;
}

.cta_new .container {
    max-width: 640px;
}

.cta_new h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 12px;
}

.cta_new p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    line-height: 1.4;
}

.btn-primary_new {
    display: inline-flex;
    padding: 12px 24px;
    background: #fff;
    color: var(--text);
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s var(--ease);
}

.btn-primary_new:hover {
    background: #f5f5f7;
    color: var(--text);
}

@media (max-width: 960px) {
    .stats-grid,
    .industry-grid,
    .process-grid,
    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 72px 0 64px;
    }

    .about,
    .services,
    .industries,
    .process,
    .vision_new,
    .cta_new {
        padding: 72px 0;
    }

    .card-grid,
    .service-grid,
    .stats-grid,
    .industry-grid,
    .process-grid,
    .vision-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 32px;
    }
}
