/* Hero */
.hero {
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100dvh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-grid {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid:not(.hero-grid--text) {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

.hero-grid--text {
    max-width: 40rem;
}

.hero-accent-line {
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: var(--space-lg);
}

.hero-greeting {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: var(--space-md);
}

.hero h1 .highlight {
    color: var(--accent);
    display: block;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--text);
    background: var(--bg-muted);
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-deco {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    opacity: 0.4;
    pointer-events: none;
}

.hero-deco-1 {
    top: 10%;
    right: max(5%, var(--gutter));
    transform: rotate(12deg);
}

.hero-deco-2 {
    bottom: 15%;
    left: max(0px, calc(var(--gutter) - 8px));
    transform: rotate(-8deg);
    width: 80px;
    height: 80px;
}

.hero-avatar-wrap {
    position: relative;
    width: min(280px, 75vw);
    aspect-ratio: 1;
}

.hero-avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), transparent 60%);
    opacity: 0.6;
    filter: blur(12px);
}

.hero-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-avatar-fallback {
    width: 40%;
    height: 40%;
    color: var(--accent);
}

/* Tech strip */
.tech-strip--section {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.tech-strip__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: var(--space-md);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.tech-strip__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 52rem;
    margin-inline: auto;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tech-pill:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    color: var(--text);
}

.tech-pill__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.tech-pill__icon .fi {
    font-size: 1.125rem;
}

.tech-pill__label {
    line-height: 1.2;
}

.hero-tech {
    width: 100%;
}

.tech-strip--hero-grid {
    max-width: 30rem;
    margin-inline: auto;
}

.tech-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}

.tech-grid__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.65rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.tech-grid__item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--accent);
    flex-shrink: 0;
}

@media (min-width: 900px) {
    .hero-tech {
        justify-self: end;
    }

    .tech-strip--hero-grid {
        width: min(100%, 28rem);
        margin-inline: 0;
    }
}

/* Services timeline */
.services-layout {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 900px) {
    .services-layout {
        grid-template-columns: 280px 1fr;
        gap: var(--space-2xl);
        align-items: start;
    }
}

.service-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-timeline-item {
    display: flex;
    gap: var(--space-md);
    position: relative;
    padding-bottom: var(--space-lg);
}

.service-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-dot {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    z-index: 1;
}

.timeline-dot i {
    width: 18px;
    height: 18px;
}

.service-timeline-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

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

.services-cards {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    transform: translateY(-4px);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-muted);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.service-card-icon i {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* Process */
.process-grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-card {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: attr(data-step);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-muted);
    position: absolute;
    top: 8px;
    right: 16px;
    line-height: 1;
}

.process-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
}

.process-card p {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    line-height: 1.6;
}

/* Featured project */
.project-card {
    display: grid;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .project-card {
        grid-template-columns: auto 1fr auto;
        padding: var(--space-xl);
    }
}

.project-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.project-icon i {
    width: 32px;
    height: 32px;
}

.project-meta h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-meta p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Why grid */
.why-grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.why-card:hover {
    border-color: var(--border-strong);
}

.why-card > i {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

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

.section-band {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Contact */
.contact-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-chip .fi {
    font-size: 1.125rem;
}

.icon-attribution {
    font-size: 12px;
    margin-top: var(--space-sm);
}

.icon-attribution a {
    color: var(--text-muted);
    text-decoration: none;
}

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