/* Hero */
.wm-hero {
    --wm-next-bg: #fafbfc;
    position: relative;
    overflow: hidden;
    padding: clamp(4.75rem, 9vw, 6.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0;
    background: linear-gradient(
        165deg,
        #f8faff 0%,
        #fef8fc 28%,
        #fff9f5 52%,
        #f6f8fc 76%,
        var(--wm-next-bg) 100%
    );
}
.wm-hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.wm-hero-decor .hero-orb { opacity: 0.32; filter: blur(75px); }
.wm-hero-decor .hero-orb--1 { width: 440px; height: 440px; top: -12%; right: -4%; }
.wm-hero-decor .hero-orb--2 { width: 360px; height: 360px; bottom: 5%; left: -6%; }
.wm-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 68% 50% at 82% 32%, rgba(99, 102, 241, 0.09) 0%, transparent 58%),
        radial-gradient(ellipse 50% 42% at 10% 68%, rgba(14, 165, 233, 0.07) 0%, transparent 52%);
}
.wm-hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
    opacity: 0.55;
}
.wm-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent 0%, var(--wm-next-bg) 92%);
    z-index: 1;
    pointer-events: none;
}
.wm-hero-curve {
    position: absolute;
    left: -4%;
    right: -4%;
    bottom: -1px;
    height: 72px;
    background: var(--wm-next-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 4;
    pointer-events: none;
}
.wm-hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(2.25rem, 4.5vw, 4.5rem);
    align-items: center;
}
.wm-hero-content {
    max-width: 620px;
}
.wm-hero-animate {
    opacity: 0;
    transform: translateY(22px);
    animation: wmHeroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes wmHeroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.wm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 1rem 0.42rem 0.75rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 1.35rem;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.07);
    position: relative;
}
.wm-hero-badge::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}
.wm-hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    animation: wmHeroPulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes wmHeroPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); }
}
.wm-hero-badge i {
    color: #6366f1;
    font-size: 0.88rem;
}
.wm-hero-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(2.2rem, 4.4vw, 3.35rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.85rem;
    letter-spacing: -0.035em;
}
.wm-hero-title-accent {
    width: 52px;
    height: 3px;
    border-radius: 9999px;
    margin-bottom: 1.35rem;
    background: linear-gradient(90deg, #6366f1, #0ea5e9);
    opacity: 0.9;
}
.wm-hero-lead {
    font-size: clamp(1rem, 1.12vw, 1.07rem);
    color: #64748b;
    line-height: 1.78;
    max-width: 560px;
    margin: 0;
}
.wm-hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0.5rem;
}
.wm-hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    animation: wmHeroFloat 8s ease-in-out infinite;
}
@keyframes wmHeroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.wm-hero-image-ring {
    position: absolute;
    inset: -7px;
    border-radius: 1.45rem;
    background: linear-gradient(135deg, #6366f1, #0ea5e9, #a78bfa, #6366f1);
    background-size: 280% 280%;
    animation: wmHeroRing 12s linear infinite;
    opacity: 0.65;
    z-index: 0;
    box-shadow: none;
    filter: none;
}
@keyframes wmHeroRing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.wm-hero-image-glow {
    display: none;
}
.wm-hero-image-frame img,
.wm-hero-image-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 3.15;
    object-fit: cover;
    border-radius: 1.3rem;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.98);
    box-shadow: none;
}
.wm-hero-image-placeholder {
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 50%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.5;
}

/* Mastery — flows from hero */
.section.wm-mastery-section {
    background: #fafbfc;
    position: relative;
    overflow: hidden;
    padding-top: clamp(2rem, 4vw, 3rem);
    margin-top: 0;
}

/* Legacy alias */
.hero-top-badge { display:inline-block; padding:0.5rem 1.25rem; border-radius:9999px; font-weight:500; font-size:0.85rem; color:#475569; background:#f8fafc; margin-bottom:2rem; }

@media (prefers-reduced-motion: reduce) {
    .wm-hero-image-frame { animation: none; }
    .wm-hero-badge-dot { animation: none; }
    .wm-hero-image-ring { animation: none; }
    .wm-hero-animate { animation: none; opacity: 1; transform: none; }
}

/* Mastery Bento */
.mastery-bento-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:1.5rem; }
.mcard { background:#f3f3f3; border-radius:1.5rem; padding:2.5rem; display:flex; flex-direction:column; transition:transform 0.3s ease,box-shadow 0.3s ease; }
.mcard:hover { transform:translateY(-5px); box-shadow:0 20px 25px -5px rgba(0,0,0,0.1),0 8px 10px -6px rgba(0,0,0,0.1); }
.mcard-tl { grid-column:1/8; }
.mcard-tr { grid-column:8/13; background:#0f172a; color:white; display:flex; flex-direction:column; justify-content:center; }
.mcard-bl { grid-column:1/5; }
.mcard-br { grid-column:5/13; display:flex; flex-direction:row; justify-content:space-between; align-items:flex-end; }
.mcard-icon { width:44px; height:44px; background:#080858; color:white; border-radius:0.5rem; display:flex; align-items:center; justify-content:center; font-size:1.25rem; margin-bottom:2rem; }
.mcard-tr .mcard-icon { background:rgba(255,255,255,0.08); }
.mcard-content h4 { font-size:calc(1.35rem - 5px); font-weight:700; color:#0f172a; margin-bottom:1rem; line-height:1.2; letter-spacing:-0.01em; }
.mcard-content p { font-size:0.95rem; color:#475569; line-height:1.6; margin-bottom:0; }
.mcard-tr .mcard-content h4 { color:white; }
.mcard-tr .mcard-content p { color:#94a3b8; }
.mcard-pills { display:flex; gap:0.5rem; margin-top:2rem; flex-wrap:wrap; }
.mcard-pills:empty { display:none; margin:0; }
.mcard-pill { background:#eff6ff; color:#0f172a; padding:0.4rem 1rem; border-radius:9999px; font-weight:600; font-size:0.8rem; }
.mcard-tr-btn { margin-top:2.5rem; background:#080858; border:1px solid rgba(255,255,255,0.1); box-shadow:0 4px 6px -1px rgba(0,0,0,0.5); color:white; text-align:center; font-weight:700; padding:1.25rem; border-radius:0.5rem; font-size:1.2rem; display:block; text-decoration:none; transition:background 0.2s; }
.mcard-tr-btn:hover { background:#0c0ca0; color:white; }

/* Engineering */
.engineering-section {
    padding: 6rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: #0a0f1a;
    background-image:
        radial-gradient(ellipse 58% 48% at 8% 42%, rgba(0, 102, 255, 0.16) 0%, transparent 58%),
        radial-gradient(ellipse 52% 44% at 92% 68%, rgba(99, 102, 241, 0.13) 0%, transparent 55%),
        radial-gradient(ellipse 40% 32% at 62% 8%, rgba(14, 165, 233, 0.09) 0%, transparent 50%),
        linear-gradient(168deg, #0c1324 0%, #0f172a 38%, #0b1220 72%, #060a12 100%);
}
.engineering-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 20%, transparent 78%);
    pointer-events: none;
    z-index: 0;
}
.engineering-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(250, 251, 252, 0.06) 0%, transparent 6%),
        linear-gradient(0deg, rgba(5, 10, 20, 0.85) 0%, transparent 14%);
    pointer-events: none;
    z-index: 0;
}
.engineering-section .container {
    position: relative;
    z-index: 1;
}
.adv-grid { display:grid; grid-template-columns:1.35fr 0.8fr; gap:6rem; align-items:center; }
.adv-list { display:flex; flex-direction:column; gap:3rem; }
.adv-item { display:flex; gap:2rem; align-items:flex-start; }
.adv-num { font-size:3rem; font-weight:700; color:rgba(255,255,255,0.25); line-height:0.9; letter-spacing:-0.05em; font-family:ui-monospace,monospace; }
.adv-text h4 { color:white; font-size:calc(1.4rem - 5px); font-weight:600; margin-bottom:0.75rem; line-height:1.2; letter-spacing:-0.01em; }
.adv-text p { color:#cbd5e1; font-size:0.95rem; line-height:1.7; margin:0; }
.sphere-outer-wrapper { position:relative; width:100%; aspect-ratio:4/3; }
@keyframes spin-circle { 100% { transform:rotate(360deg); } }
.sphere-dashed-circle { position:absolute; top:-15%; right:-15%; width:50%; padding-bottom:50%; background-image:url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='50%25' cy='50%25' fill='none' r='49%25' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-dasharray='16%2c 24' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e"); border-radius:50%; z-index:0; animation:spin-circle 60s linear infinite; transform-origin:center; }
.sphere-container { position:absolute; inset:0; border-radius:1.5rem; overflow:hidden; background:#000; box-shadow:0 25px 50px -12px rgba(0,0,0,0.5); z-index:1; }
.sphere-container img { width:100%; height:100%; object-fit:cover; filter:brightness(1.1) contrast(1.1); transform:scale(1.05); }
.sphere-overlay-box { position:absolute; bottom:1rem; left:-3rem; background:linear-gradient(135deg,#080858 0%,#132336 100%); padding:2rem; border-radius:0.5rem; border:1px solid rgba(255,255,255,0.05); width:350px; z-index:2; box-shadow:0 10px 25px -5px rgba(0,0,0,0.3); }

/* Tools Ecosystem Slider */
.tools-section-wrapper {
    padding:5.5rem 0 5rem;
    background-color:#050a14;
    position:relative;
    overflow:hidden;
}
.tools-section-grid {
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
    background-image:
        radial-gradient(ellipse 75% 55% at 50% 28%, rgba(30,64,110,0.5) 0%, transparent 68%),
        linear-gradient(rgba(56,118,180,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,118,180,0.09) 1px, transparent 1px);
    background-size:100% 100%, 52px 52px, 52px 52px;
    mask-image:linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.tools-slider-layout { position:relative; z-index:1; }
.tools-slider-header { text-align:center; max-width:720px; margin:0 auto 3.25rem; }
.tools-slider-eyebrow {
    display:block;
    font-size:0.72rem;
    font-weight:600;
    color:#38bdf8;
    letter-spacing:0.22em;
    text-transform:uppercase;
    margin-bottom:1.1rem;
}
.tools-slider-header h2 {
    color:#ffffff;
    font-size:clamp(2.25rem,4.5vw,3.5rem);
    font-weight:800;
    line-height:1.12;
    letter-spacing:-0.03em;
    margin:0;
}
.tools-slider-subtitle { color:#94a3b8; font-size:1rem; line-height:1.7; margin:1.25rem auto 0; max-width:520px; }

.tools-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.85rem 1.15rem;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.tools-list-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0.8rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tools-list-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(56, 189, 248, 0.28);
    transform: translateY(-2px);
}
.tools-list-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 0.65rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.tools-list-icon .tool-slide-brand {
    width: 28px;
    height: 28px;
}
.tools-list-icon i {
    font-size: 1.45rem;
    line-height: 1;
}
.tools-list-icon i.devicon {
    font-size: 1.75rem;
}
.tools-list-icon .tool-slide-badge {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
}
.tools-list-name {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.tools-marquee-grid {
    display: block;
}

.tools-marquee-wrap {
    position:relative;
    overflow:hidden;
    width:100%;
    padding:0.35rem 0;
}

.tools-marquee-fade {
    position:absolute;
    top:0;
    bottom:0;
    width:140px;
    z-index:2;
    pointer-events:none;
}

.tools-marquee-fade--left {
    left:0;
    background:linear-gradient(90deg, #050a14 0%, transparent 100%);
}

.tools-marquee-fade--right {
    right:0;
    background:linear-gradient(270deg, #050a14 0%, transparent 100%);
}

.tools-marquee-track {
    display:flex;
    align-items:center;
    gap:1.25rem;
    width:max-content;
    animation:toolsMarquee 42s linear infinite;
    will-change:transform;
}

.tools-marquee-wrap:hover .tools-marquee-track {
    animation-play-state:paused;
}

@keyframes toolsMarquee {
    0% { transform:translateX(0); }
    100% { transform:translateX(-50%); }
}

.tool-slide {
    flex:0 0 auto;
    width:92px;
}

.tool-slide-card {
    width:92px;
    height:92px;
    padding:0;
    background:#ffffff;
    border:1px solid rgba(255,255,255,0.95);
    border-radius:16px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 8px 20px rgba(15, 23, 42, 0.12);
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    transition:background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-slide-card:hover {
    background:#ffffff;
    border-color:rgba(56, 189, 248, 0.45);
    transform:translateY(-4px);
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.08),
        0 16px 32px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(56, 189, 248, 0.12);
}

.tool-slide-card i {
    font-size:2rem;
    line-height:1;
}

.tool-slide-card i.devicon {
    font-size:2.5rem;
}

.tool-slide-brand {
    width:40px;
    height:40px;
    object-fit:contain;
}

.tool-slide-badge {
    width:2.75rem;
    height:2.75rem;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:1.15rem;
}

@media (prefers-reduced-motion: reduce) {
    .tools-marquee-track { animation:none; flex-wrap:wrap; justify-content:center; width:100%; max-width:920px; margin:0 auto; }
    .tools-marquee-wrap { overflow:visible; padding-left:0 !important; }
    .tools-marquee-fade { display:none; }
    .tools-marquee-grid { gap:1.5rem; }
}

/* Workflow */
.workflow-line-wrap { position:relative; margin:6rem auto; max-width:1250px; }
.wf-line { position:absolute; top:2.25rem; left:5%; right:5%; height:3px; background:#000; z-index:0; }
.wf-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; position:relative; z-index:1; }
.wf-step { text-align:center; transition:transform 0.4s cubic-bezier(0.4,0,0.2,1); cursor:default; position:relative; z-index:1; }
.wf-step::before { content:""; position:absolute; inset:-2rem -1.5rem -1.5rem; background:#ffffff; border-radius:1.5rem; z-index:-1; opacity:0; transform:scale(0.9); transition:all 0.4s cubic-bezier(0.4,0,0.2,1); box-shadow:0 25px 50px -12px rgba(0,102,255,0.15); border:1px solid rgba(0,102,255,0.08); pointer-events:none; }
.wf-step:hover::before { opacity:1; transform:scale(1); }
.wf-step:hover { transform:translateY(-8px); }
.wf-circle { width:4.5rem; height:4.5rem; background:var(--primary); color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 1.5rem; font-size:1.5rem; box-shadow:0 0 0 10px white; transition:all 0.4s cubic-bezier(0.4,0,0.2,1); position:relative; z-index:2; }
.wf-step:hover .wf-circle { transform:scale(1.15); background:#0066ff; box-shadow:0 0 0 14px white,0 20px 30px -5px rgba(0,102,255,0.4); }
.wf-step h5 { font-size:1.1rem; color:var(--text-dark); margin-bottom:0.5rem; transition:color 0.3s ease; }
.wf-step:hover h5 { color:#0066ff; }
.wf-step p { font-size:0.85rem; color:var(--text-gray); }

/* CTA */
.cta-section { padding:5rem 0; }
.cta-content { background-color:#0b1120; background-image:radial-gradient(circle at 50% 100%,rgba(255,255,255,0.35) 0%,rgba(11,17,32,0) 55%); border-radius:2rem; padding:6.5rem 3rem; text-align:center; color:white; }
.cta-content h2 { font-size:clamp(calc(2.5rem - 5px),5vw,calc(3.5rem - 5px)); font-weight:800; color:white; margin-bottom:1.5rem; letter-spacing:-0.03em; line-height:1.1; }
.cta-content p { color:#9ca3af; margin-bottom:3rem; font-size:1rem; max-width:650px; margin-inline:auto; line-height:1.7; }
.btn-white { display:inline-block; background:white; color:#0b1120; font-weight:700; padding:1rem 2.5rem; border-radius:9999px; font-size:0.95rem; border:none; cursor:pointer; transition:all 0.3s ease; box-shadow:0 10px 15px -3px rgba(0,0,0,0.1); text-decoration:none; }
.btn-white:hover { background:#f8fafc; transform:translateY(-2px); box-shadow:0 20px 25px -5px rgba(0,0,0,0.2); color:#0b1120; }

@media (max-width:1024px) {
.adv-grid { grid-template-columns:1fr; }
.tools-slider-header { margin-bottom:2.25rem; }
.tools-marquee-fade { width:60px; }
.mastery-bento-grid { display:flex; flex-direction:column; }
.mcard-br { flex-direction:column; align-items:flex-start; }
.mcard-br svg { margin-top:2rem; }
.wf-steps { grid-template-columns:repeat(2,1fr); row-gap:3rem; }
.wf-line { display:none; }
.wm-hero-inner { grid-template-columns: 1fr; }
.wm-hero-visual { order: -1; }
.wm-hero-image-frame { max-width: 460px; margin: 0 auto; }
.wm-hero-content { max-width: 100%; }
.wm-hero-curve { height: 48px; }
}
@media (max-width:768px) {
.wf-steps { grid-template-columns:1fr; }
.sphere-overlay-box { left:0; width:100%; }
}
