/* ===================================
   ZTEC Developer — matches main site
=================================== */

:root {
    --ztec-red: #ec3737;
    --ztec-dark: #23262d;
    --ztec-panel: #1a1c22;
    --ztec-muted: rgba(255, 255, 255, 0.65);
    --ztec-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    color: #ffffff;
    background-color: var(--ztec-dark);
    background-image:
        radial-gradient(ellipse 60% 50% at 10% 20%, rgba(236, 55, 55, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(236, 55, 55, 0.08), transparent 55%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(35, 38, 45, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ztec-border);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 36px;
    width: auto;
}

.brand-text {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-main {
    position: relative;
    padding: 10px 24px;
    color: #ffffff;
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.35s ease;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
}

.btn-main:hover {
    color: #ffffff;
    border-color: var(--ztec-red);
    background-color: var(--ztec-red);
}

.btn-main.rounded-pill {
    border-radius: 999px;
}

/* ---- Layout ---- */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Hero ---- */
.hero {
    padding: 72px 0 48px;
}

.eyebrow {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ztec-red);
    margin: 0 0 18px;
}

.hero-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 18px;
    max-width: 16ch;
}

.hero-lead {
    color: var(--ztec-muted);
    font-size: 17px;
    max-width: 52ch;
    margin: 0 0 32px;
}

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

/* ---- Tools ---- */
.tools-sec {
    padding: 24px 0 80px;
}

.section-head {
    margin-bottom: 28px;
}

.section-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin: 0 0 10px;
}

.section-intro {
    color: var(--ztec-muted);
    font-size: 16px;
    max-width: 48ch;
    margin: 0;
}

.tool-grid {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    min-height: 220px;
    padding: 28px;
    background: linear-gradient(145deg, #2a2d36 0%, #1a1c22 100%);
    border: 1px solid var(--ztec-border);
    position: relative;
    overflow: hidden;
}

.tools-panel:not(.tools-panel--filled)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--ztec-red);
}

.tools-panel--soon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-soon {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ztec-muted);
}

.tools-panel--filled {
    padding: 0;
    background: transparent;
    border: none;
    min-height: 0;
}

.tools-panel--filled::after {
    display: none;
}

.tool-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(145deg, #2a2d36 0%, #1a1c22 100%);
    border: 1px solid var(--ztec-border);
    padding: 40px 36px;
    min-height: 240px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.tool-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--ztec-red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.tool-card:hover {
    border-color: rgba(236, 55, 55, 0.45);
    transform: translateY(-4px);
}

.tool-card:hover::after {
    transform: scaleY(1);
}

.tool-card.is-soon {
    cursor: default;
    opacity: 0.85;
}

.tool-card.is-soon:hover {
    transform: none;
    border-color: var(--ztec-border);
}

.tool-card.is-soon:hover::after {
    transform: scaleY(0);
}

.tool-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.tool-card:not(.is-soon):hover .tool-icon {
    background: var(--ztec-red);
    border-color: var(--ztec-red);
}

.tool-label {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ztec-red);
    margin-bottom: 10px;
}

.tool-title {
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
}

.tool-text {
    font-size: 15px;
    color: var(--ztec-muted);
    line-height: 1.6;
    margin: 0 0 28px;
}

.tool-cta {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool-cta .arrow {
    transition: transform 0.3s ease;
}

.tool-card:not(.is-soon):hover .tool-cta .arrow {
    transform: translateX(6px);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 48px 36px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(26, 28, 34, 0.6);
    text-align: center;
}

.empty-state p {
    color: var(--ztec-muted);
    margin: 0 0 8px;
}

.empty-state strong {
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--ztec-border);
    padding: 28px 0 40px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.copywrite {
    margin: 0;
    color: var(--ztec-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--ztec-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--ztec-red);
}

@media (max-width: 767px) {
    .hero {
        padding: 48px 0 32px;
    }

    .tools-panel {
        grid-template-columns: 1fr;
        min-height: 160px;
        padding: 20px;
    }

    .tool-card {
        min-height: 0;
        padding: 32px 24px;
    }

    .header-inner {
        padding: 14px 20px;
    }

    .brand-text {
        display: none;
    }
}
