/* ===== Variabili HQCloud ===== */
:root {
    --bg:         #253A2E;
    --bg-card:    #1e3028;
    --bg-deep:    #192820;
    --accent:     #c6dbac;
    --accent-dark:#a8c48e;
    --border:     #3a5244;
    --text:       #E5E5E5;
    --text-muted: #8aab96;
    --text-dim:   #5c7a68;
    --danger:     #e05c5c;
    --success:    #6fcf97;
}

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.link-accent { color: var(--accent); }
.link-accent:hover { color: var(--accent-dark); text-decoration: underline; }

/* ===== Auth pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-deep);
}

.auth-container { width: 100%; max-width: 420px; }

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* ===== Form elements ===== */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: .7rem 1rem;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

/* ===== Buttons ===== */
.btn-primary-full {
    width: 100%;
    background: var(--accent);
    color: #1a2e20;
    border: none;
    border-radius: 8px;
    padding: .8rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.btn-primary-full:hover { background: var(--accent-dark); }

/* ===== Alerts ===== */
.alert-err {
    background: rgba(224,92,92,.1);
    border: 1px solid rgba(224,92,92,.4);
    color: #f0a0a0;
    border-radius: 8px;
    padding: .7rem 1rem;
    margin-bottom: 1rem;
    font-size: .875rem;
}
.alert-ok {
    background: rgba(111,207,151,.1);
    border: 1px solid rgba(111,207,151,.4);
    color: var(--success);
    border-radius: 8px;
    padding: .7rem 1rem;
    margin-bottom: 1rem;
    font-size: .875rem;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.navbar .brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar .nav-links a {
    color: var(--text-muted);
    font-size: .9rem;
    transition: color .2s;
}

.navbar .nav-links a:hover { color: var(--text); }

.navbar .btn-nav {
    background: var(--accent);
    color: #1a2e20;
    border-radius: 8px;
    padding: .4rem 1rem;
    font-size: .875rem;
    font-weight: 700;
}
.navbar .btn-nav:hover { background: var(--accent-dark); color: #1a2e20; }

/* ===== Hero ===== */
.hero {
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.hero h1 span { color: var(--accent); }

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 1.2rem auto;
    max-width: 600px;
}

/* ===== Service cards ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.service-card p { color: var(--text-dim); font-size: .9rem; }

.service-card .cta {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--accent);
    font-size: .875rem;
    font-weight: 600;
}

.service-card .cta i { transition: transform .2s; }
.service-card:hover .cta i { transform: translateX(4px); }
