/*
 * Design pass after an audit with unslop by Damir Sokolovsky (@heydamir), CC BY 4.0
 * https://github.com/heydamir/unslop
 *
 * Direcție: direct, socotit, prietenos. Lumea: telefonul patronului,
 * unde vine lead-ul pe Telegram. Semnătură: săgeata investiție → rezultat.
 */

:root {
    /* Rampă neutră caldă, închisă */
    --bg-deep: #12110f;
    --bg: #161513;
    --card: #1c1a18;
    --raised: #262421;
    --line: rgba(239, 233, 222, 0.08);
    --line-strong: rgba(239, 233, 222, 0.16);
    --line-focus: rgba(239, 233, 222, 0.32);

    /* Text: trei roluri */
    --text: #efe9de;
    --text-2: #aaa398;
    --text-3: #8a847a;

    /* Accent de brand, folosit rar */
    --accent: #ccff00;
    --accent-hover: #b8e600;
    --on-accent: #12110f;

    /* Semantice */
    --positive: #4cc38a;
    --negative: #e5484d;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
}

input,
button {
    font: inherit;
    color: inherit;
}

/* --- LAYOUT --- */
.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Un grup = eticheta + conținutul ei. Spațiu mic înăuntru, mare între grupuri */
.group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-3);
    padding: 0 4px;
}

/* --- CARD --- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

/* --- PROFIL --- */
.profile-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    display: block;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--raised);
}

.profile-info h1 {
    font-size: 24px;
    line-height: 28px;
    font-weight: 500;
}

.profile-info p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-2);
}

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

/* --- CIFRE --- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 20px;
}

.stat-val {
    font-size: 28px;
    line-height: 32px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.stat-lbl {
    margin-top: 4px;
    font-size: 13px;
    line-height: 20px;
    color: var(--text-2);
}

/* --- SERVICII --- */
.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.service-item:first-child { padding-top: 0; }
.service-item:last-child { padding-bottom: 0; border-bottom: none; }

.srv-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--raised);
    color: var(--text-2);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.srv-info h3 {
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
}

.srv-info p {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-2);
}

/* Semnătura: investiție → rezultat */
.arrow {
    color: var(--accent);
}

/* --- CONTACT DIRECT --- */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition:
        background-color 150ms var(--ease),
        border-color 150ms var(--ease),
        transform 150ms var(--ease);
}

.social-btn:hover {
    background: var(--raised);
    border-color: var(--line-strong);
}

.social-btn:active { transform: scale(0.98); }

.social-btn:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
}

.btn-content i {
    width: 20px;
    font-size: 18px;
    text-align: center;
}

.arrow-icon {
    font-size: 14px;
    color: var(--text-3);
    transition: color 150ms var(--ease);
}

.social-btn:hover .arrow-icon { color: var(--text); }

/* --- FORMULAR --- */
#techForm {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-box {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 16px;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 150ms var(--ease);
}

.input-box:focus-within {
    border-color: var(--line-focus);
}

.input-box i {
    width: 16px;
    flex-shrink: 0;
    font-size: 14px;
    text-align: center;
    color: var(--text-3);
}

.tech-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 16px; /* 16px ca iPhone să nu facă zoom pe câmp */
    line-height: 20px;
}

.tech-input::placeholder {
    color: var(--text-3);
}

.submit-btn {
    margin-top: 4px;
    width: 100%;
    height: 48px;
    background: var(--accent);
    color: var(--on-accent);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition:
        background-color 150ms var(--ease),
        transform 150ms var(--ease),
        opacity 150ms var(--ease);
}

.submit-btn:hover { background: var(--accent-hover); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.7; cursor: default; }

.submit-btn:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* Mesaj după trimitere */
#form-feedback {
    display: none;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.msg-success {
    color: var(--positive);
    background: rgba(76, 195, 138, 0.08);
    border: 1px solid rgba(76, 195, 138, 0.2);
}

.msg-error {
    color: var(--negative);
    background: rgba(229, 72, 77, 0.08);
    border: 1px solid rgba(229, 72, 77, 0.2);
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    color: var(--text-3);
}

/* --- INTRARE: o singură apariție, ușor eșalonată --- */
.container > * {
    animation: rise 400ms var(--ease) both;
}

.container > *:nth-child(2) { animation-delay: 50ms; }
.container > *:nth-child(3) { animation-delay: 100ms; }
.container > *:nth-child(4) { animation-delay: 150ms; }
.container > *:nth-child(5) { animation-delay: 200ms; }
.container > *:nth-child(n+6) { animation-delay: 250ms; }

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

@media (prefers-reduced-motion: reduce) {
    .container > * { animation: none; }
}

/* --- MOBIL --- */
@media (max-width: 420px) {
    body { padding: 24px 16px; }
    .card { padding: 16px; }
    .profile-row { gap: 16px; }
    .avatar { width: 72px; height: 72px; }
    .stat-card { padding: 16px; }
}
