:root{
    --merlin-red:#e30613;
    --merlin-red-hover:#ff1422;
    --merlin-white:#ffffff;
    --merlin-muted:rgba(255,255,255,.72);
    --merlin-soft:rgba(255,255,255,.86);
    --merlin-line:rgba(255,255,255,.24);
    --merlin-line-focus:rgba(227,6,19,.72);
    --merlin-black:#030303;
}

.merlin-hero,
.merlin-hero *{
    box-sizing:border-box;
}

.merlin-hero{
    position:relative;
    width:100%;
    min-height:640px;
    overflow:hidden;
    background:#000;
    color:#fff;
    font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
}

.merlin-hero .hero-bg{
    position:absolute;
    inset:0;
    background:url('banner-merlin.jpg') center right/cover no-repeat;
    transform:translateZ(0);
}

.merlin-hero .hero-bg::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,
            #050505 0%,
            #050505 22%,
            rgba(5,5,5,.92) 34%,
            rgba(5,5,5,.66) 49%,
            rgba(5,5,5,.22) 69%,
            rgba(5,5,5,.08) 100%),
        radial-gradient(circle at 24% 50%, rgba(0,0,0,.48) 0%, rgba(0,0,0,.22) 40%, rgba(0,0,0,0) 68%);
}

.merlin-hero .hero-bg::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(0,0,0,.10) 0%,rgba(0,0,0,.03) 42%,rgba(0,0,0,.18) 100%);
}

.merlin-hero .hero-content{
    position:relative;
    z-index:2;
    min-height:640px;
    max-width:1920px;
    margin:0 auto;
    display:flex;
    align-items:center;
    padding:54px 0 48px 90px;
}

.merlin-hero .hero-copy{
    width:min(540px,38vw);
    animation:merlinFadeUp .65s ease both;
}

.merlin-hero h1{
    margin:0 0 20px;
    max-width:600px;
    font-size:42px;
    line-height:1.14;
    letter-spacing:-1px;
    font-weight:700;
    color:#fff !important;
    text-shadow:0 6px 24px rgba(0,0,0,.48);
}

.merlin-hero h1 span{
    color:var(--merlin-red) !important;
    font-weight:700;
}

.merlin-hero .subtitle{
    max-width:500px;
    margin:0 0 26px;
    font-size:16.5px;
    line-height:1.5;
    font-weight:400;
    color:var(--merlin-muted);
    text-shadow:0 4px 18px rgba(0,0,0,.48);
}

.merlin-hero .lead-form{
    width:100%;
    max-width:540px;
}

.merlin-hero .field-group{
    margin-bottom:9px;
}

.merlin-hero .field-group label{
    display:block;
    margin:0 0 6px;
    font-size:13px;
    line-height:1.15;
    color:#fff;
    font-weight:700;
}

.merlin-hero .field-group label span{
    font-weight:500;
    color:var(--merlin-muted);
}

.merlin-hero input{
    width:100%;
    height:42px;
    border:1px solid rgba(255,255,255,.34) !important;
    border-radius:6px;
    background:#ffffff !important;
    color:#111111 !important;
    -webkit-text-fill-color:#111111 !important;
    caret-color:#111111;
    font-size:14px;
    font-weight:400;
    outline:0;
    padding:0 16px;
    box-shadow:none;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
    font-family:inherit;
}

.merlin-hero input::placeholder{
    color:#707070 !important;
    -webkit-text-fill-color:#707070 !important;
}

.merlin-hero input:focus{
    border-color:var(--merlin-line-focus) !important;
    background:#ffffff !important;
    color:#111111 !important;
    -webkit-text-fill-color:#111111 !important;
    box-shadow:0 0 0 3px rgba(227,6,19,.16);
}

.merlin-hero input:-webkit-autofill,
.merlin-hero input:-webkit-autofill:hover,
.merlin-hero input:-webkit-autofill:focus,
.merlin-hero input:-webkit-autofill:active{
    -webkit-text-fill-color:#111111 !important;
    box-shadow:0 0 0 1000px #ffffff inset !important;
    transition:background-color 5000s ease-in-out 0s;
}

.merlin-hero .hidden-field{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

.merlin-hero .submit-btn{
    width:100%;
    height:52px;
    margin-top:10px;
    border:0;
    border-radius:8px;
    background:linear-gradient(90deg,var(--merlin-red) 0%,#f20716 100%);
    color:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:44px;
    padding:0 24px;
    font-size:17px;
    font-weight:700;
    letter-spacing:-.1px;
    text-transform:uppercase;
    box-shadow:0 12px 26px rgba(227,6,19,.28);
    transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
    font-family:inherit;
}

.merlin-hero .submit-btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.05);
    box-shadow:0 16px 32px rgba(227,6,19,.33);
}

.merlin-hero .submit-btn:disabled{
    opacity:.72;
    cursor:not-allowed;
    transform:none;
}

.merlin-hero .submit-btn .arrow{
    font-size:26px;
    line-height:1;
    font-weight:300;
    transition:transform .18s ease;
}

.merlin-hero .submit-btn:hover .arrow{
    transform:translateX(4px);
}

.merlin-hero .segments{
    width:100%;
    max-width:540px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    align-items:center;
    margin:18px 0 0;
    color:var(--merlin-soft);
}

.merlin-hero .segments div{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:28px;
    padding:0 10px;
    border-right:1px solid rgba(255,255,255,.16);
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
}

.merlin-hero .segments div:first-child{
    justify-content:flex-start;
    padding-left:0;
}

.merlin-hero .segments div:last-child{
    border-right:0;
    justify-content:flex-end;
    padding-right:0;
}

.merlin-hero .segments span{
    font-size:17px;
    filter:grayscale(1);
    opacity:.78;
}

.merlin-hero .form-alert{
    display:none;
    max-width:540px;
    border-radius:8px;
    margin:0 0 12px;
    padding:11px 14px;
    font-weight:600;
    font-size:13px;
    line-height:1.4;
}

.merlin-hero .form-alert.error{
    display:block;
    background:rgba(255,18,18,.14);
    border:1px solid rgba(255,18,18,.55);
    color:#fff;
}

.merlin-hero .form-alert.success{
    display:block;
    background:rgba(30,180,90,.16);
    border:1px solid rgba(30,180,90,.65);
    color:#fff;
}

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

@media(max-width:1360px){
    .merlin-hero{min-height:600px}
    .merlin-hero .hero-content{min-height:600px;padding:42px 0 42px 60px}
    .merlin-hero .hero-copy{width:min(500px,44vw)}
    .merlin-hero h1{font-size:38px;letter-spacing:-.8px;margin-bottom:18px}
    .merlin-hero .subtitle{font-size:15.5px;margin-bottom:22px}
    .merlin-hero input{height:40px;font-size:13.5px}
    .merlin-hero .submit-btn{height:50px;font-size:16px}
    .merlin-hero .segments{margin-top:16px}
    .merlin-hero .segments div{font-size:12.5px;padding:0 7px}
    .merlin-hero .segments span{font-size:16px}
}

@media(max-width:1024px){
    .merlin-hero{height:auto;min-height:680px}
    .merlin-hero .hero-bg{background-position:center right}
    .merlin-hero .hero-bg::before{
        background:linear-gradient(180deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.88) 50%,rgba(0,0,0,.68) 100%);
    }
    .merlin-hero .hero-content{
        min-height:680px;
        align-items:center;
        padding:54px 34px;
    }
    .merlin-hero .hero-copy{
        width:100%;
        max-width:620px;
    }
    .merlin-hero h1{font-size:38px;letter-spacing:-.8px}
}

@media(max-width:720px){
    .merlin-hero{min-height:auto}
    .merlin-hero .hero-content{min-height:auto;padding:42px 18px 36px}
    .merlin-hero h1{font-size:32px;letter-spacing:-.6px;margin-bottom:16px;max-width:390px}
    .merlin-hero .subtitle{font-size:15.5px;margin-bottom:22px;max-width:430px}
    .merlin-hero input{height:45px;font-size:14px}
    .merlin-hero .submit-btn{height:52px;font-size:15px;gap:18px;padding:0 18px}
    .merlin-hero .submit-btn .arrow{font-size:24px}
    .merlin-hero .segments{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
        margin-top:18px;
    }
    .merlin-hero .segments div,
    .merlin-hero .segments div:first-child,
    .merlin-hero .segments div:last-child{
        justify-content:center;
        border:1px solid rgba(255,255,255,.16);
        background:rgba(0,0,0,.24);
        border-radius:999px;
        padding:8px 10px;
        min-height:auto;
        font-size:13px;
    }
    .merlin-hero .segments span{font-size:16px}
}

@media(max-width:430px){
    .merlin-hero h1{font-size:29px}
    .merlin-hero .field-group label{font-size:13px}
    .merlin-hero .submit-btn{justify-content:space-between;gap:12px}
}
