/* PHL Sistemas — Apple-inspired design system */

:root {
    --navy: #0B1F3B;
    --blue: #2563EB;
    --cyan: #06B6D4;
    --white: #F8FAFC;
    --muted: #94A3BB;
    --glass: rgba(11, 31, 59, 0.72);
    --border: rgba(255, 255, 255, 0.08);
    --card: rgba(255, 255, 255, 0.04);
    --card-h: rgba(255, 255, 255, 0.07);
    --maxw: 1100px;
    --r: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--navy);
    color: var(--white);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

@media(max-width:600px) {
    .wrap {
        padding: 0 20px;
    }
}


/* ── NAV ─────────────────────────────────────── */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.01em;
}

.brand-name span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.nav-links a {
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--blue);
    color: #fff;
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

@media(max-width:820px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    .nav-mobile-toggle {
        display: block;
    }
}


/* ── MOBILE MENU ─────────────────────────────── */

.mobile-menu {
    display: none;
    background: rgba(11, 31, 59, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.mobile-menu.open {
    max-height: 100vh;
}

@media(max-width:820px) {
    .mobile-menu {
        display: block;
    }
}

.mobile-menu-inner {
    padding: 28px 20px 36px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.mobile-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    padding: 8px 0;
    color: var(--white);
}

.mobile-services {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.mobile-service {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.mobile-service .svc-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(37, 99, 235, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-service .svc-ico svg {
    width: 18px;
    height: 18px;
    stroke: var(--cyan);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-service h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.mobile-service p {
    font-size: 13px;
    color: var(--muted);
}

.mobile-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--blue);
    color: #fff;
    padding: 15px;
    border-radius: var(--r);
    font-size: 16px;
    font-weight: 600;
}


/* ── HERO ─────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}


/* animated mesh background */

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    aspect-ratio: 1;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, .35) 0%, transparent 65%);
    animation: pulse 8s ease-in-out infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, .2) 0%, transparent 65%);
    animation: pulse 10s ease-in-out 2s infinite alternate-reverse;
}

@keyframes pulse {
    from {
        transform: scale(1) rotate(0deg);
        opacity: .8;
    }
    to {
        transform: scale(1.12) rotate(8deg);
        opacity: 1;
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 75%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 6.5vw, 72px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.03em;
    margin-bottom: 28px;
}

.hero h1 .accent {
    color: var(--cyan);
}

.hero p.lead {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 44px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .eyebrow {
    animation: heroIn .7s ease both;
}

.hero h1 {
    animation: heroIn .7s .1s ease both;
}

.hero p.lead {
    animation: heroIn .7s .2s ease both;
}

.hero-actions {
    animation: heroIn .7s .3s ease both;
}

@media(max-width:700px) {
    .hero {
        padding: 100px 0 60px;
        min-height: 90svh;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions a {
        text-align: center;
    }
}


/* ── BUTTONS ─────────────────────────────────── */

.btn-primary {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 15px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, .4);
}

.btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--white);
    padding: 15px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
    transform: translateY(-2px);
}


/* ── SECTIONS ────────────────────────────────── */

.section {
    padding: 100px 0;
}

@media(max-width:700px) {
    .section {
        padding: 64px 0;
    }
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
}

.section-head {
    max-width: 580px;
    margin-bottom: 60px;
}

.section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.08;
    margin-bottom: 16px;
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

@media(max-width:700px) {
    .section-head {
        margin-bottom: 40px;
    }
}


/* ── SERVICE CARDS ───────────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}

@media(max-width:680px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    display: block;
    background: var(--card);
    padding: 40px 36px;
    transition: background .25s;
    position: relative;
}

.service-card:hover {
    background: var(--card-h);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, .15);
    border: 1px solid rgba(37, 99, 235, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--cyan);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}

.service-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    margin-top: 20px;
    transition: gap .2s, color .2s;
}

.service-card:hover .card-link {
    gap: 10px;
    color: var(--cyan);
}

.card-link::after {
    content: '→';
}

@media(max-width:700px) {
    .service-card {
        padding: 32px 24px;
    }
}


/* ── PROJECTS GRID ───────────────────────────── */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media(max-width:900px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:580px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 32px 28px;
    transition: background .25s, transform .2s, border-color .2s;
}

.project-card:hover {
    background: var(--card-h);
    border-color: rgba(37, 99, 235, .3);
    transform: translateY(-4px);
}

.project-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(6, 182, 212, .1);
    border: 1px solid rgba(6, 182, 212, .2);
    border-radius: 100px;
    padding: 3px 10px;
    margin-bottom: 16px;
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}

.project-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}


/* ── ABOUT STRIP ─────────────────────────────── */

.about-strip {
    background: rgba(255, 255, 255, .03);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

@media(max-width:820px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.about-inner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 20px;
}

.about-inner p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-list {
    list-style: none;
    margin-top: 28px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    flex-shrink: 0;
}


/* visual widget */

.about-visual {
    border-radius: 20px;
    background: rgba(37, 99, 235, .06);
    border: 1px solid rgba(37, 99, 235, .12);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-row {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-dot.blue {
    background: var(--blue);
}

.stat-dot.cyan {
    background: var(--cyan);
}

.stat-dot.white {
    background: rgba(255, 255, 255, .5);
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
}

.stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
}


/* ── CONTACT ─────────────────────────────────── */

.contact-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
}

@media(max-width:820px) {
    .contact-inner {
        grid-template-columns: 1fr;
    }
}

.contact-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.contact-info>p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.contact-item .c-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(37, 99, 235, .12);
    border: 1px solid rgba(37, 99, 235, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item .c-ico svg {
    width: 16px;
    height: 16px;
    stroke: var(--cyan);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-item .k {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}

.contact-item .v {
    font-size: 15px;
    font-weight: 500;
}

.contact-item .v a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-item .v a:hover {
    color: var(--cyan);
}


/* form */

.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
}

@media(max-width:600px) {
    .contact-form {
        padding: 24px;
    }
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: .02em;
}

.field input,
.field textarea {
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(148, 163, 187, .5);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, .6);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 4px;
}


/* ── FOOTER ──────────────────────────────────── */

footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
}

.footer-brand-name span {
    color: var(--cyan);
}

.footer-note {
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--white);
}


/* ── SUBPAGE HERO ────────────────────────────── */

.page-hero {
    padding: 120px 0 48px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
    transition: color .2s, gap .2s;
}

.back-link:hover {
    color: var(--white);
    gap: 12px;
}

.back-link::before {
    content: '←';
}

.page-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.page-hero p.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 580px;
    line-height: 1.7;
}


/* ── STEPS ───────────────────────────────────── */

.steps {
    margin-top: 8px;
}

.step {
    display: flex;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.step:first-child {
    padding-top: 0;
}

.step:last-child {
    border-bottom: none;
}

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(6, 182, 212, .1);
    border: 1px solid rgba(6, 182, 212, .2);
    border-radius: 100px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--muted);
    font-size: 15px;
    max-width: 520px;
}


/* ── INCLUDED GRID ───────────────────────────── */

.included-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-top: 8px;
}

@media(max-width:640px) {
    .included-grid {
        grid-template-columns: 1fr;
    }
}

.included-item {
    background: var(--card);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 15px;
}

.included-item::before {
    content: '✓';
    color: var(--cyan);
    font-weight: 700;
    font-size: 14px;
}


/* ── CLOSING CTA ─────────────────────────────── */

.closing-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

.closing-cta p {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 16px;
    max-width: 480px;
}


/* ── REDUCED MOTION ──────────────────────────── */

@media(prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}