/* CodeSharper Solutions — dark corporate theme, accent from logo red #C24A4A */

:root {
    --bg: #09090b;
    --bg-elevated: #18181b;
    --bg-panel: #121214;
    --border: #27272a;
    --border-hover: #3f3f46;
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --accent: #c24a4a;
    --accent-hover: #d45a5a;
    --accent-soft: rgba(194, 74, 74, 0.14);
    --accent-glow: rgba(194, 74, 74, 0.35);
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 1.25rem;
    --radius-sm: 0.85rem;
    --header-h: 5rem;
    --max: 72rem;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

.heading-font {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.container {
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
}
.container-narrow { width: min(100% - 2.5rem, 64rem); margin-inline: auto; }
.container-tight { width: min(100% - 2.5rem, 52rem); margin-inline: auto; }

/* —— Header —— */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
    height: 100%;
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}
.logo img {
    height: 52px;
    width: auto;
    max-width: min(280px, 48vw);
    object-fit: contain;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav-link:hover,
.nav-link:focus-visible {
    color: #fff;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}
.lang-switcher a {
    color: var(--text-dim);
    transition: color var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--accent);
}
.lang-sep { opacity: 0.5; }

.mobile-menu-btn {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.mobile-menu-btn:hover {
    color: #fff;
    border-color: var(--border-hover);
}

.mobile-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.75rem;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.mobile-menu a {
    font-size: 1.05rem;
    color: var(--text-muted);
}
.mobile-menu a:hover { color: #fff; }
.mobile-lang { padding: 0.5rem 0; }

@media (min-width: 900px) {
    .nav-desktop { display: flex; }
    .mobile-menu-btn { display: none; }
    .mobile-menu { display: none !important; }
    .logo img { height: 58px; }
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 1.15rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn:active { transform: scale(0.985); }
.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0 transparent;
}
.btn-accent:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-outline {
    background: transparent;
    border-color: var(--border-hover);
    color: #fff;
}
.btn-outline:hover {
    border-color: #71717a;
}
.btn-solid {
    background: #fff;
    color: #09090b;
}
.btn-solid:hover { background: #f4f4f5; }
.btn-nav {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 1rem;
}
.btn-block { width: 100%; }

/* —— Hero —— */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-h) + 3rem) 1.25rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(194, 74, 74, 0.12) 0%, transparent 55%),
        radial-gradient(at center, #18181b 0%, #09090b 70%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(63, 63, 70, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63, 63, 70, 0.06) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 1rem;
    margin-bottom: 1.75rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
}

.pulse-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
    font-size: clamp(3rem, 12vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-tagline {
    font-size: clamp(1.2rem, 3.5vw, 1.7rem);
    color: #d4d4d8;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 38rem;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.35rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
/* Stack items share the same weight — no accent highlight on the last tag */

/* —— Sections —— */
.section {
    padding: 5rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 2.75rem;
}
.kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}
.section-title {
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #fff;
}
.section-intro {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 32rem;
    margin-inline: auto;
}
.why-intro { max-width: 40rem; }

.cards-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.cards-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 700px) {
    .cards-3 { grid-template-columns: repeat(3, 1fr); }
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.85rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.solution-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.solution-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}
.card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    color: #fff;
}
.card p {
    color: var(--text-muted);
    line-height: 1.7;
    flex-grow: 1;
    font-size: 0.98rem;
}
.card-tags {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent);
}

/* Method */
.method {
    background: var(--bg-panel);
    border-block: 1px solid var(--border);
}
.step-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.step-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    color: #3f3f46;
}
.step-card i {
    color: var(--accent);
    font-size: 1.35rem;
    margin-top: 0.35rem;
}
.step-card {
    background: var(--bg);
}

.why-check {
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}
.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.why-card p {
    font-size: 0.9rem;
}

/* Contact */
.contact-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 0.35rem);
    padding: clamp(1.75rem, 4vw, 3.25rem);
}
.contact-email-line {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}
.contact-mail,
.contact-mail-link {
    color: #e4e4e7;
    font-weight: 500;
    border-bottom: 1px solid var(--accent);
    transition: color var(--transition);
    cursor: pointer;
}
.contact-mail:hover,
.contact-mail-link:hover { color: var(--accent); }
.cs-mail { display: inline; }

.contact-form {
    margin-top: 2rem;
    max-width: 32rem;
    margin-inline: auto;
    text-align: left;
}
.form-row {
    margin-bottom: 1.1rem;
}
.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.req { color: var(--accent); }
.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row textarea { resize: vertical; min-height: 8rem; }
.form-actions { margin-top: 1.25rem; }
.form-actions .btn { width: 100%; }

.form-feedback {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.form-feedback.is-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}
.form-feedback.is-error {
    background: var(--accent-soft);
    border: 1px solid rgba(194, 74, 74, 0.4);
    color: #fca5a5;
}

/* Honeypots: off-screen, not display:none (some bots skip display:none only) */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.75rem 1.25rem;
}
.footer-inner {
    width: min(100%, var(--max));
    margin-inline: auto;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
